/* Shared brand states override theme defaults, including touch/visited states. */
.tc-sf :is(.button,.tc-primary,.tc-account-primary,.tc-step-next,.tc-checkout-next,#place_order,input[type=submit]){background:#E4007D!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#E4007D!important}
.tc-sf :is(.button,.tc-primary,.tc-account-primary,.tc-step-next,.tc-checkout-next,#place_order,input[type=submit]):is(:hover,:focus-visible,:active){background:#4A153B!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#4A153B!important}
.tc-sf :is(.tc-step-edit,.tc-delivery-edit){background:transparent!important;color:#4A153B!important;-webkit-text-fill-color:#4A153B!important;border:0!important;box-shadow:none!important}
.tc-sf :is(.tc-step-edit,.tc-delivery-edit):hover{background:#FFE6F1!important}
.tc-sf .woocommerce-message,.tc-sf .woocommerce-info{background:#FFE6F1!important;color:#292329!important;border:0!important;border-radius:20px;padding:24px 24px 24px 58px}
.tc-sf .tc-working-step h2:focus:not(:focus-visible){outline:0}
.tc-sf .tc-product .tc-price,.tc-sf-shop ul.products li.product>.price{display:none!important}
.tc-sf-product .woocommerce-product-gallery :is(a,button,[role=button]){background:transparent!important;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.tc-sf-product .woocommerce-product-gallery img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.tc-sf-product .woocommerce-product-gallery :is(a,button,[role=button]):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
.tc-sf-product .woocommerce-product-gallery :is(a,button,[role=button]):focus-visible{outline:2px solid #4A153B!important;outline-offset:3px}
.tc-upload-open,.tc-upload-choose{background:#E4007D!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0;border-radius:28px;padding:14px 22px;font:800 17px Nunito,sans-serif;cursor:pointer}
.tc-upload-open:hover,.tc-upload-choose:hover{background:#4A153B!important}
.tc-upload-guide{width:min(480px,calc(100vw - 32px));box-sizing:border-box;max-height:90dvh;overflow:auto;background:#FFF9F2;color:#292329;border:0;border-radius:22px;padding:24px;font:18px/1.5 Nunito,sans-serif}
.tc-upload-guide::backdrop{background:#29122299}.tc-upload-guide h2{color:#4A153B;font-family:'Lilita One',sans-serif}.tc-upload-guide label{display:block;margin:18px 0}.tc-upload-guide .tc-upload-cancel{background:transparent!important;color:#4A153B!important;border:0;text-decoration:underline;margin-left:12px}.tc-upload-guide :focus-visible{outline:2px solid #E4007D;outline-offset:3px}

/* Gutenberg links (including collection panels) are not Woo .button elements. */
.tc-sf .wp-block-button__link{background:#E4007D!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#E4007D!important;filter:none!important}
.tc-sf .wp-block-button__link:is(:hover,:focus-visible,:active){background:#4A153B!important;color:#fff!important;-webkit-text-fill-color:#fff!important;filter:none!important}
/* Explicitly cover theme hover rules on native buttons, retaining artwork surfaces. */
.tc-sf button:not(.tc-basket-art):not(.tc-account-art):not(.tc-card-preview):not([role=tab]):not(.tc-step-edit):not(.tc-delivery-edit):not(.tc-upload-cancel):is(:hover,:focus-visible,:active){background-color:#4A153B!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.tc-sf :is(.tc-basket-art,.tc-account-art):is(:hover,:focus,:active){background-color:#fff!important}

/* 0.1.37: scoped product listing and upload layout */
.tc-sf-product .related ul.products li.product img{width:100%!important;height:auto!important;aspect-ratio:5/7;object-fit:contain!important;object-position:center;background:#fff;box-sizing:border-box}
.tc-sf-product .related ul.products li.product .price,.tc-sf-shop ul.products li.product .price{display:none!important}
.tc-upload-filename{display:block;margin-top:8px;overflow-wrap:anywhere;font:700 14px Nunito,sans-serif}
.tc-sf-product #cp-photo[hidden]{display:none!important}
/* 0.1.38: the source is uncropped; preserve its natural proportions. */
.tc-sf-product .related ul.products li.product img{aspect-ratio:auto!important;height:auto!important;object-fit:contain!important;display:block}

/* v0.1.39: compact, horizontally scrollable related-card shelf */
.tc-sf-product .related ul.products{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:14px;scroll-snap-type:x proximity;padding:4px 2px 16px!important;margin:0!important;-webkit-overflow-scrolling:touch}
.tc-sf-product .related ul.products::before,.tc-sf-product .related ul.products::after{display:none!important}
.tc-sf-product .related ul.products li.product{float:none!important;flex:0 0 clamp(145px,20vw,205px);width:auto!important;margin:0!important;scroll-snap-align:start}
.tc-sf-product .related ul.products li.product img{width:100%!important;height:auto!important;aspect-ratio:5/7!important;object-fit:contain!important}

/* 0.1.41: compact related-product action, preserving WooCommerce behaviour. */
.tc-sf-product .related ul.products li.product a.button{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:0!important;padding:7px 12px!important;font-size:13px!important;line-height:1.25!important;border-radius:18px!important;white-space:nowrap}

.tc-sf-product .summary>.price{display:block!important;color:#4A153B;font-weight:800}.tc-sf-product .tc-single-card-description{margin-top:.25rem}
.tc-sf-product .tc-single-format-row{display:none!important}
@media(max-width:800px){body.tc-sf-product-page #ast-scroll-top{width:44px;height:44px;line-height:44px}}

/* 0.1.59: related artwork shelf uses the catalogue image proportions. */
.tc-sf-product .related ul.products li.product .tc-loop-image img{aspect-ratio:5/6!important;padding:18px;border-radius:16px;margin:0!important;box-sizing:border-box}
.tc-sf-product .related ul.products li.product a.button{display:none!important}
@media(max-width:700px){.tc-sf-product .related ul.products{gap:10px;padding-inline:0!important}.tc-sf-product .related ul.products li.product{flex-basis:calc((100% - 10px)/2)}.tc-sf-product .related ul.products li.product .tc-loop-image img{padding:9px;border-radius:12px}}

/* 0.1.60: related gallery matches catalogue portrait treatment. */
.tc-sf-product .related ul.products{gap:16px}
.tc-sf-product .related ul.products li.product .tc-loop-image img{aspect-ratio:1590/2161!important;padding:0!important;border-radius:8px;object-fit:contain!important;margin:0!important}
.tc-sf-product .related ul.products li.product .astra-shop-summary-wrap{height:0;min-height:0!important;margin:0!important;padding:0!important}
@media(max-width:700px){.tc-sf-product .related ul.products{gap:8px}.tc-sf-product .related ul.products li.product{flex-basis:calc((100% - 8px)/2)}}
