/* =========================================================
   KIỂM TRA ĐƠN HÀNG
========================================================= */

.inh-ol {
    width: 100%;
    padding: 56px 0 72px;
    background: #ffffff;
    box-sizing: border-box;
}

.inh-ol-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
    box-sizing: border-box;
}

.inh-ol-container--single {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.inh-ol-title {
    margin: 0 0 20px;
    color: var(--primary, #08265B);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.inh-ol-desc {
    margin: 0 0 12px;
    color: #333333;
    font-size: 17px;
    line-height: 1.7;
}

/* Form */
.inh-ol-form {
    margin-top: 26px;
}

.inh-ol-form label {
    display: block;
    margin: 20px 0 10px;
    color: #222222;
    font-size: 17px;
    font-weight: 700;
}

.inh-ol-form input[type="text"] {
    width: 100%;
    height: 56px;
    padding: 0 22px;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    background: #ffffff;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inh-ol-form input[type="text"]:focus {
    border-color: var(--primary, #08265B);
    box-shadow: 0 0 0 3px rgba(8, 38, 91, 0.15);
}

.inh-ol-code {
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inh-ol-code:focus-within {
    border-color: var(--primary, #08265B);
    box-shadow: 0 0 0 3px rgba(8, 38, 91, 0.15);
}

.inh-ol-prefix {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-right: 1px solid #dcdcdc;
    background: #f3f4f4;
    color: var(--primary, #08265B);
    font-size: 18px;
    font-weight: 700;
}

.inh-ol-code input[type="text"] {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.inh-ol-btn {
    width: 100%;
    height: 56px;
    margin-top: 28px;
    border: 0;
    border-radius: 999px;
    background: var(--primary, #08265B);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.inh-ol-btn:hover {
    background: #061A42;
}

/* Thông báo lỗi */
.inh-ol-alert {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecea;
    color: #b3261e;
    font-size: 15px;
}

/* Kết quả */
.inh-ol-result {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid #D7E4F4;
    border-radius: 14px;
    background: #F4F7FB;
}

.inh-ol-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.inh-ol-result h2 {
    margin: 0;
    color: var(--primary, #08265B);
    font-size: 21px;
}

.inh-ol-result h3 {
    margin: 20px 0 8px;
    color: #222222;
    font-size: 16px;
}

.inh-ol-status {
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff4e5;
    color: #A87920;
    font-size: 13px;
    font-weight: 600;
}

.inh-ol-status--completed {
    background: #e3f5ec;
    color: #061C48;
}

.inh-ol-status--cancelled,
.inh-ol-status--failed,
.inh-ol-status--refunded {
    background: #fdecea;
    color: #b3261e;
}

.inh-ol-status--pending {
    background: #e8f1fd;
    color: #1d5fb4;
}

.inh-ol-info,
.inh-ol-items {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.inh-ol-info li,
.inh-ol-items li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed #D7E4F4;
    font-size: 15px;
}

.inh-ol-info li:last-child,
.inh-ol-items li:last-child {
    border-bottom: 0;
}

.inh-ol-info span {
    color: #666666;
}

.inh-ol-info strong {
    text-align: right;
}

.inh-ol-items {
    margin-top: 0;
}

/* Đã đăng nhập */
.inh-ol-login {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 16px;
}

.inh-ol-login a {
    color: var(--primary, #08265B);
    font-weight: 500;
}

/* Ảnh bên phải */
.inh-ol-right img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

@media (max-width: 900px) {
    .inh-ol {
        padding: 32px 0 48px;
    }

    .inh-ol-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .inh-ol-right {
        order: -1;
    }

    .inh-ol-title {
        font-size: 30px;
    }
}

/* Nhắc đăng nhập (khách chưa đăng nhập) */
.inh-ol-login-trigger {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #EDF3FA;
    color: var(--primary, #08265B);
    font-weight: 600;
    text-decoration: none;
    animation: inh-ol-pulse 1.8s ease-in-out infinite;
}

.inh-ol-login-trigger:hover {
    background: var(--primary, #08265B);
    color: #ffffff;
    animation: none;
}

@keyframes inh-ol-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(8, 38, 91, 0.45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(8, 38, 91, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .inh-ol-login-trigger {
        animation: none;
    }
}