/* Checkout Widget */
.checkout-widget {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 860px;
    width: 100%;
    justify-self: center;
}

.checkout-widget h1 {
    font-size: 28px !important;
    margin: 0;
    color: #222;
}

.checkout-widget .checkout-progress {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-widget .checkout-progress-step {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 92px;
    color: #b8b8b8;
    text-align: center;
    transition: color 0.3s ease;
}

.checkout-widget .checkout-progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.checkout-widget .checkout-progress-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.checkout-widget .checkout-option-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.checkout-widget .checkout-option-icon--address img {
    filter: brightness(0) invert(1);
}

.checkout-widget .checkout-progress-title {
    max-width: 92px;
    font-size: 12px;
    line-height: 1.25;
}

.checkout-widget .checkout-progress-step.is-complete {
    color: #555;
}

.checkout-widget .checkout-progress-step.is-current {
    color: #EFA71B;
    font-weight: 600;
}

.checkout-widget .checkout-progress-step.is-current .checkout-progress-icon {
    background: #EFA71B;
    color: #fff;
    border-color: #EFA71B;
}

.checkout-widget .checkout-progress-step.is-complete .checkout-progress-icon {
    background: #555;
    color: #fff;
    border-color: #555;
}

.checkout-widget .checkout-progress-step.is-upcoming .checkout-progress-icon {
    background: #b8b8b8;
    color: #fff;
    border-color: #b8b8b8;
}

.checkout-widget .checkout-progress-connector {
    flex: 1;
    height: 2px;
    min-width: 20px;
    margin: 21px 8px 0;
    background: #d6d6d6;
    transition: background-color 0.3s ease;
}

.checkout-widget .checkout-progress-connector.is-complete {
    background: #555;
}

.checkout-widget .checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-widget .checkout-step {
    display: none;
}

.checkout-widget .checkout-step.is-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: nm-checkout-step-in 0.3s ease both;
}

.checkout-widget .section-title {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 0 4px;
}

.checkout-widget .checkout-options,
.checkout-widget .profile-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-widget .checkout-payment-rate-group {
    display: none;
}

.checkout-widget .checkout-payment-rate-group.is-active {
    display: block;
}

.checkout-widget .checkout-option,
.checkout-widget .profile-fields {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.checkout-widget .checkout-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.checkout-widget .checkout-option:has(input:checked) {
    border-color: #EFA71B;
    box-shadow: 0 5px 22px rgba(239, 167, 27, 0.20);
}

.checkout-widget .checkout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-widget .checkout-option-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFA71B;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.checkout-widget .checkout-option-icon--number {
    background: #EFA71B;
    color: #fff;
}

.checkout-widget .checkout-option-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-widget .checkout-option-copy strong {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.checkout-widget .checkout-option-copy small {
    color: #888;
    font-size: 13px;
}

.checkout-widget .profile-fields {
    overflow: hidden;
    gap: 0;
}

.checkout-widget .profile-field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-widget .profile-field:last-child {
    border-bottom: none;
}

.checkout-widget .field-label {
    min-width: 180px;
    flex-shrink: 0;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout-widget .field-input {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    border: none;
    border-bottom: 1px solid #bbb;
    outline: none;
    color: #222;
    background: transparent;
    font: inherit;
}

.checkout-widget .field-input:focus {
    border-bottom-color: #333;
}

.checkout-widget .checkout-empty,
.checkout-widget .checkout-payment-notice,
.checkout-widget .checkout-error {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.checkout-widget .checkout-error {
    color: #dc3545;
    min-height: 0;
}

.checkout-widget .checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.checkout-widget .checkout-actions button {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkout-widget .checkout-next {
    color: #fff;
    background: #EFA71B;
}

.checkout-widget .checkout-next:hover {
    background: #E96928;
}

.checkout-widget .checkout-prev {
    color: #555;
    background: transparent;
    border: 1px solid #555 !important;
}

.checkout-widget .checkout-prev:hover:not(:disabled) {
    background: #E5E5E5;
    color: #555;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.checkout-widget .checkout-actions button:disabled {
    color: #999;
    background: #eee;
    border-color: #ddd !important;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes nm-checkout-step-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 600px) {
    .checkout-widget .checkout-progress-step {
        width: 68px;
    }

    .checkout-widget .checkout-progress-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .checkout-widget .checkout-progress-title {
        max-width: 68px;
        font-size: 11px;
    }

    .checkout-widget .checkout-progress-connector {
        min-width: 8px;
        margin-right: 4px;
        margin-left: 4px;
    }

    .checkout-widget .profile-field {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px 20px;
    }

    .checkout-widget .field-label {
        min-width: 0;
    }

    .checkout-widget .field-input {
        width: 100%;
    }

    .checkout-widget .checkout-option {
        padding: 16px;
    }
}
