.btn-primary,
.checkout-btn {
    width: 100% !important;
    background-color: #1062fe !important;
    border-color: #1062fe !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease;
    margin-top: 12px;
    font-family: Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif;
}

    .btn-primary:hover,
    .checkout-btn:hover {
        background-color: #0052e0 !important;
        border-color: #0052e0 !important;
    }

/* Subtle error border class applied dynamically on validation error */
.form-control.input-validation-error {
    border-color: #e57373 !important;
    box-shadow: none !important;
}


@media screen and (max-width: 767px) {
    .captcha {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important; /* Aligns it to the left edge of the form */
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
}

@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

@media (max-width: 767px) {
    .form-action-recaptcha {
        align-items: stretch !important;
    }
}

@media screen and (max-width: 767px) {
    .btn-lg {
        margin-bottom: 10px !important;
    }
}

@media (min-width: 768px) {
    .form-action-recaptcha {
        align-items: flex-end; /* Keeps everything aligned to the right */
    }
        /* Force the button container or button to match the 304px captcha width */
        .form-action-recaptcha #button,
        .form-action-recaptcha .btn {
            width: 304px;
            box-sizing: border-box;
        }
}

.page-breadcrumbs {
    margin-bottom: 16px;
}

.link-muted {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Adds clean spacing between the arrow and text */
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .link-muted:hover {
        color: #0066cc;
        text-decoration: underline;
    }

.submit-spinner.is-loading {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}

    .submit-spinner.is-loading::after {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 10px;
        vertical-align: middle;
        border: 2px solid #ffffff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.75s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}