/* ==========================================================================
   FluentCart Purchase Limit – Admin styles
   ========================================================================== */

/* Paneel staat na #fluent_cart_plugin_app binnen #fct_admin_app_wrapper */
#fcp-limit-panel .el-switch {
    margin-bottom: 0;
}

.fcp-limit-panel-inner {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Header */
.fcp-limit-panel-header {
    padding: 14px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e4e7;
}

.fcp-limit-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcp-limit-icon-header {
    font-size: 16px;
}

/* Body */
.fcp-limit-panel-body {
    padding: 20px;
}

/* Rijen */
.fcp-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fcp-limit-count-row {
    transition: opacity 0.2s ease;
}

/* Labels */
.fcp-limit-toggle-label,
.fcp-limit-count-label {
    font-size: 13px;
    color: #3c434a;
    font-weight: 500;
}

/* Toggle switch */
.fcp-limit-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.fcp-limit-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fcp-limit-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #c2c9d1;
    transition: 0.25s;
    border-radius: 24px;
}

.fcp-limit-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fcp-limit-switch input:checked + .fcp-limit-slider {
    background-color: #2271b1;
}

.fcp-limit-switch input:checked + .fcp-limit-slider::before {
    transform: translateX(20px);
}

/* Getal-invoer */
.fcp-limit-input {
    width: 120px;
    padding: 7px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
    color: #2c3338;
    text-align: right;
    transition: border-color 0.15s;
}

.fcp-limit-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Statistieken */
.fcp-limit-stats {
    display: flex;
    gap: 0;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.fcp-limit-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border-right: 1px solid #e2e4e7;
}

.fcp-limit-stat-item:last-child {
    border-right: none;
}

.fcp-limit-stat-label {
    font-size: 11px;
    color: #787c82;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    white-space: nowrap;
}

.fcp-limit-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1;
}

.fcp-limit-stat-remaining {
    color: #00a32a;
}

/* Reset-datum info */
.fcp-limit-reset-info {
    font-size: 12px;
    color: #787c82;
    margin: 0 0 12px;
}

.fcp-limit-clear-reset {
    background: none;
    border: none;
    color: #d63638;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    text-decoration: underline;
}

.fcp-limit-clear-reset:hover {
    color: #a02729;
}

/* Acties */
.fcp-limit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcp-limit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, box-shadow 0.15s;
}

.fcp-limit-btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #135e96;
}

.fcp-limit-btn-primary:hover:not(:disabled) {
    background: #135e96;
}

.fcp-limit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Opslaan status */
.fcp-limit-save-status {
    font-size: 13px;
    transition: color 0.2s;
}

.fcp-limit-saving  { color: #787c82; }
.fcp-limit-saved   { color: #00a32a; font-weight: 600; }
.fcp-limit-error   { color: #d63638; font-weight: 600; }

/* ==========================================================================
   Frontend / checkout meldingen
   ========================================================================== */

.fcp-limit-spots-wrapper {
    margin-bottom: 16px;
}

/* In de bestellingsamenvatting */
li.fcp-limit-summary-item {
    list-style: none;
    padding: 0;
    margin-bottom: 4px;
}

li.fcp-limit-summary-item .fcp-limit-notice {
    margin-bottom: 0;
    font-size: 13px;
    padding: 8px 12px;
}

.fcp-limit-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.fcp-limit-notice .fcp-limit-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.fcp-limit-available {
    background: #edfaef;
    border: 1px solid #b3dfbb;
    color: #145a20;
}

.fcp-limit-urgent {
    background: #fff8e5;
    border: 1px solid #f5c518;
    color: #7a4e00;
}

.fcp-limit-sold-out {
    background: #fce8e8;
    border: 1px solid #f0b4b4;
    color: #7a0000;
}

/* Product pagina meldingen */
.fcp-limit-product-notice {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.fcp-limit-product-notice.fcp-limit-available {
    background: #edfaef;
    border: 1px solid #b3dfbb;
    color: #145a20;
}

.fcp-limit-product-notice.fcp-limit-urgent {
    background: #fff8e5;
    border: 1px solid #f5c518;
    color: #7a4e00;
}

.fcp-limit-product-notice.fcp-limit-sold-out {
    background: #fce8e8;
    border: 1px solid #f0b4b4;
    color: #7a0000;
}
