/* ==========================================================================
   WCWC V2 — Base Layout + Cards
   ========================================================================== */

.wcwc-v2{
    max-width: 1100px;
    margin: 0 auto;
    color: #585755;
}

.wcwc-v2-grid{
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}
@media (max-width: 900px){
    .wcwc-v2-grid{ grid-template-columns: 1fr; }
}

.wcwc-v2-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px){
    .wcwc-v2-cards{ grid-template-columns: 1fr; }
}

.wcwc-v2-card{
    background: #f8f5f0;
    border: 1px solid rgba(148,149,144,1);
    padding: 22px 20px;
}

.wcwc-v2-icon{
    width: 100%;
    text-align: center;
    font-size: 50px;
    margin-bottom: 14px;
}

.wcwc-v2-card h3{
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.wcwc-v2-card .wcwc-v2-sub{
    margin: 0 0 18px;
    font-size: 14px;
    text-align: center;
    opacity: .95;
}

/* Preferences (legacy / if you use elsewhere) */
.wcwc-v2-prefs{
    display: grid;
    gap: 10px;
    margin-top: 6px;
}
.wcwc-v2-pref{
    display: flex;
    gap: 10px;
    align-items: center;
}

.wcwc-v2-help {
    display:none;
}

.wcwc-v2-price {
    text-align:center;
    margin-top:30px;
}

.wcwc-v2-login {
    text-align: center;
    margin-top:30px;
    font-sizE:14px;
}

.wcwc-v2-login a {
    color:#585755;
}

/* Actions */
.wcwc-v2-actions{
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.wcwc-v2-btn{
    padding: 16px 42px; /* more horizontal breathing room */
    min-width: 280px;   /* prevents cramped look */
    text-align: center;

    border-radius: 0;
    border: 1px solid rgba(148,149,144,1);
    background: #585755;
    color: #fff;
    cursor: pointer;
    font-family:"larken", serif !important;
    font-size:16px;
}

.wcwc-v2-btn:disabled{
    opacity: .35;
    cursor: not-allowed;
}

/* Summary (Step 2 / checkout sidebar etc.) */
.wcwc-v2-summary{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 18px;
    position: sticky;
    top: 224px;
}
.wcwc-v2-line{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
}
.wcwc-v2-total{
    font-weight: 700;
    font-size: 18px;
}
.wcwc-v2-muted{
    opacity: .75;
    font-size: 14px;
}

.wcwc-checkout-summary .wcwc-summary-wines {
    margin: 16px 0 18px;
    border-top: 1px solid rgba(0,0,0,.12);
}

.wcwc-checkout-summary .wcwc-summary-wine {
    display: grid;
    grid-template-columns: 52px 1fr 74px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    align-items: center;
}

.wcwc-checkout-summary .wcwc-summary-wine__image {
    width: 52px;
    height: 72px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcwc-checkout-summary .wcwc-summary-wine__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wcwc-checkout-summary .wcwc-summary-wine__body {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.wcwc-checkout-summary .wcwc-summary-wine__body strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.wcwc-checkout-summary .wcwc-summary-wine__body > span {
    display: block;
    opacity: .82;
}

.wcwc-checkout-summary .wcwc-summary-wine__price {
    display: inline-flex !important;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.wcwc-checkout-summary .wcwc-summary-wine__price span,
.wcwc-checkout-summary .wcwc-summary-wine__price bdi {
    display: inline !important;
    white-space: nowrap;
}

.wcwc-checkout-summary .wcwc-summary-wine__total {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

/* ==========================================================================
   STEP 1 Controls — Selects + Multi Dropdown
   Scoped to .redgum-form-section so it only affects that page/section
   ========================================================================== */

/* Field wrapper provides consistent chevron positioning */
.redgum-form-section .wcwc-v2-field{
    position: relative;
    margin-top: 6px;
}

/* Shared "input" look: <select> and multi <button> */
.redgum-form-section .wcwc-v2-select,
.redgum-form-section .wcwc-v2-multi__btn{
    width: 100%;
    box-sizing: border-box;

    /* matches your screenshot spacing */
    padding: 14px 44px 14px 16px;
    text-align:left;

    background: #ffffff !important;
    color: #585755;

    border: 0;
    border-bottom: 2px solid rgba(148,149,144,1);

    font-size: 16px;
    line-height: 1.2;

    /* prevent theme styles from forcing rounded inputs */
    border-radius: 0;
    box-shadow: none;
    font-family:"larken", serif !important;
}

/* Remove native select arrow */
.redgum-form-section .wcwc-v2-select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

/* Multi button alignment */
.redgum-form-section .wcwc-v2-multi__btn{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}
.redgum-form-section .wcwc-v2-multi__label{
    flex: 1;
}

/* One consistent arrow for all fields */
.redgum-form-section .wcwc-v2-field::after{
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #585755;
    opacity: .85;
    font-size: 14px;
}

/* Disabled */
.redgum-form-section .wcwc-v2-select:disabled{
    opacity: .55;
    cursor: not-allowed;
}

/* Focus state (accessibility + polish) */
.redgum-form-section .wcwc-v2-select:focus,
.redgum-form-section .wcwc-v2-multi__btn:focus{
    outline: none;
}
.redgum-form-section .wcwc-v2-select:focus-visible,
.redgum-form-section .wcwc-v2-multi__btn:focus-visible{
    outline: 2px solid rgba(148,149,144,.55);
    outline-offset: 3px;
}

/* Multi dropdown wrapper */
.redgum-form-section .wcwc-v2-multi{
    position: relative;
}

/* Panel hidden until open */
.redgum-form-section .wcwc-v2-multi__panel{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: #ffffff;
    border: 1px solid rgba(148,149,144,1);
    padding: 10px;
    z-index: 999;
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.redgum-form-section .wcwc-v2-multi.is-open .wcwc-v2-multi__panel{
    display: block;
}

/* Options */
.redgum-form-section .wcwc-v2-multi__opt{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 6px;
}
.redgum-form-section .wcwc-v2-multi__opt:hover{
    background: #f8f5f0;
}

.redgum-form-section .wcwc-v2-multi__opt input[type="checkbox"]{
    width: 16px;
    height: 16px;
    margin: 0;
}

.nmd-wcwc-join-form p {box-sizing: border-box;}
.nmd-wcwc-join-form .Row {margin-bottom:10px;}
.nmd-wcwc-join-form input[type="text"],
.nmd-wcwc-join-form input[type="email"],
.nmd-wcwc-join-form input[type="tel"],
.nmd-wcwc-join-form input[type="date"],
.nmd-wcwc-join-form input[type="password"],
.nmd-wcwc-join-form select{
    -webkit-appearance: none;
    background:#fff;
    padding:10px;
    border:1px solid #585755;
    border-radius:3px;
    width:100%;
    box-sizing: border-box;
}

/* ==========================================================================
   WCWC Checkout — Fullscreen mode
   ========================================================================== */

body.wcwc-checkout {
    background: #f8f5f0;
}

/* Hide theme header/footer (covers most WP themes) */
body.wcwc-checkout header,
body.wcwc-checkout footer,
body.wcwc-checkout .site-header,
body.wcwc-checkout .site-footer,
body.wcwc-checkout #masthead,
body.wcwc-checkout #colophon {
    display: none !important;
}

/* Remove common theme wrappers/padding */
body.wcwc-checkout #page,
body.wcwc-checkout .site,
body.wcwc-checkout .site-content,
body.wcwc-checkout #content,
body.wcwc-checkout .content-area {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Fullscreen shell */
.wcwc-checkout-shell{
    min-height: 100vh;
    padding: 48px 48px 40px;
    position: relative;
}

/* Top bar */
.wcwc-checkout-top{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 28px;
}

.wcwc-checkout-backbtn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(148,149,144,1);
    background: #ffffff;
    color: #585755;
    text-decoration: none;
    font-size: 14px;
}

/* Main grid like your screenshot */
.wcwc-checkout-grid{
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 360px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 980px){
    .wcwc-checkout-shell{ padding: 28px 18px; }
    .wcwc-checkout-grid{ grid-template-columns: 1fr; gap: 28px; }
}

/* Headings */
.wcwc-checkout-title{
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 600;
    color: #585755;
}

/* Section blocks */
.wcwc-checkout-section{
    margin-bottom: 26px;
}
.wcwc-checkout-section h3{
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}
.wcwc-checkout-help{
    margin: 0 0 12px;
    font-size: 12px;
    opacity: .8;
}

/* Field grid */
.wcwc-checkout-fields{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px){
    .wcwc-checkout-fields{ grid-template-columns: 1fr; }
}

.wcwc-checkout-field input,
.wcwc-checkout-field select{
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px;
    border: 1px solid rgba(148,149,144,1);
    background: #ffffff;
    color: #585755;
    font-size: 14px;
}

/* Shipping option row */
.wcwc-checkout-ship{
    border: 1px solid rgba(148,149,144,1);
    background: #ffffff;
    padding: 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* Payment box */
.wcwc-checkout-payment{
    border: 1px solid rgba(148,149,144,1);
    background: #ffffff;
    padding: 14px;
}

/* Consents */
.wcwc-checkout-consents{
    margin-top: 14px;
    display: grid;
    gap: 12px;
    font-size: 12px;
}
.wcwc-checkout-consents label{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Bottom bar */
.wcwc-checkout-bottom{
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

@media (max-width: 640px){
    .wcwc-checkout-bottom{ grid-template-columns: 1fr; gap: 14px; }
    .redgum-form-section .form-card {
        margin-left:0 !important;
        margin-right:0 !important;
        max-width:100%;
    }
}

.wcwc-checkout-backlink{
    justify-self: start;
    color: #585755;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wcwc-checkout-submit{
    justify-self: center;
    padding: 14px 26px;
    border: 0;
    background: #2f3336;
    color: #fff;
    cursor: pointer;
    min-width: 280px;
}

.wcwc-checkout-submit:disabled{
    opacity: .45;
    cursor: not-allowed;
}

/* Order summary */
.wcwc-checkout-summary{
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.35);
    padding: 18px;
    position: sticky;
    top: 50px;
}

.wcwc-checkout-summary h4{
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
}

.wcwc-checkout-summary .line{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    font-size: 13px;
}

.wcwc-checkout-summary .total{
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

#wcwc-dob-error{
    color: #b00020;
    font-weight: 600;
}

.wcwc-success{
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:12px;
    padding:28px;
}

.wcwc-success__icon{
    font-size:42px;
    line-height:1;
    margin-bottom:12px;
}

.wcwc-success__title{
    margin:0 0 6px;
}

.wcwc-success__text{
    margin:0 0 18px;
    opacity:.85;
}

.wcwc-success__actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

/* WooCommerce info notice accent colour */
.woocommerce-info {
    border-top-color: #a8b1a3 !important;
}

.woocommerce-info::before {
    color: #a8b1a3 !important;
}

.wcwc-checkout-label{
    display:block;
    font-weight: 600;
    margin: 0 0 8px;
}



/* ACCOUNT */

.wcwc-account-panel {
    max-width: 760px;
}

.wcwc-account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.wcwc-account-summary > div {
    background: #fff;
    padding: 18px;
    border: 1px solid rgba(0,0,0,.08);
}

.wcwc-account-summary strong,
.wcwc-account-summary span {
    display: block;
}

.wcwc-account-summary strong {
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wcwc-account-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.wcwc-account-fields label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.wcwc-account-fields select {
    width: 100%;
}

.wcwc-account-wines {
    margin: 24px 0;
}

.wcwc-account-wines__summary {
    display: inline-flex;
    gap: 5px;
    background: #f5f6f4;
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.wcwc-account-wines__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wcwc-account-wine {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    padding: 14px;
}

.wcwc-account-wine__image img {
    width: 64px;
    height: 90px;
    object-fit: contain;
}

.wcwc-account-wine__body strong {
    display: block;
    margin-bottom: 10px;
}

.wcwc-account-wine__qty {
    display: grid;
    grid-template-columns: 34px 46px 34px;
    width: max-content;
    border: 1px solid var(--light-green, #a8b1a3);
}

.wcwc-account-wine__qty button,
.wcwc-account-wine__qty input {
    height: 34px;
    border: 0;
    background: #fff;
    text-align: center;
}

.wcwc-account-wine__qty input {
    border-left: 1px solid var(--light-green, #a8b1a3);
    border-right: 1px solid var(--light-green, #a8b1a3);
}

@media (max-width: 700px) {
    .wcwc-account-summary,
    .wcwc-account-fields,
    .wcwc-account-wines__grid {
        grid-template-columns: 1fr;
    }
}

.wcwc-account-preferences {
	margin: 1rem 0 1.5rem;
}

.wcwc-account-preferences__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 0.75rem;
}

.wcwc-account-preferences__options label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
