/* GenericTablet Bulk Medicine Inquiry Modal Styling */

.gt-bulk-modal-box {
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #1E293B;
}

.gt-title {
    font-size: 19px;
    font-weight: 700;
    color: #0F172A;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 12px;
}

.gt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.gt-field-wrap {
    margin-bottom: 10px;
}

.gt-lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
}

.gt-ctrl {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
}

.gt-ctrl:focus {
    outline: none;
    border-color: #0284C7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.gt-dropdown-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999999;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.gt-search-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease;
}

.gt-search-item-row:hover {
    background: #F8FAFC;
}

.gt-search-item-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.gt-search-item-info {
    flex: 1;
}

.gt-search-item-title {
    font-weight: 600;
    font-size: 12px;
    color: #0F172A;
}

.gt-search-item-sku {
    font-size: 11px;
    color: #64748B;
}

.gt-search-item-add-btn {
    background: #E0F2FE;
    color: #0369A1;
    border: none;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.gt-bucket-box {
    min-height: 48px;
    border: 1px dashed #CBD5E1;
    border-radius: 6px;
    padding: 6px;
    background: #F8FAFC;
}

#gt-empty-hint {
    color: #94A3B8;
    font-size: 12px;
}

.gt-selected-product-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    padding: 5px 8px;
    margin-bottom: 5px;
}

.gt-item-qty-input {
    width: 60px;
    padding: 3px 5px;
    font-size: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    text-align: center;
}

.gt-item-del-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
}

.gt-submit-btn {
    width: 100%;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 11px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.gt-submit-btn:hover {
    background: #0369A1;
}

.gt-submit-btn:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

.gt-success-toast {
    display: none;
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.gt-form-error {
    display: none;
    color: #DC2626;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

/* Intl-Tel-Input Integration & Overlap Fixes */
.iti {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

.iti__country-list {
    z-index: 999999999 !important;
    font-family: inherit !important;
    font-size: 13px !important;
}

/* Force sufficient left clearance so typing/placeholder never collides with +91 */
.iti--separate-dial-code input#gt-phone-input,
input#gt-phone-input.gt-ctrl {
    width: 100% !important;
    padding-left: 92px !important; /* Clears flag + dropdown arrow + dial code */
    box-sizing: border-box !important;
    height: 40px !important;
    font-size: 13px !important;
}

/* Vertically center the flag and dial code */
.iti__flag-container {
    display: flex !important;
    align-items: center !important;
}

.iti__selected-flag {
    padding: 0 8px 0 10px !important;
    background: transparent !important;
    height: 100% !important;
}

.iti__selected-dial-code {
    font-size: 13px !important;
    color: #1E293B !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
}

@media (max-width: 600px) {
    .gt-form-grid {
        grid-template-columns: 1fr;
    }
}