:root {
    --checkout-font-family: "Poppins", sans-serif;
    --wizard-primary: #014B44;
    --wizard-secondary: #00A650;
    --wizard-bg-light: #f8f9fa;
    --wizard-border: #e0e0e0;
}

body.checkout-page,
body.checkout-page .checkout-header-slim,
body.checkout-page .checkout-footer-slim,
body.checkout-page .progress-wizard-container,
body.checkout-page .wizard-progress,
body.checkout-page .wizard-step-item,
body.checkout-page .wizard-steps,
body.checkout-page .card,
body.checkout-page .summary-header-mobile,
body.checkout-page .sticky-summary,
body.checkout-page .modal-content,
body.checkout-page .modal-title,
body.checkout-page .modal-body,
body.checkout-page .form-label,
body.checkout-page .form-check-label,
body.checkout-page .form-control,
body.checkout-page .form-select,
body.checkout-page .form-check-input,
body.checkout-page .btn,
body.checkout-page .badge,
body.checkout-page .list-group-item,
body.checkout-page .input-group-text,
body.checkout-page .select2-container,
body.checkout-page .select2-dropdown,
body.checkout-page .select2-results__option,
body.checkout-page .select2-search__field {
    font-family: var(--checkout-font-family);
}

body.checkout-page :is(h1, h2, h3, h4, h5, h6, p, span, label, a, strong, small) {
    font-family: inherit;
}

.wizard-steps {
    display: none;
    animation: fadeIn 0.22s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-steps.active {
    display: block;
}

.summary-header-mobile {
    display: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

@media (max-width: 991px) {
    .summary-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .summary-content-collapse {
        display: none;
    }

    .summary-content-collapse.show {
        display: block;
        margin-bottom: 2rem;
    }

    .sticky-summary {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        height: auto;
        min-height: 0;
    }
}

.transition-icon {
    transition: transform 0.3s ease;
}

.summary-header-mobile:not(.collapsed) .transition-icon {
    transform: rotate(180deg);
}

.progress-wizard-container {
    padding: 1.5rem 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-progress::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f1f3f5;
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background-color: var(--wizard-secondary);
    z-index: 2;
    transition: width 0.3s ease;
}

.wizard-step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #adb5bd;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.wizard-step-item.active .step-icon {
    border-color: var(--wizard-secondary);
    color: var(--wizard-secondary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 166, 80, 0.1);
}

.wizard-step-item.completed .step-icon {
    background-color: var(--wizard-secondary);
    border-color: var(--wizard-secondary);
    color: #fff;
}

.step-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.wizard-step-item.active .step-text {
    color: var(--wizard-primary);
}

.payment-method-card {
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
}

.payment-method-card:hover {
    border-color: var(--wizard-secondary);
    background-color: #f8fffb;
}

.payment-method-card.selected {
    border-color: var(--wizard-secondary);
    background-color: #f8fffb;
    box-shadow: 0 8px 20px rgba(0, 166, 80, 0.1);
}

.payment-method-card .form-check-input {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    margin: 0;
}

.payment-method-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--wizard-primary);
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.btn-wizard {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-next {
    background-color: var(--wizard-secondary);
    border: none;
    color: #fff;
}

.btn-next:hover {
    background-color: #008f45;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 80, 0.3);
}

.btn-prev {
    background-color: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
}

.btn-prev:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.checkout-header-slim {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
}

.checkout-security-pill {
    background: linear-gradient(135deg, rgba(1, 75, 68, 0.06), rgba(0, 166, 80, 0.12));
    border: 1px solid rgba(0, 166, 80, 0.16);
    box-shadow: 0 8px 22px rgba(1, 75, 68, 0.08);
    min-height: 56px;
}

.checkout-security-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 166, 80, 0.18);
}

.checkout-security-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.checkout-security-eyebrow {
    color: #4f6b67;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-security-title {
    color: var(--wizard-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.checkout-footer-slim {
    background: #fff;
    margin-top: auto !important;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .sticky-summary {
        position: sticky;
        top: 2rem;
    }
}

@media (max-width: 768px) {
    .sticky-summary {
        padding: 1.5rem !important;
        margin-top: 1.5rem;
    }

    .step-text {
        display: none;
    }
}
