/* Product page extras (class-product-page-extras.php): option buttons and the short "Save" button beside the basket
   button. Loaded only when a shop switches one on. Theme-independent: button basics carry !important against theme
   button rules, and colours follow the theme palette. */

/* Option buttons. The menu stays for WooCommerce's script; it is hidden only once swatches.js is running. */
.em-swatch-field{position:relative}
.em-swatches-ready select{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden}
.em-swatches{display:none;flex-wrap:wrap;gap:8px;margin:2px 0 6px}
.em-swatches-ready .em-swatches{display:flex}
.em-swatch{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:40px;margin:0!important;padding:7px 15px!important;border:1.5px solid var(--em-line,#e3dbe9)!important;border-radius:999px!important;background:#fff!important;color:var(--em-charcoal,#382b40)!important;font:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;cursor:pointer;transition:border-color .15s,background-color .15s,color .15s}
.em-swatch:hover{border-color:var(--em-purple,#76528d)!important}
.em-swatch[aria-checked=true]{border-color:var(--em-purple,#76528d)!important;background:var(--em-purple,#76528d)!important;color:#fff!important}
.em-swatch:focus-visible{outline:2px solid var(--em-purple,#76528d);outline-offset:2px}
.em-swatch.is-unavailable{opacity:.45;text-decoration:line-through!important;cursor:not-allowed}
/* Colour choices: a round dot, the name kept for screen readers and the tooltip. */
.em-swatch.em-swatch-colour{width:40px;height:40px;min-width:0;padding:3px!important;border-radius:50%!important}
.em-swatch-colour .em-swatch-dot{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.em-swatch-colour .em-swatch-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.em-swatch.em-swatch-colour[aria-checked=true]{background:#fff!important;box-shadow:0 0 0 2px var(--em-purple,#76528d)!important}
.em-swatch.em-swatch-colour.is-unavailable{text-decoration:none!important}
.em-swatch-chosen{font-weight:400;color:var(--em-sub,#625961)}

/* "Save" beside the basket button: the button row and the wishlist button share a line, bottom-aligned so the
   heart sits level with the basket button even when product options are above it. */
.em-buy-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
/* Anything a payment plugin adds after the basket form (Apple Pay / Google Pay buttons) gets a full line of its own
   below the form and the Save button, as it had before the row existed. */
.em-buy-row>*{order:2;flex:1 1 100%;min-width:0}
.em-buy-row>form.cart{order:0;flex:1 1 260px;min-width:0;margin-bottom:0!important}
.em-buy-row>.em-wishlist-compact{order:1;flex:0 0 auto;margin:0!important}
.em-wishlist-compact .em-wishlist-form{flex-wrap:nowrap}
.em-wishlist-compact .em-wishlist-button{min-height:48px!important;padding:10px 20px!important}
.em-wishlist-compact .em-wishlist-link{display:none!important}
@media(max-width:480px){.em-buy-row{gap:10px}.em-buy-row>form.cart{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.em-swatch{transition:none}}
