/* Modern reserve tracking popup */

#myPopup-check {
    z-index: 10000;
}

#myPopup-check .popup-content.tr-shell {
    width: min(560px, 94vw);
    max-height: 86vh;
    overflow-y: auto;
    text-align: right;
    padding: 1.35rem 1.35rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7faf8 0%, #ffffff 40%);
    border: 1px solid rgba(226, 226, 226, 0.95);
    box-shadow: 0 22px 50px rgba(20, 30, 40, 0.22);
}

#myPopup-check .tr-brand {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3E5060;
    text-align: center;
}

#myPopup-check .tr-title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #2F2F2F;
    text-align: center;
}

#myPopup-check .tr-lead {
    margin: 0 auto 1.1rem;
    max-width: 26rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #667078;
    text-align: center;
    font-weight: 600;
}

#myPopup-check .tr-input {
    width: 100%;
    border: 1.5px solid rgba(62, 80, 96, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #2F2F2F;
    background: #fff;
    text-align: center;
    direction: ltr;
}

#myPopup-check .tr-input:focus {
    outline: none;
    border-color: #04AA6D;
    box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.15);
}

#myPopup-check .tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 14px;
    background: #04AA6D;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(4, 170, 109, 0.25);
    transition: background 0.18s ease, transform 0.18s ease;
}

#myPopup-check .tr-btn:hover {
    background: #03945f;
    transform: translateY(-1px);
}

#myPopup-check .tr-btn-ghost {
    background: transparent;
    color: #3E5060;
    border: 1.5px solid rgba(62, 80, 96, 0.25);
    box-shadow: none;
    margin-top: 0.65rem;
}

#myPopup-check .tr-btn-ghost:hover {
    background: rgba(62, 80, 96, 0.06);
}

#myPopup-check .tr-code-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #3E5060 0%, #2f3f4c 100%);
    color: #fff;
}

#myPopup-check .tr-code-label {
    font-size: 0.8rem;
    opacity: 0.85;
}

#myPopup-check .tr-code-value {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    direction: ltr;
    unicode-bidi: isolate;
}

#myPopup-check .tr-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 800;
}

#myPopup-check .tr-badge-pending,
#myPopup-check .tr-badge-confirmed {
    color: #8a5a00;
    background: rgba(255, 193, 7, 0.18);
}

#myPopup-check .tr-badge-final {
    color: #047857;
    background: rgba(4, 170, 109, 0.14);
}

#myPopup-check .tr-badge-canceled {
    color: #9b1c1c;
    background: rgba(217, 83, 79, 0.14);
}

#myPopup-check .tr-badge-draft {
    color: #3E5060;
    background: rgba(62, 80, 96, 0.1);
}

#myPopup-check .tr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#myPopup-check .tr-field {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ebebeb;
}

#myPopup-check .tr-field span {
    display: block;
    font-size: 0.72rem;
    color: #7a8288;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

#myPopup-check .tr-field strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #2F2F2F;
    line-height: 1.45;
    word-break: break-word;
}

#myPopup-check .tr-passengers {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

#myPopup-check .tr-passenger {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(4, 170, 109, 0.06), rgba(62, 80, 96, 0.03));
    border: 1px solid rgba(4, 170, 109, 0.12);
}

#myPopup-check .tr-passenger-i {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3E5060;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

#myPopup-check .tr-passenger-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2F2F2F;
}

#myPopup-check .tr-passenger-meta {
    font-size: 0.78rem;
    color: #667078;
    font-weight: 600;
    margin-top: 0.15rem;
}

#myPopup-check .tr-note {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.75;
    font-weight: 600;
}

#myPopup-check .tr-note-pending {
    color: #3E5060;
    background: rgba(4, 170, 109, 0.08);
    border: 1px solid rgba(4, 170, 109, 0.16);
}

#myPopup-check .tr-note-cancel {
    color: #9b1c1c;
    background: rgba(217, 83, 79, 0.08);
    border: 1px solid rgba(217, 83, 79, 0.14);
}

#myPopup-check .tr-error {
    text-align: center;
    color: #9b1c1c;
    font-weight: 700;
    margin: 1rem 0;
}

#myPopup-check .tr-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #3E5060;
}

@media (max-width: 575.98px) {
    #myPopup-check .tr-grid {
        grid-template-columns: 1fr;
    }
}
