/* Rovers Bulk Variations - frontend styles */
:root {
    --rvb-black: #111;
    --rvb-soft-black: #242424;
    --rvb-cream: #faf7f2;
    --rvb-sand: #efe7dc;
    --rvb-gold: #b89b5e;
    --rvb-gold-dark: #94763f;
    --rvb-border: #e8e1d8;
    --rvb-text: #2b2b2b;
    --rvb-muted: #8b837a;
    --rvb-green: #159447;
    --rvb-red: #b3262e;
    --rvb-red-dark: #841820;
}

.rvb-notice { margin: 12px 0; color: var(--rvb-red); font-weight: 700; }
.rvb-bulk-wrap { width: 100%; overflow-x: auto; margin: 22px 0; }
.rvb-bulk-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--rvb-border); box-shadow: 0 18px 45px rgba(0,0,0,.05); overflow: hidden; }
.rvb-bulk-table th, .rvb-bulk-table td { border: none; border-right: 1px solid var(--rvb-border); border-bottom: 1px solid var(--rvb-border); text-align: center; color: var(--rvb-text); }
.rvb-bulk-table th:last-child, .rvb-bulk-table td:last-child { border-right: none; }
.rvb-bulk-corner, .rvb-bulk-table thead th:first-child { background: var(--rvb-cream); }

.rvb-bulk-col-head { position: relative; height: 70px; padding: 0; background: var(--rvb-cream); overflow: hidden; vertical-align: middle; transition: all .22s ease; }
.rvb-bulk-col-add { position: absolute; inset: 0; width: 100%; height: 100%; border: none; border-radius: 0; margin: 0; padding: 0; background: transparent; color: var(--rvb-soft-black); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: all .22s ease; }
.rvb-bulk-col-title { display: block; font-size: 15px; font-weight: 800; letter-spacing: .04em; pointer-events: none; }
.rvb-bulk-col-action { display: block; font-size: 12px; font-weight: 900; letter-spacing: .16em; color: transparent; pointer-events: none; transition: color .22s ease; }
.rvb-bulk-col-head.rvb-col-hover, .rvb-bulk-col-head:hover { background: var(--rvb-black); box-shadow: inset 0 -3px 0 var(--rvb-gold); }
.rvb-bulk-col-head.rvb-col-hover .rvb-bulk-col-add, .rvb-bulk-col-head:hover .rvb-bulk-col-add { background: var(--rvb-black); color: #fff; }
.rvb-bulk-col-head.rvb-col-hover .rvb-bulk-col-action, .rvb-bulk-col-head:hover .rvb-bulk-col-action { color: var(--rvb-gold); }
.rvb-bulk-col-add:hover { background: var(--rvb-soft-black); }

.rvb-bulk-row-label { min-width: 120px; padding: 18px 20px; background: #fff; color: var(--rvb-black); font-size: 14px; font-weight: 800; text-align: left; text-transform: capitalize; letter-spacing: .02em; white-space: nowrap; }
.rvb-bulk-cell { position: relative; padding: 18px 12px; background: #fff; transition: all .22s ease; }
.rvb-bulk-table .rvb-col-hover { background: #fbf4e9; border-color: #d9c8a8; }
.rvb-bulk-qty { width: 58px; height: 44px; padding: 0; border: 1px solid var(--rvb-border); background: #fff; color: var(--rvb-black); font-size: 15px; font-weight: 800; text-align: center; outline: none; transition: all .22s ease; appearance: textfield; -moz-appearance: textfield; }
.rvb-bulk-qty::-webkit-outer-spin-button, .rvb-bulk-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rvb-bulk-qty::placeholder { color: rgba(17,17,17,.22); opacity: 1; }
.rvb-bulk-qty:focus { border-color: var(--rvb-gold); box-shadow: 0 0 0 3px rgba(184,155,94,.16); }
.rvb-bulk-cell.rvb-col-hover .rvb-bulk-qty { border-color: var(--rvb-gold); }
.rvb-bulk-qty:disabled { opacity: .32; cursor: not-allowed; background: #f4f1ed; border-color: #e4ddd5; }
.rvb-bulk-stock-status { display: block; margin-top: 8px; color: var(--rvb-red); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.rvb-bulk-price { display: block; margin-top: 6px; color: var(--rvb-muted); font-size: 11px; }
.rvb-bulk-empty { color: #c5beb6; }

.rvb-bulk-table tfoot th, .rvb-bulk-table tfoot td { padding: 0; height: 38px; background: var(--rvb-cream); }
.rvb-bulk-col-foot { transition: all .22s ease; }
.rvb-bulk-col-subtract { display: none; width: 100%; height: 38px; margin: 0; padding: 0; border: none; border-radius: 0; background: var(--rvb-red); color: #fff; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; letter-spacing: .16em; cursor: pointer; transition: all .22s ease; }
.rvb-bulk-col-subtract.is-visible { display: flex; }
.rvb-bulk-col-subtract:hover { background: var(--rvb-red-dark); }

.rvb-bulk-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; }
.rvb-bulk-summary { color: var(--rvb-muted); font-size: 14px; line-height: 1.7; }
.rvb-bulk-summary strong { color: var(--rvb-black); font-weight: 900; }
.rvb-bulk-button { position: relative; min-width: 220px; padding: 15px 28px; border: none; background: var(--rvb-black); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: all .22s ease; }
.rvb-bulk-button:hover { background: var(--rvb-gold-dark); transform: translateY(-1px); }
.rvb-bulk-button.is-loading { pointer-events: none; opacity: .8; color: transparent !important; }
.rvb-bulk-button.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin-top: -9px; margin-left: -9px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: rvbSpin .7s linear infinite; }
@keyframes rvbSpin { to { transform: rotate(360deg); } }

.rvb-bulk-message { display: none; margin-top: 15px; padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center; }
.rvb-bulk-message.is-success { background: #f1f7ef; color: #2d6a35; border: 1px solid #c9e3c5; }
.rvb-bulk-message.is-error { background: #fff1f1; color: var(--rvb-red); border: 1px solid #f1b8b8; }

.rvb-buy-tabs { width: 100%; margin-top: 25px; }
.rvb-buy-tab-nav { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rvb-border); margin-bottom: 22px; }
.rvb-buy-tab { background: transparent !important; color: var(--rvb-muted) !important; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; border: none !important; border-bottom: 2px solid transparent !important; padding: 14px 20px; cursor: pointer; box-shadow: none !important; }
.rvb-buy-tab.active { color: var(--rvb-black) !important; border-bottom-color: var(--rvb-black) !important; }
.rvb-buy-panel { display: none; }
.rvb-buy-panel.active { display: block; }
.rvb-buy-panel[data-panel="single"] .variations_form { margin-top: 10px; }
.rvb-buy-panel[data-panel="single"] table.variations { width: 100%; margin-bottom: 18px; }
.rvb-size-modal-shell ~ form.variations_form.cart, .rvb-size-modal-shell ~ * form.variations_form.cart { display: none !important; }
.rvb-size-modal-shell form.variations_form.cart { display: block !important; }

.rvb-open-size-modal { width: 100%; background: var(--rvb-black); color: #fff; border: none; padding: 16px 24px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; transition: all .2s ease; }
.rvb-open-size-modal:hover { background: var(--rvb-gold-dark); }
.rvb-size-modal-overlay { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.rvb-size-modal-shell.is-open .rvb-size-modal-overlay { display: flex; }
.rvb-size-modal-box { position: relative; width: min(960px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.rvb-close-size-modal { position: absolute; top: 14px; right: 16px; width: 42px; height: 34px; border: none; background: #f2f2f2; color: var(--rvb-black); font-size: 24px; line-height: 1; cursor: pointer; }
.rvb-close-size-modal:hover { background: var(--rvb-black); color: #fff; }
.rvb-size-modal-header { margin-bottom: 20px; padding-right: 48px; }
.rvb-size-modal-header h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.rvb-size-modal-header p { margin: 0; color: #666; font-size: 14px; }
.rvb-size-modal-content .rvb-buy-tabs { margin-top: 0; }
body.rvb-modal-open { overflow: hidden; }

.rvb-confirmation-box { text-align: center; padding: 48px 20px; }
.rvb-confirmation-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--rvb-black); color: var(--rvb-gold); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.rvb-confirmation-box h3 { margin: 0 0 10px; color: var(--rvb-black); font-size: 24px; font-weight: 900; }
.rvb-confirmation-box p { margin: 0 0 24px; color: var(--rvb-muted); font-size: 15px; }
.rvb-confirmation-close { position: static !important; width: auto !important; height: auto !important; background: var(--rvb-black) !important; color: #fff !important; padding: 14px 28px !important; font-size: 12px !important; font-weight: 900 !important; letter-spacing: .14em !important; text-transform: uppercase !important; }

@media (max-width: 768px) {
    .rvb-bulk-table { min-width: 620px; }
    .rvb-bulk-bottom { flex-direction: column; align-items: stretch; }
    .rvb-bulk-button { width: 100%; min-width: 0; }
    .rvb-size-modal-box { padding: 22px 16px; max-height: 88vh; }
    .rvb-size-modal-header h3 { font-size: 19px; }
    .rvb-buy-tab { font-size: 10px; padding: 12px 8px; }
}
