
body.wwadd-gallery .cost{font-size:17px!important;font-weight:750!important;color:#143f38!important;margin:9px 0 10px!important;line-height:1.4!important}
body.wwadd-gallery .cost del{color:#788587;font-weight:500;margin-right:7px}
body.wwadd-gallery .cost ins{text-decoration:none;color:#167044;font-weight:850}
body.wwadd-gallery .add[disabled]{opacity:.5;cursor:not-allowed;filter:grayscale(.4)}
body.wwadd-gallery .wwadd-message{font-size:15px;margin:10px 0 5px;padding:9px 12px;border-radius:8px;background:#e7f5ec;color:#115631;font-weight:700;line-height:1.5}
body.wwadd-gallery .wwadd-message.wwadd-error{background:#fff0e7;color:#8e3b21}
body.wwadd-gallery .wwadd-return{margin:12px auto 24px;text-align:center;display:flex;gap:14px;flex-wrap:wrap;justify-content:center;align-items:center}
body.wwadd-gallery .wwadd-return button{cursor:pointer;border:1px solid #176e49;border-radius:10px;background:#176e49;color:white;padding:14px 20px;font-size:16px;font-weight:700}
body.wwadd-gallery .product-inner .quantity button{cursor:pointer}

/* V4.1 — clear, accessible confirmation after WooCommerce confirms the add. */
body.wwadd-gallery .wwadd-message:not([hidden]){display:flex;flex-direction:column;gap:8px;margin:16px 0 8px;padding:16px;border-radius:14px;border:1px solid #a7d8bc;background:#e7f5ec;color:#115631;overflow-wrap:anywhere}
body.wwadd-gallery .wwadd-message .wwadd-confirm-title{font-size:18px;line-height:1.3}
body.wwadd-gallery .wwadd-message .wwadd-confirm-detail{font-size:14px;font-weight:750}
body.wwadd-gallery .wwadd-message .wwadd-confirm-prompt{font-size:14px;font-weight:500;line-height:1.5}
body.wwadd-gallery .wwadd-confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
body.wwadd-gallery .wwadd-confirm-actions button{font:750 14px/1.3 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;border-radius:10px;padding:12px 14px;cursor:pointer;flex:1 1 180px;min-height:46px}
body.wwadd-gallery .wwadd-confirm-more{background:#fff;border:1px solid #196344;color:#15543a}
body.wwadd-gallery .wwadd-confirm-return{background:#164d46;border:1px solid #164d46;color:#fff}
body.wwadd-gallery .wwadd-confirm-actions button:focus-visible{outline:3px solid #198a66;outline-offset:2px}
body.wwadd-gallery .wwadd-message.wwadd-error{background:#fff0e7;border-color:#e3b8a4;color:#8e3b21}

/* V4.2: WooCommerce screen-reader-only price labels must not display as repeated prose. */
body.wwadd-gallery .cost .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* V4.3 — let successful add confirmations expand their own sail row.
   The original collection uses flex:1 on the product rows, which compressed
   adjacent rows and caused the confirmation to cover the next product. */
body.wwadd-gallery .sail-unit .choice{height:auto!important;min-height:0!important;overflow:visible!important;align-self:stretch!important}
body.wwadd-gallery .sail-unit .product{flex:0 0 auto!important;min-height:220px!important;height:auto!important;align-items:start!important;grid-template-columns:minmax(0,34%) minmax(0,1fr)!important;overflow:visible!important;position:relative!important}
body.wwadd-gallery .sail-unit .product-inner{min-width:0!important;width:100%!important;overflow:visible!important;position:relative!important}
body.wwadd-gallery .sail-unit .wwadd-message{box-sizing:border-box;position:static!important;max-width:100%!important;min-width:0!important;clear:both!important;overflow:visible!important;z-index:auto!important}
body.wwadd-gallery .sail-unit .wwadd-confirm-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;margin-top:8px}
body.wwadd-gallery .sail-unit .wwadd-confirm-actions button{display:block;position:relative;z-index:3;width:100%;max-width:100%;flex:none;min-height:48px;white-space:normal;overflow-wrap:normal;pointer-events:auto!important}
body.wwadd-gallery .sail-unit .product+.product{margin-top:18px;padding-top:24px;border-top:1px solid #dce2e4}
@media(max-width:700px){body.wwadd-gallery .sail-unit .product{grid-template-columns:minmax(0,34%) minmax(0,1fr)!important;gap:8px!important;min-height:190px!important}body.wwadd-gallery .sail-unit .wwadd-message:not([hidden]){padding:12px!important}body.wwadd-gallery .sail-unit .wwadd-confirm-actions button{padding:12px 8px!important;font-size:13px!important}}
