/* TRM Phone Input */
.trm-phone-wrap {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: visible;
    background: #fff;
}
.trm-phone-wrap:focus-within {
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.trm-phone-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px 8px 12px;
    cursor: pointer;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    user-select: none;
}
.trm-phone-btn:hover {
    background: #f9fafb;
}
.trm-phone-flag {
    font-size: 18px;
    line-height: 1;
}
.trm-phone-code {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.trm-phone-arrow {
    font-size: 10px;
    color: #9ca3af;
}
.trm-phone-number {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    font-size: 14px;
    min-width: 0;
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
}
.trm-phone-wrap .trm-phone-number,
#trm-reservation-form .trm-phone-wrap input[type="tel"] {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
}
.trm-phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    margin-top: 4px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
}
.trm-phone-search {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    outline: none;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
}
.trm-phone-list {
    overflow-y: auto;
    max-height: 230px;
}
.trm-phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.trm-phone-item:hover {
    background: #f0f9ff;
}
.trm-phone-item-active {
    background: #eff6ff;
}
.trm-phone-item-flag {
    font-size: 18px;
    line-height: 1;
}
.trm-phone-item-name {
    flex: 1;
    font-size: 13px;
    color: #374151;
}
.trm-phone-item-dial {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.trm-phone-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Modal override */
.trm-modal .trm-phone-wrap .trm-phone-number,
.trm-modal-field .trm-phone-wrap input[type="tel"] {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
}
.trm-modal-field .trm-phone-wrap,
.trm-modal-field #trm-phone-container {
    flex: 1;
}
.trm-modal-field #trm-phone-container .trm-phone-wrap {
    width: 100%;
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Mobile full width */
@media (max-width: 768px) {
    .trm-phone-wrap {
        width: 100% !important;
    }
    .trm-customer-search-wrap #trm-phone-container {
        width: 100%;
    }
}
