/* Targeted storefront fixes after cart, checkout and single-product styles. */

/* The settlement is selected only in the custom card above the totals. */
.woocommerce-cart .cart_totals ul#shipping_method,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods{margin:0!important;padding:0!important;list-style:none!important}
.woocommerce-cart .cart_totals ul#shipping_method li,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods li{margin:0!important;padding:0!important;list-style:none!important}
.woocommerce-cart .cart_totals ul#shipping_method li:not(:first-child),
.woocommerce-cart .cart_totals .woocommerce-shipping-methods li:not(:first-child){display:none!important}
.woocommerce-cart .cart_totals ul#shipping_method input,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods input{display:none!important}
.woocommerce-cart .cart_totals ul#shipping_method label,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods label{display:block!important;margin:0!important;color:#3f312e!important;font-weight:800!important;line-height:1.45!important;cursor:default!important}

.woocommerce-cart .woocommerce{grid-template-columns:minmax(0,1fr) minmax(340px,410px)!important;grid-template-areas:"notices notices" "intro intro" "form totals" "addons totals" "reassurance reassurance"!important;grid-auto-flow:row!important;align-items:start!important}
.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper{grid-area:notices!important}
.woocommerce-cart .woocommerce>.cg-cart-intro{grid-area:intro!important}
.woocommerce-cart .woocommerce>.woocommerce-cart-form{grid-area:form!important;align-self:start!important}
.woocommerce-cart .woocommerce>.cg-cart-addons{grid-area:addons!important;width:100%!important;margin:0!important;align-self:start!important;box-sizing:border-box!important}
.woocommerce-cart .woocommerce>.cart-collaterals{grid-area:totals!important;align-self:stretch!important}
.woocommerce-cart .woocommerce>.cg-order-reassurance{grid-area:reassurance!important}
.woocommerce-cart .cart-collaterals .cart_totals{width:100%!important}

.woocommerce-cart .cg-cart-addons__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.woocommerce-cart .cg-cart-addon{grid-template-columns:116px minmax(0,1fr)!important;min-height:132px!important}
.woocommerce-cart .cg-cart-addon__image{display:grid!important;place-items:center!important;min-height:0!important;aspect-ratio:1/1!important;padding:10px!important;background:#fffaf8!important;box-sizing:border-box!important;overflow:hidden!important}
.woocommerce-cart .cg-cart-addon__image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.woocommerce-cart .woocommerce-cart-form .coupon{min-width:0!important;box-sizing:border-box!important}
.woocommerce-cart .woocommerce-cart-form .coupon .input-text{min-width:0!important;box-sizing:border-box!important}
.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;text-align:center!important}
html.cg-cart-js .woocommerce-cart .woocommerce-cart-form button[name="update_cart"]{display:none!important}

/* Stable product-image stage. Thumbnail changes update the existing image node,
 * so the browser never collapses the stage while a new source is loading. */
.single-product .woocommerce-product-gallery .flex-control-thumbs img{cursor:pointer!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .flex-viewport{overflow:hidden!important;height:auto!important;min-height:0!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__wrapper{display:block!important;width:100%!important;height:auto!important;transform:none!important;margin-left:0!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image{display:none!important;width:100%!important;min-width:100%!important;float:none!important;margin:0!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:first-child{display:block!important;width:100%!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:first-child>a{display:block!important;width:100%!important;aspect-ratio:3/4!important;overflow:hidden!important;background:#f7f1ef!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:first-child img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:3/4!important;object-fit:cover!important;object-position:center!important;margin:0!important}
.single-product .woocommerce-product-gallery.cg-gallery-manual .woocommerce-product-gallery__image--placeholder{aspect-ratio:3/4!important}
.single-product #tab-title-reviews,.single-product #tab-reviews{display:none!important}
.single-product .woocommerce-tabs ul.tabs,.single-product .woocommerce-tabs ul.tabs li{list-style:none!important}
.single-product .woocommerce-tabs ul.tabs::before,.single-product .woocommerce-tabs ul.tabs::after,.single-product .woocommerce-tabs ul.tabs li::before,.single-product .woocommerce-tabs ul.tabs li::after{content:none!important;display:none!important;width:0!important;height:0!important;border:0!important;box-shadow:none!important}

/* Recipient, settlement, address, date and wishes form one numbered step. */
.woocommerce-checkout .cg-checkout-card--combined{padding-bottom:30px!important}
.woocommerce-checkout .cg-checkout-combined{display:grid;gap:18px}
.woocommerce-checkout .cg-checkout-combined__section{min-width:0;padding:21px;border:1px solid #eadbd7;border-radius:18px;background:#fffdfc}
.woocommerce-checkout .cg-checkout-combined__section--details{background:linear-gradient(135deg,#fff9f7,#fff)}
.woocommerce-checkout .cg-checkout-subheading{margin:0 0 18px;padding:0 0 15px;border-bottom:1px solid #eee2de}
.woocommerce-checkout .cg-checkout-subheading>span{display:block;margin-bottom:5px;color:var(--cg-accent-dark,#8b514b);font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.woocommerce-checkout .cg-checkout-subheading h3{margin:0!important;font:600 22px/1.18 Georgia,serif!important;color:#3e302d!important}
.woocommerce-checkout .cg-checkout-subheading p{margin:7px 0 0;color:#83716c;font-size:12px;line-height:1.55}
.woocommerce-checkout .cg-checkout-card--recipient .cg-checkout-delivery-selector{grid-column:1/-1!important;margin:4px 0 2px!important;padding:18px!important;border-color:#eadbd7!important;background:linear-gradient(135deg,#fff8f5,#fffdfc)!important;box-shadow:none!important}
.woocommerce-checkout .cg-checkout-card--recipient .cg-checkout-delivery-selector__head h3{font-size:20px!important}
.woocommerce-checkout .cg-checkout-card--recipient #billing_address_1_field,.woocommerce-checkout .cg-checkout-card--recipient #billing_address_2_field,.woocommerce-checkout .cg-checkout-combined__section--details #cg_card_message_field,.woocommerce-checkout .cg-checkout-combined__section--details #order_comments_field{grid-column:1/-1!important}

@media(max-width:980px){
.woocommerce-cart .woocommerce{grid-template-columns:1fr!important;grid-template-areas:"notices" "intro" "form" "addons" "totals" "reassurance"!important}
.woocommerce-cart .woocommerce>.woocommerce-cart-form,.woocommerce-cart .woocommerce>.cg-cart-addons,.woocommerce-cart .woocommerce>.cart-collaterals{grid-column:1!important}
}
@media(max-width:760px){
.woocommerce-cart .cg-cart-addons__grid{grid-template-columns:1fr!important}
.woocommerce-cart .cg-cart-addon{grid-template-columns:104px minmax(0,1fr)!important}
.woocommerce-cart .woocommerce-cart-form .coupon{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;float:none!important}
.woocommerce-cart .woocommerce-cart-form .coupon .input-text,.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"]{width:100%!important;min-height:50px!important;margin:0!important}
.single-product .woocommerce-tabs ul.tabs{margin-left:0!important;padding-left:8px!important}
.woocommerce-checkout .cg-checkout-combined__section{padding:17px;border-radius:16px}
}
@media(max-width:420px){
.woocommerce-cart .cg-cart-addon{grid-template-columns:92px minmax(0,1fr)!important}
.woocommerce-cart .cg-cart-addon__image{padding:7px!important}
.woocommerce-checkout .cg-checkout-card--recipient .cg-checkout-delivery-selector{padding:15px!important}
.woocommerce-checkout .cg-checkout-subheading h3{font-size:20px!important}
}
