body.cnp-merchant-view :is(main.dk-swedish-merchant, main#cnp-main.costa-dk-exact-main) {
  --dk-store-logo-width: 56px;
  --dk-store-logo-height: 32px;
}

@media (max-width: 767px) {
  body.cnp-merchant-view :is(main.dk-swedish-merchant, main#cnp-main.costa-dk-exact-main) {
    --dk-store-logo-width: 48px;
    --dk-store-logo-height: 28px;
  }
}

body.cnp-merchant-view :is(main.dk-swedish-merchant, main#cnp-main.costa-dk-exact-main)
  :is(section.dk-swedish-hero, section.reference-hero) :is(.dk-swedish-hero-logo,.reference-logo) {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: var(--dk-store-logo-width) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: var(--dk-store-logo-height) !important;
  min-height: 0 !important;
  max-height: var(--dk-store-logo-height) !important;
  padding: 3px !important;
}

body.cnp-merchant-view :is(main.dk-swedish-merchant, main#cnp-main.costa-dk-exact-main)
  :is(section.dk-swedish-hero, section.reference-hero) :is(.dk-swedish-hero-logo,.reference-logo) img {
  width: auto !important;
  height: auto !important;
  max-width: calc(var(--dk-store-logo-width) - 8px) !important;
  max-height: calc(var(--dk-store-logo-height) - 8px) !important;
  object-fit: contain !important;
}

body.cnp-merchant-view main.dk-swedish-merchant #vidaxl-top > img {
  width: var(--dk-store-logo-width) !important;
  height: var(--dk-store-logo-height) !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

body.cnp-merchant-view main.dk-swedish-merchant #blockbuster-top .bbdk26-brand {
  width: var(--dk-store-logo-width) !important;
}

body.cnp-merchant-view main.dk-swedish-merchant #blockbuster-top .bbdk26-ticket {
  box-sizing: border-box !important;
  display: grid !important;
  place-content: center !important;
  gap: 0 !important;
  width: var(--dk-store-logo-width) !important;
  min-height: 0 !important;
  height: var(--dk-store-logo-height) !important;
  padding: 2px !important;
  font-size: 8px !important;
  line-height: 1.05 !important;
  /* The rotated ticket otherwise extends beyond the shared logo dimensions. */
  transform: none !important;
  overflow: hidden !important;
}

body.cnp-merchant-view main.dk-swedish-merchant #blockbuster-top .bbdk26-ticket-inner {
  transform: scale(.65);
}

body.cnp-merchant-view main.dk-swedish-merchant #blockbuster-top .bbdk26-ticket::before,
body.cnp-merchant-view main.dk-swedish-merchant #blockbuster-top .bbdk26-ticket::after {
  content: none !important;
}
