/* ==========================================================================
   Custom Site Styles
   --------------------------------------------------------------------------
   Centralized CSS for bespoke components so that layout rules live in one file
   instead of being scattered across inline <style> blocks.
   ========================================================================== */

/* ----------------------------- Checkout Overlay -------------------------- */
.order-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1050;
    padding: 2rem;
}

.order-processing-overlay.is-visible {
    display: flex;
    animation: orderOverlayFade 0.2s ease-out forwards;
}

.order-processing-content {
    text-align: center;
    color: #fff;
    max-width: 320px;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.order-processing-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.order-processing-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

.order-processing-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #0069B0;
    margin: 0 auto 1.5rem;
    animation: orderSpinner 0.75s linear infinite;
}

body.order-submitting {
    overflow: hidden;
}

@keyframes orderSpinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orderOverlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ----------------------------- Checkout Form ----------------------------- */
.account-option-group {
    margin-top: 20px;
}

.account-option-heading {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.account-option-toggle {
    margin-bottom: 0.5rem;
}

.account-option-toggle:last-of-type {
    margin-bottom: 0;
}

.account-option-toggle label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

.account-password-fields {
    margin-top: 1rem;
}

.account-password-fields.is-hidden {
    display: none;
}

.form-hint,
.account-password-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

/* --------------------------- Checkout Options Page ----------------------- */
.checkout-choice-row {
    margin: 40px 0;
}

.checkout-choice-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 35px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.checkout-choice-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.checkout-choice-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    color: #555;
}

.checkout-choice-card .btn {
    align-self: center;
    min-width: 180px;
}

.checkout-choice-card .btn.btn-outline {
    background-color: #0069B0;
    border-color: #0069B0;
    color: #fff;
}

.checkout-choice-card .btn.btn-outline:hover,
.checkout-choice-card .btn.btn-outline:focus {
    background-color: #005892;
    border-color: #005892;
    color: #fff;
}

.checkout-choice-footer {
    text-align: center;
    margin-top: 25px;
}

/* --------------------------- Auth / Account Cards ------------------------ */
.form-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
    margin: 40px auto;
    max-width: 680px;
}

.form-card--wide {
    max-width: 960px;
}

.form-card h2 {
    margin-top: 0;
}

.form-card table th,
.form-card table td {
    vertical-align: middle;
}

.form-card label {
    margin-top: 18px;
    font-weight: 600;
}

.form-card label:first-of-type {
    margin-top: 0;
}

.form-card button[type="submit"] {
    margin-top: 25px;
}

.form-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.form-card__actions-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-card__actions button[type="submit"] {
    margin-top: 0;
}

.form-card__actions-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.form-card__actions .btn {
    margin: 0;
    background-color: #0069B0;
    border-color: #0069B0;
    color: #fff;
}

.form-card__actions .btn:hover,
.form-card__actions .btn:focus {
    background-color: #005892;
    border-color: #005892;
    color: #fff;
}

.form-card__actions .form-card__link {
    margin-left: auto;
    font-size: 0.9rem;
    color: #0069B0;
}

.form-card__actions .form-card__link:hover,
.form-card__actions .form-card__link:focus {
    text-decoration: underline;
}
