.acw { display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }
.acw *, .acw *::before, .acw *::after { box-sizing: border-box; }

/* Price */
.acw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 20px; font-weight: 700; }
.acw-price del { opacity: .6; font-weight: 400; font-size: .8em; }
.acw-price ins { text-decoration: none; }

/* Safety: never show WooCommerce's View cart link */
.acw .added_to_cart, .acw .wc-forward { display: none !important; }

/* Variation */
.acw-var-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acw-var-title { flex: 0 0 auto; font-size: 15px; font-weight: 600; }
.acw-var-wrap { display: flex; flex-direction: column; gap: 10px; flex: 0 1 auto; min-width: 0; }
.acw-var-group { display: flex; flex-direction: column; gap: 6px; }
.acw-var-label { font-weight: 600; font-size: 14px; }
.acw-var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.acw-opt { cursor: pointer; padding: 6px 14px; font-size: 14px; line-height: 1.3; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px; transition: all .2s; }
.acw-opt:hover { border-color: #111; }
.acw-opt.is-active { color: #fff; background: #111; border-color: #111; }

/* Row */
.acw-row { display: flex; flex-wrap: wrap; align-items: center; }

/* Quantity */
.acw-qty { display: inline-flex; align-items: center; gap: 0; }
.acw-qty-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; font-size: 18px; line-height: 1; color: #111; background: #f3f3f3; border: 1px solid #ccc; border-radius: 4px; }
.acw-qty-btn:hover { background: #e5e5e5; }
.acw-qty-input { width: 52px; height: 36px; padding: 0; text-align: center; font-size: 16px; color: #111; background: #fff; border: 1px solid #ccc; border-radius: 4px; -moz-appearance: textfield; }
.acw-qty-input::-webkit-outer-spin-button, .acw-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Buttons */
.acw-buttons { display: flex; flex-direction: row; gap: 10px; }
.acw-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; border: 1px solid transparent; border-radius: 4px; transition: all .2s; }
.acw-btn-add { color: #fff; background: #111; border-color: #111; }
.acw-btn-add:hover { opacity: .85; color: #fff; }
.acw-btn-buy { color: #fff; background: #e63946; border-color: #e63946; }
.acw-btn-buy:hover { opacity: .85; color: #fff; }
.acw-btn.is-loading { opacity: .6; pointer-events: none; position: relative; }
.acw-btn.is-loading::after { content: ""; width: 14px; height: 14px; margin-left: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: acw-spin .6s linear infinite; }
.acw-icon { font-size: 1em; width: 1em; height: 1em; }

/* Message */
.acw-msg { min-height: 0; font-size: 13px; }
.acw-msg:empty { display: none; }
.acw-msg.is-success { color: #1a8f3c; }
.acw-msg.is-error { color: #d63031; }

@keyframes acw-spin { to { transform: rotate(360deg); } }

/* Out of stock */
.acw-oos-text { padding: 8px 14px; font-size: 16px; font-weight: 700; text-align: center; color: #d63031; background: #fdecea; border-radius: 4px; }
