/* ACP Product Configurator Pro v2 — Frontend */
#acp-configurator { font-family: inherit; margin: 22px 0; }
form.cart.acp-has-configurator .quantity { display: none !important; }

/* Price Bar */
.acp-price-bar { display: flex; background: #1a2340; border-radius: 10px; padding: 16px 10px; margin-bottom: 20px; }
.acp-price-item { flex: 1; text-align: center; }
.acp-price-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.acp-price-lbl { display: block; font-size: 10px; color: #8892a4; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.acp-price-val { display: block; font-size: 20px; font-weight: 700; color: #f5c518; transition: color .2s; }
.acp-price-val.acp-white { color: #fff; }

/* Sections */
.acp-section { margin-bottom: 16px; }
.acp-section-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #666; margin-bottom: 9px; }
.acp-area-note { font-size: 11px; font-weight: 600; color: #1a2340; text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* Button groups */
.acp-btn-group { display: flex; flex-wrap: wrap; gap: 7px; }
.acp-opt-btn { padding: 8px 17px; border: 1.5px solid #d0d0d0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 500; color: #333; transition: all .18s; line-height: 1; }
.acp-opt-btn:hover { border-color: #1a2340; color: #1a2340; }
.acp-opt-btn.acp-active { background: #1a2340; color: #fff; border-color: #1a2340; }
.acp-opt-btn.acp-disabled,
.acp-opt-btn:disabled { opacity: .45; cursor: not-allowed; border-color: #d6d6d6; color: #888; background: #f5f5f5; }

/* Colour grid */
.acp-sel-name { font-size: 13px; font-weight: 600; color: #1a2340; min-height: 20px; margin-bottom: 8px; }
.acp-color-name-grid { display: flex; flex-wrap: wrap; gap: 7px; max-height: 170px; overflow-y: auto; padding: 10px; border: 1.5px solid #eee; border-radius: 8px; background: #f9f9f9; scrollbar-width: thin; scrollbar-color: #1a2340 #eee; }
.acp-color-name-grid::-webkit-scrollbar { width: 5px; }
.acp-color-name-grid::-webkit-scrollbar-thumb { background: #1a2340; border-radius: 3px; }
.acp-color-chip { padding: 6px 13px; border: 1.5px solid #ddd; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 500; color: #444; background: #fff; transition: all .18s; white-space: nowrap; user-select: none; }
.acp-color-chip:hover { border-color: #1a2340; color: #1a2340; background: #f0f4ff; }
.acp-color-chip.acp-active { background: #1a2340; color: #fff; border-color: #1a2340; }
.acp-color-chip.acp-disabled,
.acp-color-chip:disabled { opacity: .45; cursor: not-allowed; border-color: #d6d6d6; color: #888; background: #f5f5f5; }
.acp-no-colors { font-size: 12px; color: #999; padding: 4px; }

/* Custom size */
.acp-custom-row { display: none; align-items: center; gap: 9px; margin-top: 9px; flex-wrap: wrap; }
.acp-custom-row.acp-show { display: flex; }
.acp-custom-row input { width: 80px; padding: 8px; border: 1.5px solid #ccc; border-radius: 6px; font-size: 14px; text-align: center; }
.acp-custom-row span { font-size: 14px; color: #666; }
.acp-custom-input { width: 100%; max-width: 320px; padding: 10px 12px; border: 1.5px solid #ccc; border-radius: 6px; font-size: 14px; background: #fff; }
.acp-required { color: #c53030; }

/* Quantity */
.acp-qty-row { display: flex; align-items: center; gap: 11px; }
.acp-qty-row input { width: 80px; padding: 8px; border: 1.5px solid #ccc; border-radius: 6px; font-size: 15px; text-align: center; }
.acp-qty-lbl { font-size: 13px; color: #666; }

/* Total */
.acp-total-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; background: #f0f4ff; border: 1.5px solid #1a2340; border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.acp-total-label { font-size: 14px; font-weight: 600; color: #1a2340; }
.acp-total-amt { font-size: 22px; font-weight: 700; color: #1a2340; }
.acp-total-note { font-size: 13px; color: #666; font-weight: 400; }
.acp-notice { color: #c53030; font-size: 13px; font-weight: 600; margin: 10px 0 0; }
.acp-doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.acp-doc-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid #1a2340; border-radius: 8px; color: #1a2340; font-size: 13px; font-weight: 600; text-decoration: none; background: #fff; }
.acp-doc-link:hover { background: #1a2340; color: #fff; }

/* Flash animation */
@keyframes acpFlash { from { opacity:.35; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.acp-flash { animation: acpFlash .28s ease forwards; }

@media (max-width:600px) {
    .acp-price-bar { flex-direction: column; gap: 12px; }
    .acp-price-item:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 10px; }
    .acp-price-val { font-size: 18px; }
    .acp-total-box { flex-direction: column; gap: 4px; }
    .acp-color-name-grid { max-height: 130px; }
}
