/* css/checkout.css */

body {
    background-color: #F5F0E8;
    color: #1C1C1C;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #1C1C1C;
    color: #F5F0E8;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Two Column Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Order Summary Column */
.order-summary {
    padding-right: 24px;
}

.label-small-caps {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.h1-serif {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 500;
}

.description-body {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 32px;
}

/* Order Totals */
.order-totals {
    margin-top: 24px;
    margin-bottom: 24px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #4B5563;
}

.totals-discount {
    color: #059669;
}

.totals-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 16px 0;
}

.totals-final {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 20px;
    color: #1C1C1C;
}

.totals-microcopy {
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
}

/* Trust Icons */
.trust-icons {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 13px;
    color: #4B5563;
    margin-top: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Checkout Form Column */
.checkout-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9CA3AF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.divider:not(:empty)::before {
    margin-right: .25em;
}

.divider:not(:empty)::after {
    margin-left: .25em;
}

/* Progress Bar */
.progress-bar-container {
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #1C1C1C;
    transition: width 0.3s ease-out;
}

/* Buttons */
.cta-button {
    background: #1C1C1C;
    color: #F5F0E8;
    border-radius: 24px;
    min-height: 60px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.1s ease;
    touch-action: manipulation;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

.microcopy-footer {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 16px;
    line-height: 1.5;
}

/* Trust Footer */
.trust-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.trust-footer-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    color: #4B5563;
    font-size: 14px;
}

.fda-disclaimer {
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}