.catalogue-label {
    background-size: cover;
    vertical-align: top;
    padding: 1px 4px;
    background-repeat: no-repeat;
}

/* =========================================================
   Admin shared form theme (fx-*)
   Used by: ProductOptionsList, SelectionsModal,
   SelectionDetailModal, PricingModal, CharityForm
   ========================================================= */

/* ----- Modal shell ----- */
.fx-form-modal {
    height: auto !important;
    min-height: 0 !important;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(27, 57, 63, .22);
}

.fx-form-header {
    align-items: flex-start;
    padding: 16px 20px;
    background: linear-gradient(135deg, #36a5b5, #2e909f);
    color: #fff;
    border-bottom: 0;
}

    .fx-form-header .modal-title {
        font-size: 16px;
        font-weight: 700;
    }

.fx-form-subtitle {
    margin-top: 2px;
    font-size: 11px;
    opacity: .86;
}

.fx-form-body {
    flex: 0 0 auto;
    padding: 14px;
    background: #f8fbfc;
}

/* ----- Section cards ----- */
.fx-form-section {
    padding: 13px;
    border: 1px solid #deeaec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 59, 63, .035);
}

.fx-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8f0f1;
    color: #2f8794;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.fx-form-section-title-row {
    justify-content: space-between;
}

    .fx-form-section-title > i,
    .fx-form-section-title > div > i {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        border-radius: 8px;
        background: #e9f7f9;
    }

    .fx-form-section-title span,
    .fx-form-section-title small {
        display: block;
    }

    .fx-form-section-title small {
        margin-top: 1px;
        color: #839397;
        font-size: 10px;
        font-weight: 500;
    }

/* ----- Form controls inside sections ----- */
.fx-form-section .form-label {
    margin-bottom: 5px;
    color: #40575b;
    font-size: 11px;
    font-weight: 700;
}

.fx-form-section .form-control,
.fx-form-section .form-select,
.fx-form-section .input-group-text {
    min-height: 34px;
    border-color: #d7e3e5;
    font-size: 12px;
}

    .fx-form-section .form-control:focus,
    .fx-form-section .form-select:focus {
        border-color: #75bec8;
        box-shadow: 0 0 0 3px rgba(54, 165, 181, .11);
    }

.fx-form-section .input-group-text {
    background: #f4f8f9;
    color: #688084;
}

.fx-form-section .form-text {
    margin-top: 5px;
    color: #839397;
    font-size: 10px;
    line-height: 1.4;
}

.fx-check-label {
    color: #40575b;
    font-size: 11px;
    font-weight: 600;
}

/* ----- Inline notes ----- */
.fx-form-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f3f9fa;
    color: #708488;
    font-size: 10px;
    line-height: 1.4;
}

    .fx-form-note i {
        margin-top: 1px;
        color: #36a5b5;
    }

/* ----- Summary boxes (token balances, totals) ----- */
.fx-form-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.fx-form-summary-box {
    padding: 12px 10px;
    border: 1px solid #d2eef2;
    border-radius: 10px;
    background: #f3fbfc;
    text-align: center;
}

.fx-form-summary-box-available {
    border-color: #cde8dd;
    background: #f1faf6;
}

.fx-form-summary-label {
    margin-bottom: 4px;
    color: #718488;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fx-form-summary-value {
    color: #233b3f;
    font-size: 18px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.fx-form-summary-box-available .fx-form-summary-value {
    color: #308164;
}

/* ----- Inner panels (pricing logic, conditions) ----- */
.fx-form-panel {
    padding: 13px;
    border: 1px solid #e2ebed;
    border-radius: 10px;
    background: #fbfdfd;
}

.fx-form-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

/* ----- Tables ----- */
.fx-table-wrap {
    border: 1px solid #e5eef0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 59, 63, .035);
}

.fx-table {
    font-size: 12px;
}

    .fx-table thead th {
        padding-top: 8px;
        padding-bottom: 8px;
        background: #f4f8f9;
        color: #718488;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .fx-table tbody tr {
        border-color: #edf2f3;
    }

        .fx-table tbody tr:hover {
            background: rgba(54, 165, 181, 0.02);
        }

    .fx-table .btn {
        font-size: 11px;
    }

.fx-mini-table {
    font-size: 12px;
}

    .fx-mini-table thead th {
        color: #718488;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .fx-mini-table .form-control {
        min-height: 28px;
    }

/* ----- Badges & icons ----- */
.fx-badge {
    font-size: 9px;
    font-weight: 700;
}

.fx-badge-teal,
.fx-badge-muted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

.fx-badge-teal {
    border: 1px solid #d2eef2;
    background: #f3fbfc;
    color: #2f8794;
}

.fx-badge-muted {
    border: 1px solid #dfe8ea;
    background: #fbfdfd;
    color: #52686c;
}

.fx-icon-teal {
    color: #36a5b5;
}

.fx-cell-title {
    color: #40575b;
}

/* ----- Buttons ----- */
.fx-form-btn,
.fx-form-btn-primary {
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px 11px !important;
    border-radius: 6px;
    font-size: 11px !important;
    line-height: 1.2;
}

.fx-form-btn-primary {
    border-color: #36a5b5;
    background: #36a5b5;
    color: #fff;
    font-weight: 700;
}

    .fx-form-btn-primary:hover {
        border-color: #2f94a3;
        background: #2f94a3;
        color: #fff;
    }

.fx-row-btn {
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 6px;
    color: #2f6570;
    background: #fff;
    border-color: #d7e3e5 !important;
    font-size: 11px;
    line-height: 1.2;
}

    .fx-row-btn:hover,
    .fx-row-btn:focus {
        color: #24545d;
        background: #e8eff1;
        border-color: #c8d5d8 !important;
    }

.fx-row-btn-danger {
    color: #b0413e;
}

    .fx-row-btn-danger:hover,
    .fx-row-btn-danger:focus {
        color: #96322f;
        background: #f9eceb;
        border-color: #e8cfce !important;
    }

.fx-link-btn {
    color: #36a5b5;
    font-size: 11px;
    font-weight: 600;
}

    .fx-link-btn:hover {
        color: #2f8794;
    }

/* ----- Footer ----- */
.fx-form-footer {
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 9px 14px;
    border-top: 1px solid #deeaec;
    background: #fff;
}

    .fx-form-footer .btn {
        width: auto !important;
        min-width: 0 !important;
        min-height: 30px !important;
        padding: 4px 11px !important;
        border-radius: 6px;
        font-size: 11px !important;
        line-height: 1.2;
    }

.fx-form-footer-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7a8d91;
    font-size: 10px;
}

    .fx-form-footer-note i {
        color: #36a5b5;
    }

/* ----- Product options list header ----- */
.fx-options-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f8794;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

    .fx-options-title > i {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        border-radius: 8px;
        background: #e9f7f9;
    }

    .fx-options-title span,
    .fx-options-title small {
        display: block;
    }

    .fx-options-title small {
        margin-top: 1px;
        color: #839397;
        font-size: 10px;
        font-weight: 500;
    }

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 767.98px) {
    .fx-form-body {
        padding: 12px;
    }

    .fx-form-footer-note {
        display: none;
    }

    .fx-form-summary {
        gap: 6px;
    }

    .fx-form-summary-box {
        padding: 9px 5px;
    }

    .fx-form-summary-value {
        font-size: 15px;
    }
}
