/* WooCommerce Product Customizer v3.2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Dancing+Script:wght@400;700&display=swap');

#wpc-wrap {
    margin: 22px 0 18px;
    border: 1.5px solid #e2ddd6;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0,0,0,.07);
}

/* ── Header ── */
.wpc-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    cursor: pointer;
    user-select: none;
}
.wpc-header.open .wpc-arrow { transform: rotate(180deg); }
.wpc-star  { color: #FFD700; font-size: 13px; }
.wpc-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
}
.wpc-badge {
    background: #FFD700;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}
.wpc-arrow {
    color: #aaa;
    font-size: 17px;
    transition: transform .3s;
}

/* ── Body ── */
.wpc-body {
    display: flex;
    flex-wrap: wrap;
}

/* ── Preview col ── */
.wpc-preview-col {
    flex: 0 0 210px;
    background: #f5f3f0;
    border-right: 1px solid #e2ddd6;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.wpc-preview-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}
.wpc-canvas-box {
    position: relative;
    width: 178px;
    height: 178px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 14px rgba(0,0,0,.13);
    background: #222;
}
#wpc-canvas {
    width: 178px;
    height: 178px;
    display: block;
    cursor: crosshair;
}
.wpc-drag-hint {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 9px;
    color: rgba(255,255,255,.75);
    background: rgba(0,0,0,.4);
    padding: 2px 7px;
    border-radius: 10px;
    pointer-events: none;
}

/* ── Form col ── */
.wpc-form-col {
    flex: 1;
    min-width: 240px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Field ── */
.wpc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wpc-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wpc-req {
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
.wpc-field input[type="text"] {
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #222;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    width: 100%;
}
.wpc-field input[type="text"]:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,.07);
    background: #fff;
}
.wpc-field small {
    font-size: 10px;
    color: #bbb;
    text-align: right;
    margin-top: -3px;
}

/* ── Font Options ── */
.wpc-font-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.wpc-font-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fafafa;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}
.wpc-font-opt input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: #1a1a1a;
    flex-shrink: 0;
    cursor: pointer;
}
.wpc-font-opt:hover {
    border-color: #aaa;
    background: #f0ece6;
}
.wpc-font-opt.active {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(26,26,26,.08);
}
.wpc-font-preview {
    font-size: 15px;
    color: #222;
    line-height: 1.3;
}

/* ── Position Grid ── */
.wpc-grid {
    display: grid;
    grid-template-columns: repeat(3, 30px);
    gap: 4px;
}
.wpc-pos {
    width: 30px;
    height: 30px;
    border: 1.5px solid #ddd;
    background: #fafafa;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    color: #666;
}
.wpc-pos:hover  { background: #ede9e3; border-color: #bbb; }
.wpc-pos.active { background: #1a1a1a; border-color: #1a1a1a; color: #FFD700; }

/* ── Fee box ── */
.wpc-fee-box {
    background: linear-gradient(135deg, #fffbe6, #fff8d4);
    border: 1px solid #FFD700;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 12px;
    color: #5a4a00;
    line-height: 1.5;
}
.wpc-fee-box strong { color: #111; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .wpc-body { flex-direction: column; }
    .wpc-preview-col {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #e2ddd6;
        align-items: flex-start;
    }
    .wpc-canvas-box, #wpc-canvas { width: 120px !important; height: 120px !important; }
}
