/* T29 Secure Deposits v1.0.4
 * Product-page payment choice + checkout summary styling.
 */

:root {
    --t29-accent: #e96500;
    --t29-accent-hover: #f47712;
    --t29-dark: #0b0b0b;
    --t29-panel: #141414;
    --t29-panel-2: #1b1b1b;
    --t29-border: rgba(255,255,255,.16);
    --t29-text: #ffffff;
    --t29-muted: #b9b9b9;
}

/* ---------- Product page: payment selector ---------- */
.single-product .t29-sd-product-choice {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    clear: both;
    float: none;
    margin: 18px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(233,101,0,.78);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(22,22,22,.98), rgba(10,10,10,.98));
    color: var(--t29-text);
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

.single-product .t29-sd-product-choice legend {
    width: auto;
    margin: 0;
    padding: 0 7px;
    border: 0;
    background: var(--t29-dark);
    color: #d7d7d7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.single-product .t29-sd-product-choice > label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid var(--t29-border);
    border-radius: 8px;
    background: var(--t29-panel);
    color: var(--t29-text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.single-product .t29-sd-product-choice > label:hover {
    border-color: rgba(233,101,0,.8);
    background: var(--t29-panel-2);
}

.single-product .t29-sd-product-choice > label:has(input:checked) {
    border-color: var(--t29-accent);
    background: rgba(233,101,0,.10);
    box-shadow: 0 0 0 1px rgba(233,101,0,.15) inset;
}

.single-product .t29-sd-product-choice input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--t29-accent);
    cursor: pointer;
}

.single-product .t29-sd-product-choice strong {
    display: inline;
    margin: 0;
    color: var(--t29-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.single-product .t29-sd-product-choice label span {
    display: inline;
    margin: 0;
    color: var(--t29-muted);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}

/* Keep the selector compact and side-by-side on normal desktop widths. */
@media (min-width: 680px) {
    .single-product form.cart > .t29-sd-product-choice,
    .single-product .t29-sd-product-choice {
        display: grid !important;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
        gap: 8px;
    }

    .single-product .t29-sd-product-choice legend {
        grid-column: 1 / -1;
    }

    .single-product .t29-sd-product-choice > label {
        min-height: 44px;
    }
}

@media (max-width: 679px) {
    .single-product .t29-sd-product-choice {
        padding: 11px;
    }

    .single-product form.cart > .t29-sd-product-choice,
    .single-product .t29-sd-product-choice {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .single-product .t29-sd-product-choice label span {
        white-space: normal;
    }
}

/* ---------- Product page: quantity + Add to Cart ---------- */
.single-product form.cart {
    align-items: center;
}

.single-product form.cart .t29-sd-product-choice ~ .quantity,
.single-product form.cart .quantity {
    box-sizing: border-box;
    width: 78px !important;
    min-width: 78px;
    height: 52px;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 8px !important;
    background: #111 !important;
    overflow: hidden;
    vertical-align: middle;
}

.single-product form.cart .quantity .qty {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 50px !important;
    text-align: center;
    box-shadow: none !important;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button,
.single-product form.cart .button.single_add_to_cart_button {
    box-sizing: border-box;
    min-width: 195px;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 28px !important;
    border: 1px solid var(--t29-accent) !important;
    border-radius: 999px !important;
    background: var(--t29-accent) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 50px !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus {
    border-color: var(--t29-accent-hover) !important;
    background: var(--t29-accent-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(233,101,0,.22) !important;
}

.single-product form.cart .single_add_to_cart_button:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px;
}

/* Prevent theme flex/grid rules from squeezing the payment selector. */
.single-product form.cart > .t29-sd-product-choice {
    display: block;
    flex-basis: 100% !important;
    order: 50;
}

.single-product form.cart > .quantity {
    order: 60;
}

.single-product form.cart > .single_add_to_cart_button {
    order: 61;
}

/* ---------- Checkout Blocks ---------- */
.t29-sd-block-full,
.t29-sd-block-balance {
    font-weight: 600;
}

.t29-sd-block-full .wc-block-components-totals-item__label,
.t29-sd-block-balance .wc-block-components-totals-item__label {
    font-weight: 600;
}

/* ---------- Public order summary ---------- */
.t29-sd-order-summary {
    margin-top: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 679px) {
.single-product form.cart .quantity {
        width: 72px !important;
        min-width: 72px;
    }

    .single-product form.cart .single_add_to_cart_button,
    .single-product form.cart button.single_add_to_cart_button,
    .single-product form.cart .button.single_add_to_cart_button {
        min-width: 0;
        width: calc(100% - 82px) !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
