/* Acrylic Print Configurator v2 */

.apc-wrap { margin: 24px 0; font-family: inherit; }

/* ── PREVIEW ── */
.apc-preview-section {
    background: #f0f0f0;
    border-radius: 14px;
    padding: 24px 16px 16px;
    text-align: center;
    margin-bottom: 28px;
}

.apc-frame-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    margin-bottom: 14px;
}

.apc-frame {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 3px 3px 0 #c0c0c0, 6px 6px 0 #b0b0b0;
    position: relative;
    overflow: hidden;
    transition: width 0.3s, height 0.3s;
    cursor: pointer;
}

.apc-frame-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.apc-frame canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: grab;
}
.apc-frame canvas:active { cursor: grabbing; }

.apc-select-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.04em;
    z-index: 2;
    position: relative;
}
.apc-select-btn:hover { background: #b71c1c; transform: scale(1.03); }
.apc-select-btn span { font-size: 11px; font-weight: 400; opacity: 0.85; }

.apc-zoom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 8px;
    max-width: 300px;
}
.apc-zoom-icon { font-size: 18px; font-weight: 700; color: #555; line-height:1; }
.apc-zoom-row input[type="range"] { flex: 1; accent-color: #1a1a1a; }
#apc-zoom-pct { font-size: 13px; color: #555; min-width: 40px; text-align: right; }

.apc-drag-hint { font-size: 12px; color: #999; margin: 4px 0 0; }
.apc-upload-status { font-size: 12px; color: #555; min-height: 18px; margin-top: 4px; }

/* ── SECTIONS ── */
.apc-section { margin-bottom: 26px; }

.apc-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apc-step {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── ORIENTATION ── */
.apc-orient-row { display: flex; gap: 8px; }
.apc-orient-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.15s;
}
.apc-orient-btn:hover { border-color: #1a1a1a; }
.apc-orient-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ── SIZE GRID ── */
.apc-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.apc-size-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    position: relative;
}
.apc-size-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.apc-size-opt:hover { border-color: #1a1a1a; }
.apc-size-opt.apc-selected { border-color: #1a1a1a; background: #f5f5f5; }
.apc-size-opt.apc-selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 700; }
.apc-size-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.apc-size-price { font-size: 12px; color: #777; }

/* ── OPTIONS (thickness / material) ── */
.apc-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.apc-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    position: relative;
}
.apc-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.apc-option:hover { border-color: #1a1a1a; }
.apc-option.apc-selected { border-color: #1a1a1a; background: #f5f5f5; }
.apc-option.apc-selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 700; }
.apc-option-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.apc-option-badge {
    font-size: 11px; font-weight: 600;
    background: #1a1a1a; color: #fff;
    padding: 2px 8px; border-radius: 20px;
    width: fit-content;
}
.apc-badge-free { background: #e8f5e9; color: #2e7d32; }

/* ── SUMMARY ── */
.apc-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.apc-summary-config {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}
.apc-summary-config span:last-child { font-weight: 600; color: #1a1a1a; text-align: right; }
.apc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}
.apc-total-price { font-size: 24px; color: #1a1a1a; }

/* ── WARNING ── */
.apc-warning {
    font-size: 12px;
    color: #e65100;
    background: #fff3e0;
    border-left: 3px solid #e65100;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
    .apc-size-grid { grid-template-columns: repeat(2, 1fr); }
    .apc-option-grid { grid-template-columns: repeat(2, 1fr); }
}
