/* Checkout V11 — all rules scoped to validated step 2. */
:root{--ns-checkout-v11-ready:1}
html.ns-checkout-v11{--ns-co-red:#c82026;--ns-co-line:#e2e2e2;--ns-co-green:#237842;--ns-co-gray:#666}
html.ns-checkout-v11 .ns-co-section{border-radius:6px!important;padding-top:16px!important;padding-bottom:16px!important;margin-bottom:12px!important}
html.ns-checkout-v11 .ns-co-heading{font-size:19px!important;line-height:1.35!important;font-weight:700!important;margin:0 0 14px!important;padding:0!important;color:#181818!important}
html.ns-checkout-v11 .ns-co-card{border-radius:6px!important;margin-bottom:6px!important;min-height:0!important;box-shadow:none!important}
html.ns-checkout-v11 .ns-co-label{border-radius:6px!important;padding-top:10px!important;padding-bottom:10px!important;padding-right:12px!important;min-height:52px!important;line-height:1.35!important;box-sizing:border-box!important}
html.ns-checkout-v11 .ns-co-card:has(input[type=radio]:checked){border-color:var(--ns-co-red)!important;background-color:#f9e9ea!important}
html.ns-checkout-v11 .ns-co-card:has(input[type=radio]:checked) .ns-co-label{border-color:var(--ns-co-red)!important;background-color:#f9e9ea!important}
html.ns-checkout-v11 .ns-co-card:has(input[type=radio]:focus-visible){outline:2px solid #222;outline-offset:2px}
html.ns-checkout-v11 .ns-co-card input[type=radio]{accent-color:var(--ns-co-red)}
html.ns-checkout-v11 .ns-co-card .ns-co-logo{width:60px!important;max-width:60px!important;height:30px!important;max-height:30px!important;object-fit:contain!important;border:0!important;border-radius:3px!important}
html.ns-checkout-v11 .ns-co-price{font-size:13px!important;font-weight:700!important;line-height:1.35!important;white-space:nowrap!important;color:#181818!important}
html.ns-checkout-v11 .ns-co-free{color:var(--ns-co-green)!important}
html.ns-checkout-v11 .ns-co-desc{font-size:12px!important;line-height:1.4!important;color:var(--ns-co-gray)!important;margin:3px 0 0!important}
/* Apply only to verified, price-separated inner branches. Native labels/radio pseudo-elements stay in place. */
html.ns-checkout-v11 .ns-co-layout{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;min-width:0!important;min-height:0!important}
html.ns-checkout-v11 .ns-co-layout > .ns-co-content{flex:1 1 auto!important;min-width:0!important;overflow-wrap:break-word!important}
html.ns-checkout-v11 .ns-co-layout > .ns-co-price{position:static!important;float:none!important;align-self:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0 0 0 auto!important;padding:0!important;text-align:right!important}
html.ns-checkout-v11 .ns-co-section select{border-radius:3px!important}
html.ns-checkout-v11 .ns-co-summary,html.ns-checkout-v11 .ns-co-help{border-radius:6px!important}
html.ns-checkout-v11 :is(.ns-co-summary,.ns-co-help) > :first-child{border-top-left-radius:5px!important;border-top-right-radius:5px!important}
html.ns-checkout-v11 :is(.ns-co-summary,.ns-co-help) > :last-child{border-bottom-left-radius:5px!important;border-bottom-right-radius:5px!important}
html.ns-checkout-v11 .ns-co-country-select{border-radius:3px!important}
html.ns-checkout-v11 .ns-co-summary .price-wrapper{font-variant-numeric:tabular-nums}
html.ns-checkout-v11 .ns-co-summary :is(.price-primary,.price-final,.price-total){font-weight:700}
html.ns-checkout-v11 .ns-co-summary :is(.price-secondary,.price-label.price-secondary){font-size:12px!important;color:var(--ns-co-gray)!important}
html.ns-checkout-v11 .ns-co-recap-heading{font-weight:700!important;font-size:16px!important;line-height:1.4!important}
html.ns-checkout-v11 .ns-co-next.ns-co-next{border-radius:3px!important;font-weight:700!important}
html.ns-checkout-v11 .ns-co-back{font-size:13px!important}
html.ns-checkout-v11 .ns-co-more{display:none}
html.ns-checkout-v11 .ns-co-debug{font:12px/1.4 monospace;background:#fff;border:1px solid #ccc;padding:8px;margin:8px 0;color:#111;max-width:100%}
html.ns-checkout-v11 .ns-co-debug textarea{display:block;width:100%;font:11px/1.4 monospace}
@media(min-width:768px){html.ns-checkout-v11 .ns-co-sticky{position:sticky!important;top:12px;align-self:flex-start!important}}
@media(max-width:767px){
  html.ns-checkout-v11 .ns-co-section{padding-top:14px!important;padding-bottom:14px!important;margin-bottom:8px!important}
  html.ns-checkout-v11 .ns-co-heading{font-size:16px!important;margin-bottom:10px!important}
  html.ns-checkout-v11 .ns-co-label{font-size:13px!important;min-height:52px!important;padding-top:9px!important;padding-bottom:9px!important;padding-right:9px!important}
  html.ns-checkout-v11 .ns-co-card .ns-co-logo{width:45px!important;max-width:45px!important;height:26px!important;max-height:26px!important}
  html.ns-checkout-v11 .ns-co-price{font-size:12px!important}
  html.ns-checkout-v11 .ns-co-desc{font-size:11px!important;line-height:1.35!important}
  html.ns-checkout-v11 .ns-co-label :is(.show-tooltip,.acronym){font-size:12px}
  html.ns-checkout-v11 .ns-co-layout{gap:5px!important}
  html.ns-checkout-v11 .ns-co-card.ns-co-extra:not(:has(input[type=radio]:checked)){display:none!important}
  html.ns-checkout-v11 .ns-co-more:not([hidden]){display:flex!important;align-items:center;justify-content:center;gap:8px;background:transparent;color:#222;border:0;border-radius:3px;padding:10px;width:100%;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;margin:0}
  html.ns-checkout-v11 .ns-co-more::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
  html.ns-checkout-v11 .ns-co-more[aria-expanded=true]::after{transform:rotate(225deg);margin-top:4px}
  html.ns-checkout-v11 .ns-co-summary{margin-top:8px!important}
  html.ns-checkout-v11 .ns-co-summary .ns-co-next{min-height:46px!important}
  html.ns-checkout-v11 .ns-co-recap-heading{font-size:15px!important}
}

/* V11: uniform selected surface, no changes to native input, logo or pickup widget. */
html.ns-checkout-v11 .ns-co-card:has(input[type=radio]:checked) :is(.ns-co-layout,.ns-co-content,.ns-co-price,.ns-co-desc){background-color:transparent!important}
html.ns-checkout-v11 .ns-co-card:has(input[type=radio]:checked) .ns-co-label{background:#f9e9ea!important}
@media(max-width:767px){
 html.ns-checkout-v11 .ns-co-fields{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important;gap:8px!important;align-items:end!important;min-width:0!important}
 html.ns-checkout-v11 .ns-co-fields>.ns-co-field{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
 html.ns-checkout-v11 .ns-co-field .ns-co-country-select{width:100%!important;min-width:0!important;max-width:100%!important;font-size:13px!important;box-sizing:border-box!important}
 html.ns-checkout-v11 .ns-co-field label{font-size:12px!important}
}

/* V11: native help icon only, no replacement of the actual tooltip or pickup selector. */
html.ns-checkout-v11 .ns-co-card .ns-co-native-help{color:#777!important}
html.ns-checkout-v11 .ns-co-card .ns-co-native-help::before{color:#777!important}
/* Selected surface: remove competing fill from verified structural child nodes, not native widgets. */
html.ns-checkout-v11 .ns-co-card.ns-co-selected,
html.ns-checkout-v11 .ns-co-label.ns-co-selected{background:#f9e9ea!important;border-color:var(--ns-co-red)!important}
html.ns-checkout-v11 .ns-co-card.ns-co-selected .ns-co-surface{background-color:transparent!important;background-image:none!important}
@media(max-width:767px){
 html.ns-checkout-v11 .ns-co-fields>.ns-co-field-full{grid-column:1/-1!important;min-width:0!important;max-width:100%!important}
 html.ns-checkout-v11 .ns-co-fields::before,html.ns-checkout-v11 .ns-co-fields::after{grid-column:1/-1!important}
 html.ns-checkout-v11 .ns-co-fields>.ns-co-field{align-self:end!important}
 html.ns-checkout-v11 .ns-co-field :is(select,.select-wrapper,.select-wrap,.form-control){min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
}

/* V11: actual Merkur markup verified by independent-1 diagnostics.
   Bootstrap clearfix pseudo-elements must not become grid items. */
@media(max-width:767px){
 html.ns-checkout-v11 #select-country-payment .co-basic-information > .row.ns-co-fields{
  display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)!important;
  gap:8px!important;margin:0!important;width:100%!important;max-width:100%!important;
  align-items:end!important;box-sizing:border-box!important;
 }
 html.ns-checkout-v11 #select-country-payment .row.ns-co-fields::before,
 html.ns-checkout-v11 #select-country-payment .row.ns-co-fields::after{content:none!important;display:none!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field-country{grid-column:1!important;grid-row:auto!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field-currency{grid-column:2!important;grid-row:auto!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field:has(> .smart-label-wrapper){min-width:0!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-field > .smart-label-wrapper{width:100%!important;min-width:0!important;margin:0!important}
 html.ns-checkout-v11 #select-country-payment :is(#deliveryCountryId,#payment-currency).ns-co-country-select{padding-left:10px!important;padding-right:25px!important;background-position:right 8px center!important}
}
/* One selected surface: Merkur paints an additional translucent ::after
   on the radio-wrapper. Keep the native radio label pseudo-elements intact. */
html.ns-checkout-v11 #order-form :is(#order-shipping-methods,#order-billing-methods) > .radio-wrapper.ns-co-card:has(> input[type=radio]:checked){background:#f9e9ea!important;border-color:var(--ns-co-red)!important}
html.ns-checkout-v11 #order-form :is(#order-shipping-methods,#order-billing-methods) > .radio-wrapper.ns-co-card:has(> input[type=radio]:checked)::after{background:transparent!important;opacity:0!important}
html.ns-checkout-v11 #order-form :is(#order-shipping-methods,#order-billing-methods) > .radio-wrapper.ns-co-card:has(> input[type=radio]:checked) > label.ns-co-label{background:transparent!important;border-color:transparent!important}
/* Only the question icon, not the native tooltip content or listeners. */
html.ns-checkout-v11 #order-form .radio-wrapper .question-tooltip.ns-co-native-help{background-color:#e4e4e4!important;color:#666!important}
html.ns-checkout-v11 #order-form .radio-wrapper .question-tooltip.ns-co-native-help::before{color:#666!important}

/* V11: visual accordion. No native shipping controls are moved or replaced. */
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 8px;padding:13px 15px;box-sizing:border-box;border:1px solid var(--ns-co-line);border-radius:6px;background:#fff;color:#181818;text-align:left;font:inherit;font-weight:600;cursor:pointer;min-height:44px}
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group::after{content:'';flex:0 0 8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px 0}
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group.ns-co-group-open{border-radius:6px 6px 0 0;margin-bottom:0;border-bottom:0}
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group.ns-co-group-open::after{transform:rotate(225deg);margin-bottom:-4px}
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group.ns-co-group-active{border-color:var(--ns-co-red);cursor:default}
html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group[aria-disabled=true]::after{opacity:.55}
html.ns-checkout-v11 #order-shipping-methods>.radio-wrapper.ns-co-group-member{margin:0!important;border-radius:0!important;border-top-width:0!important;box-sizing:border-box!important}
html.ns-checkout-v11 #order-shipping-methods>.radio-wrapper.ns-co-group-last{border-radius:0 0 6px 6px!important;margin-bottom:8px!important}
html.ns-checkout-v11 #order-shipping-methods>.radio-wrapper.ns-co-group-closed:not(:has(> input[type=radio]:checked)){display:none!important}
@media(max-width:767px){html.ns-checkout-v11 #order-shipping-methods>.ns-co-ship-group{font-size:14px;padding:11px 12px}}

/* V11: keep V6's uniform selected tint; native radio and tooltip remain intact. */
html.ns-checkout-v11 #order-form .radio-wrapper .question-tooltip.ns-co-native-help{background:#fff!important;color:#666!important;box-shadow:inset 0 0 0 1px #bcbcbc!important;border-radius:50%!important}
html.ns-checkout-v11 #order-form .radio-wrapper :is(.payment-logo,.shipping-logo){border:0!important;box-shadow:none!important;border-radius:3px!important;background:transparent!important}
html.ns-checkout-v11 #order-form .radio-wrapper :is(.payment-logo,.shipping-logo)::before,
html.ns-checkout-v11 #order-form .radio-wrapper :is(.payment-logo,.shipping-logo)::after{border-color:transparent!important;box-shadow:none!important}
/* Actual Merkur summary surface from independent diagnostics; don't clip the whole sidebar. */
html.ns-checkout-v11 #summary-box.order-summary-inner{border-radius:6px!important}
html.ns-checkout-v11 #summary-box.order-summary-inner > .ns-co-recap-heading{border-radius:5px 5px 0 0!important}
html.ns-checkout-v11 #summary-box.order-summary-inner > .order-summary-item.price{border-radius:0 0 5px 5px!important}
html.ns-checkout-v11 .ns-co-help,html.ns-checkout-v11 .order-summary > .checkout-box{border-radius:6px!important}
html.ns-checkout-v11 .order-summary > .checkout-box > :first-child{border-top-left-radius:5px!important;border-top-right-radius:5px!important}
html.ns-checkout-v11 .order-summary > .checkout-box > :last-child{border-bottom-left-radius:5px!important;border-bottom-right-radius:5px!important}
/* Main methods stay visible on both screens. Never hide a checked native option. */
html.ns-checkout-v11 #order-billing-methods>.radio-wrapper.ns-co-extra:not(:has(> input[type=radio]:checked)){display:none!important}
html.ns-checkout-v11 #order-billing-methods>.ns-co-more:not([hidden]){display:flex!important;align-items:center;justify-content:center;gap:8px;background:transparent;color:#222;border:0;border-radius:3px;padding:10px;width:100%;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;margin:0}
html.ns-checkout-v11 #order-billing-methods>.ns-co-more::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
html.ns-checkout-v11 #order-billing-methods>.ns-co-more[aria-expanded=true]::after{transform:rotate(225deg);margin-top:4px}

/* V11: one continuous shipping group outline, no lines between options.
   Only the checked row has a light tint. Native inputs remain untouched. */
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member{
 border-style:solid!important;border-width:0 1px!important;border-color:var(--ns-co-line)!important;
 box-shadow:none!important;background:#fff!important;
}
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member.ns-co-group-selected{border-color:var(--ns-co-red)!important}
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member.ns-co-group-last{border-bottom-width:1px!important}
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member:has(> input[type=radio]:checked){background:#f9e9ea!important;border-top-width:0!important}
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member > label.ns-co-label{
 border:0!important;box-shadow:none!important;background:transparent!important;
}
html.ns-checkout-v11 #order-form #order-shipping-methods > .radio-wrapper.ns-co-group-member::after{background:transparent!important;opacity:0!important}

/* V11: group heading stays white in every state; selected native row alone is tinted. */
html.ns-checkout-v11 #order-form #order-shipping-methods > button.ns-co-ship-group{
 background:#fff!important;box-shadow:none!important;
}
html.ns-checkout-v11 #order-form #order-shipping-methods > button.ns-co-ship-group.ns-co-group-active{border-color:var(--ns-co-red)!important}

/* V11: remove only the three outer section frames. Keep method cards and sidebar intact. */
html.ns-checkout-v11 #select-country-payment > .co-basic-information,
html.ns-checkout-v11 #order-form > :is(.co-delivery-method,.co-payment-method){
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;
 padding:12px 0 16px!important;margin-bottom:12px!important;
}
@media(min-width:768px){
 html.ns-checkout-v11 #select-country-payment .co-basic-information > .row.ns-co-fields{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;margin:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;align-items:end!important;
 }
 html.ns-checkout-v11 #select-country-payment .row.ns-co-fields::before,
 html.ns-checkout-v11 #select-country-payment .row.ns-co-fields::after{content:none!important;display:none!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field-full{grid-column:1/-1!important}
 html.ns-checkout-v11 #select-country-payment .ns-co-fields > .ns-co-field .form-control{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
@media(max-width:767px){
 /* Merkur's mobile cart-content reaches the viewport edges: retain 12px safe gutters. */
 html.ns-checkout-v11 #select-country-payment > .co-basic-information,
 html.ns-checkout-v11 #order-form > :is(.co-delivery-method,.co-payment-method){padding:10px 12px 12px!important;margin-bottom:8px!important}
}
