/* FluentCart Regional Pricing Styles */

/* Trigger Pill Badge */
.fc-location-pill-wrap {
    display: inline-flex;
    align-items: center;
    margin: 6px 0;
}

.fc-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
    font-family: inherit;
}

.fc-location-pill:hover {
    background: #fafafa;
    border-color: #cbd5e1;
}

/* BSEC Buy Section Regional Badge */
.bsec-regional-badge {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    padding: 4px 8px !important;
}

.bsec-regional-badge:hover {
    background: #fafafa !important;
    border-color: #d4d4d8 !important;
}

.fc-pin-icon {
    color: #EB9649;
    flex-shrink: 0;
}

.fc-change-link {
    color: #EB9649;
    font-size: 12px;
    text-decoration: underline;
    margin-left: 2px;
}

/* ====================================================
 * FAST LOCATION FILTER POPUP MODAL
 * ==================================================== */

.fc-location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.fc-location-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Dialog Container - Form Background #EDF0E6, reduced radius */
.fc-location-modal-dialog {
    position: relative;
    background: #EDF0E6;
    border-radius: 6px;
    max-width: 440px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 2;
    overflow: hidden;
    font-family: inherit;
    animation: fcModalZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fcModalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.fc-location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #EDF0E6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fc-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-modal-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(235, 150, 73, 0.15);
    color: #EB9649;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.25;
}

.fc-modal-subtitle {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #78716c;
    line-height: 1.35;
}

.fc-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    font-size: 18px;
    color: #57534e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    margin-top: -2px;
    margin-right: -2px;
}

.fc-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1c1917;
}

/* Compact Search Bar */
.fc-search-container {
    padding: 10px 20px 6px 20px;
    background: #EDF0E6;
}

.fc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fc-search-icon {
    position: absolute;
    left: 10px;
    color: #a8a29e;
    pointer-events: none;
}

.fc-state-search-input {
    width: 100%;
    height: 34px;
    padding: 5px 28px 5px 32px;
    border: 1px solid #d4d7cd;
    border-radius: 4px;
    font-size: 13px;
    color: #1c1917;
    background: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.fc-state-search-input:focus {
    background: #ffffff;
    border-color: #EB9649;
    box-shadow: 0 0 0 2px rgba(235, 150, 73, 0.2);
}

.fc-state-search-input::placeholder {
    color: #a8a29e;
    font-size: 12.5px;
}

.fc-clear-search {
    position: absolute;
    right: 7px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #78716c;
    font-size: 14px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.fc-clear-search:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #1c1917;
}

/* Modal Body */
.fc-location-modal-body {
    padding: 4px 20px 12px 20px;
    overflow-y: auto;
    flex: 1;
    background: #EDF0E6;
}

.fc-section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #78716c;
    margin: 8px 0 6px 0;
}

/* Scrollable States List */
.fc-states-list-section {
    margin-top: 2px;
}

.fc-states-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Custom Scrollbar */
.fc-states-list::-webkit-scrollbar {
    width: 5px;
}
.fc-states-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}
.fc-states-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

/* State Item Card - Border radius 4px */
.fc-state-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 11px;
    border-radius: 4px;
    border: 1px solid #dcdfd5;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.fc-state-item:hover {
    background: #fbfbf9;
    border-color: #c4c8bc;
}

.fc-state-item.is-selected {
    background: #ffffff;
    border-color: #EB9649;
    box-shadow: 0 0 0 1px #EB9649;
}

.fc-state-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-state-name {
    font-size: 13px;
    font-weight: 500;
    color: #1c1917;
}

.fc-state-item.is-selected .fc-state-name {
    color: #d88133;
    font-weight: 600;
}

.fc-state-code {
    font-size: 10.5px;
    font-weight: 600;
    color: #78716c;
    background: #f5f5f4;
    padding: 1px 5px;
    border-radius: 3px;
}

.fc-state-item.is-selected .fc-state-code {
    background: #fff7ed;
    color: #c26e22;
}

.fc-state-check {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.12s ease;
}

.fc-state-item.is-selected .fc-state-check {
    background: #EB9649;
    border-color: #EB9649;
    color: #ffffff;
}

.fc-no-states-msg {
    padding: 24px 12px;
    text-align: center;
    color: #78716c;
    font-size: 13px;
}

/* Modal Footer */
.fc-location-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: #EDF0E6;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fc-selected-state-indicator {
    font-size: 12.5px;
    color: #57534e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-indicator-label {
    color: #78716c;
}

.fc-selected-state-indicator strong {
    color: #1c1917;
    font-weight: 600;
    margin-left: 2px;
}

/* Confirm Button - Color #EB9649, 4px radius */
.fc-btn-update-location {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: #EB9649;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(235, 150, 73, 0.25);
}

.fc-btn-update-location:hover {
    background: #d88133;
    box-shadow: 0 3px 8px rgba(235, 150, 73, 0.35);
}

.fc-btn-update-location:active {
    transform: translateY(1px);
}

.fc-btn-update-location:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner */
.fc-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fcSpin 0.6s linear infinite;
    display: inline-block;
}

@keyframes fcSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .fc-location-modal-dialog {
        max-height: 94vh;
        border-radius: 4px;
    }
    .fc-location-modal-header,
    .fc-search-container,
    .fc-location-modal-body,
    .fc-location-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
    .fc-location-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .fc-btn-update-location {
        width: 100%;
        padding: 10px;
    }
}
