/* ==========================================================================
   order-summary.css - pages/order-summary.blade.php (guest layout, `wide`).
   Figma: 443:7736 (desktop 1920) / 443:7821 (mobile 320).
   ========================================================================== */

.order-summary-body .auth-breeze-main {
    padding-top: 156px;
}

.order-page {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.order-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.order-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 46px;
    color: #071A31;
}

.order-sub {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #455365;
}

.order-alert {
    margin: -20px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: #FFF1F1;
    border: 1px solid #FFD0D0;
    color: #B42318;
    font-size: 13px;
    font-weight: 500;
}

.order-alert-warn {
    margin: 0;
    background: #FFF8E6;
    border-color: #F8DFA0;
    color: #8A5A00;
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 480px));
    justify-content: center;
    align-items: start;
    gap: 20px;
}

.order-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

/* ---------- Plan card ---------- */
.order-plan {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.order-plan-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #071A31;
}

.order-badge {
    padding: 1px 5px;
    border-radius: 3px;
    background: #D8C9FD;
    color: #071A31;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-transform: uppercase;
}

.order-billed {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    color: #455365;
}

.order-trash {
    display: inline-flex;
    line-height: 0;
}

.order-trash img {
    width: 18px;
    height: 18px;
}

.order-features {
    list-style: none;
    margin: 0;
    padding: 15px;
    border-radius: 8px;
    background: #F3F6FA;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    color: #455365;
}

.order-features img {
    width: 10px;
    height: 7px;
    flex-shrink: 0;
}

.order-prices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D6DFEB;
}

.order-row {
    display: flex;
    line-height: normal;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #455365;
}

.order-row strong {
    font-weight: 600;
    color: #071A31;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-total-label {
    line-height: normal;
    font-size: 14px;
    font-weight: 600;
    color: #071A31;
}

.order-total-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.order-total-right strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #006BFF;
}

.order-total-right span {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #455365;
}

/* ---------- Payment card ---------- */
.order-pay-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.order-pay-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #071A31;
}

.order-pay-head a {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #006BFF;
    text-decoration: underline;
    text-underline-position: from-font;
    white-space: nowrap;
}

.order-pay-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pay-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 1px solid #D6DFEB;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    margin: 0;
}

/* Keep the real radio for forms/keyboard, but hide it visually. */
.pay-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pay-option:has(input:checked) {
    background: #F5F8FC;
    border: 2px solid #006BFF;
    padding: 19px;
}

.pay-option:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.2);
}

.pay-option.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pay-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pay-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #222441;
}

.pay-radio {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("../images/auth-checkout/radio-off.svg") center / 100% 100% no-repeat;
}

.pay-option:has(input:checked) .pay-radio {
    background-image: url("../images/auth-checkout/radio-on.svg");
}

.pay-logos {
    display: flex;
    gap: 6px;
    margin-bottom: -3px;
}

.pay-logos img {
    width: 34px;
    height: 24px;
}

.pay-desc {
    margin-top: -3px;
    font-size: 11px;
    font-weight: 500;
    color: #455365;
}

.guest-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-fields p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: #455365;
}

.guest-fields a,
.order-terms a {
    color: #006BFF;
    font-weight: 600;
    text-decoration: none;
}

.guest-fields a:hover,
.order-terms a:hover {
    text-decoration: underline;
}

.order-terms {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: #455365;
}

.checkout-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #071A31;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.checkout-btn:hover {
    background: #13294E;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Tablet ---------- */
@media (max-width: 1019px) {
    .order-summary-body .auth-breeze-main {
        padding-top: 140px;
    }

    .order-grid {
        grid-template-columns: minmax(0, 480px);
    }
}

/* ---------- Mobile (Figma 320) ---------- */
@media (max-width: 767px) {
    .order-summary-body .auth-breeze-main {
        padding: 78px 15px 60px;
    }

    .order-page {
        gap: 15px;
    }

    .order-head {
        gap: 8px;
    }

    .order-title {
        font-size: 20px;
        line-height: 26px;
    }

    .order-sub {
        font-size: 11px;
    }

    .order-alert {
        margin: 0;
        font-size: 11px;
    }

    .order-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .order-card {
        padding: 20px 15px;
        gap: 15px;
    }

    .order-plan {
        gap: 10px;
    }

    .order-plan-name {
        font-size: 14px;
    }

    .order-badge {
        padding: 1px 4px;
        font-size: 9px;
        line-height: 12px;
    }

    .order-billed {
        margin-top: 4px;
        font-size: 10px;
    }

    .order-features {
        padding: 12px;
        gap: 6px;
    }

    .order-features li {
        font-size: 11px;
    }

    .order-prices {
        gap: 10px;
        padding-bottom: 10px;
    }

    .order-row,
    .order-total-label {
        font-size: 11px;
    }

    .order-total-right strong {
        font-size: 16px;
        line-height: normal;
    }

    .order-total-right span {
        font-size: 10px;
        line-height: 14px;
    }

    .order-pay {
        padding: 15px;
    }

    .order-pay-head h2 {
        font-size: 13px;
        line-height: normal;
    }

    .order-pay-head a {
        font-size: 10px;
        line-height: 14px;
    }

    .order-pay-body {
        gap: 10px;
    }

    .pay-option {
        padding: 12px;
        gap: 15px;
    }

    .pay-option:has(input:checked) {
        padding: 11px;
    }

    .pay-long {
        display: none;
    }

    .pay-option-name {
        font-size: 11px;
    }

    .pay-radio {
        width: 18px;
        height: 18px;
    }

    .pay-logos {
        gap: 4px;
        margin-bottom: -9px;
    }

    .pay-logos img {
        width: 28px;
        height: 20px;
    }

    .pay-desc {
        margin-top: 0;
        font-size: 9px;
        line-height: 12px;
    }

    .guest-fields p,
    .order-terms {
        font-size: 10px;
        line-height: 14px;
    }

    .checkout-btn {
        height: 44px;
        border-radius: 8px;
        font-size: 11px;
    }
}

/* ---------- Tap targets (R2-41) ----------
   ~40px clickable areas; equal negative margins / inline padding so nothing moves. */
.order-trash {
    padding: 11px;
    margin: -11px;
}

.order-pay-head a {
    padding: 12px 0;
    margin: -12px 0;
}

.guest-fields a,
.order-terms a {
    padding: 12px 0;
}

@media (max-width: 767px) {
    .order-pay-head a {
        padding: 13px 0;
        margin: -13px 0;
    }

    .guest-fields a,
    .order-terms a {
        padding: 14px 0;
    }

    .guest-fields a {
        padding: 14px 6px;
        margin: 0 -6px;
    }
}
