/* =========================
   CHECKOUT LAYOUT
========================= */

.checkout-form {
    max-width: 820px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.checkout-title {
    font-size: 26px;
    margin-bottom: 25px;
}

.checkout-section {
    margin-bottom: 32px;
}

.checkout-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.checkout-form .form-group {
    position: relative;
}

.checkout-help {
    color: #6b7280;
    line-height: 1.45;
}

/* =========================
   RADIO
========================= */

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* =========================
   BUTTON
========================= */

.checkout-submit {
    text-align: right;
}

.checkout-payment {
    text-align: right;
    margin-top: 16px;
}

.wayforpay-btn {
    min-width: 220px;
}

.checkout-btn {
    background: #000000;
    color: #fff;
    border: none;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.checkout-btn:hover {
    background: #1f1f1f;
    transform: translateY(-1px);
}

/* =========================
   AUTOCOMPLETE
========================= */

.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 9999;

    padding: 6px 0;
    list-style: none;
    display: none;
}

/* items */

.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
}

.autocomplete-list li:hover {
    background: #f3f4f6;
}

.autocomplete-list li.is-empty {
    color: #6b7280;
    cursor: default;
}

.autocomplete-list li.is-empty:hover {
    background: transparent;
}

/* highlight */

.autocomplete-list b {
    background: #fde68a;
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: 600;
}

.checkout-form #warehouse-search {
    background: #f9fafb;
}

.checkout-form input:disabled {
    color: #6b7280;
    cursor: not-allowed;
}

.checkout-form input.is-ready {
    background: #fff;
}

.checkout-help.is-error {
    color: #c62828;
}

.input-error {
    border: 2px solid #e53935 !important;
    background: #fff6f6;
}

@media (max-width: 768px) {
    .checkout-form {
        margin: 24px auto;
        padding: 22px;
    }

    .checkout-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .checkout-section {
        margin-bottom: 24px;
    }

    .checkout-submit,
    .checkout-payment {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .checkout-form {
        padding: 16px;
        border-radius: 10px;
    }

    .checkout-title {
        font-size: 20px;
    }

    .checkout-section h3 {
        font-size: 16px;
    }

    .radio-option {
        align-items: flex-start;
    }

    .checkout-btn,
    .wayforpay-btn {
        width: 100%;
        min-width: 0;
    }

    .autocomplete-list li {
        font-size: 13px;
        padding: 9px 12px;
    }
}
