/**
 * Preview Calculator for WooCommerce - Admin Styles
 * @version 2.0.0
 */

/* ── Wrap ─────────────────────────────────────────────────────────────────── */
.pcfwc-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcfwc-version {
    font-size: 0.55em;
    color: #999;
    font-weight: 400;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.pcfwc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.55em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.pcfwc-badge-pro {
    background: #2271b1;
    color: #fff;
}

.pcfwc-badge-free {
    background: #ddd;
    color: #666;
}

/* ── Upgrade Banner ───────────────────────────────────────────────────────── */
.pcfwc-upgrade-banner {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pcfwc-upgrade-banner .button-primary {
    background: #fff !important;
    color: #2271b1 !important;
    border-color: #fff !important;
    font-weight: 600;
}

.pcfwc-upgrade-banner .button-primary:hover {
    background: #f0f0f0 !important;
}

/* ── Calculator Block ─────────────────────────────────────────────────────── */
.pcfwc-calc-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pcfwc-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.pcfwc-calc-header h3 {
    margin: 0;
    font-size: 14px;
    font-family: Consolas, Monaco, monospace;
    color: #333;
}

.pcfwc-calc-fields {
    padding: 20px;
}

/* ── Field Groups ─────────────────────────────────────────────────────────── */
.pcfwc-field-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.pcfwc-field-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pcfwc-field-group h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Field Rows ───────────────────────────────────────────────────────────── */
.pcfwc-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pcfwc-field-row label {
    flex: 1;
    min-width: 150px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.pcfwc-field-row input[type="text"],
.pcfwc-field-row input[type="number"],
.pcfwc-field-row select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.pcfwc-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.pcfwc-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

/* ── Calculation Field Pairs ──────────────────────────────────────────────── */
.pcfwc-field-pair {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.pcfwc-field-pair input[type="text"] {
    flex: 2;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.pcfwc-field-pair input[type="number"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.pcfwc-remove-field {
    color: #d63638 !important;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    line-height: 1;
}

.pcfwc-remove-field:hover {
    color: #a00 !important;
}

/* ── Pro Section ──────────────────────────────────────────────────────────── */
.pcfwc-pro-section {
    position: relative;
}

.pcfwc-pro-section.pcfwc-locked {
    opacity: 0.6;
}

.pcfwc-lock-overlay {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 4px;
}

.pcfwc-lock-overlay p {
    background: #2271b1;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

/* ── Actions ──────────────────────────────────────────────────────────────── */
.pcfwc-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pcfwc-limit-notice {
    color: #996800;
    background: #fcf9e8;
    border: 1px solid #dba617;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    flex: 1;
}

.pcfwc-limit-notice a {
    color: #2271b1;
    font-weight: 600;
}

#pcfwc-add-calculator:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
