/* ===== Pulsante Tabella Taglie ===== */
.svx-size-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.svx-size-chart-btn:hover {
    border-color: #999;
    color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}
.svx-size-chart-btn svg {
    flex-shrink: 0;
    color: #666;
}

/* Flatsome-inspired Product Personalization UI */
.svx-personalization-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.svx-title {
    color: #444;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
}

.svx-step {
    padding: 10px 0;
    margin-bottom: 10px;
}

.svx-step label {
    display: block;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 8px;
    color: #666;
}

.svx-dropdown {
    width: 100% !important;
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    padding: 10px !important;
    height: auto !important;
    font-size: 14px !important;
    background-color: #fff !important;
}

.svx-upload-box {
    border: 2px dashed #ccc;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    background: #fff;
    transition: border-color 0.3s ease;
}

.svx-upload-box:hover {
    border-color: #446084;
    /* Flatsome primary color */
}

#svx-logo-upload {
    font-size: 0.8em;
}

.svx-preview-frame {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.svx-alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.9em;
    animation: fadeIn 0.4s ease;
}

.svx-alert.error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icons support (if Flatsome icons are available or fallback) */
.svx-title i {
    margin-right: 8px;
    color: #ce171f;
}
/* ===== La tua grafica — card espandibili ===== */
#svx-grafica-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
#svx-grafica-options.svx-gc-locked .svx-gc {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
#svx-grafica-options.svx-gc-locked::after {
  content: '';
  display: block;
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 4px;
}
.svx-gc {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.svx-gc:hover { border-color: #bdbdbd; }
.svx-gc.svx-gc-active {
  border-color: #1d9ee8;
  box-shadow: 0 0 0 3px rgba(29,158,232,.1);
}
.svx-gc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.svx-grafica-radio-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}
.svx-gc.svx-gc-active .svx-grafica-radio-dot {
  border-color: #1d9ee8;
  background: #1d9ee8;
  box-shadow: inset 0 0 0 3px #fff;
}
.svx-gc-icon-wrap {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svx-gc-icon { color: #1d9ee8; }
.svx-gc-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.svx-gc-chevron {
  color: #1d9ee8;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.svx-gc.svx-gc-active .svx-gc-chevron { transform: rotate(180deg); }
.svx-gc-body {
  display: none;
  padding: 4px 14px 12px;
  border-top: 1px solid #e8e8e8;
  cursor: default;
}

/* ===== Upload box premium ===== */
.svx-gc-body .upload-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #0f1f3d;
  margin-bottom: 6px;
}
.svx-gc-body .upload-dropzone {
  height: 64px;
  border: 1.5px dashed #9ecbff;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2a44;
  cursor: pointer;
  transition: all 0.2s ease;
}
.svx-gc-body .upload-dropzone:hover {
  border-color: #1e88ff;
  background: #f8fbff;
}
.svx-gc-body .upload-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.svx-gc-body .upload-link {
  color: #1e88ff;
  font-weight: 600;
  text-decoration: underline;
}
.svx-artwork-upload-container {
  margin-top: 20px;
}

/* ===== Gallery prodotto: safety net contro adaptiveHeight di Flickity ===== */
/* La vera fix è JS (adaptiveHeight = false), questo è solo un fallback */
.woocommerce-product-gallery .flickity-viewport {
    max-height: 600px !important;
    overflow: hidden !important;
}

/* ===== Sticky mobile bar ===== */
#svx-mobile-bar {
    display: flex; /* sempre flex; nascosto via opacity */
    position: fixed;
    bottom: 14px;
    left: 12px;
    right: 96px; /* clearance icona live chat */
    z-index: 9990;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, .14);
    padding: 11px 14px;
    flex-direction: column;
    gap: 8px;
    font-family: inherit;
    /* nascosto di default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .12s ease, transform .12s ease;
}
#svx-mobile-bar.svx-mb-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Reset base */
#svx-mobile-bar *,
#svx-mobile-bar *::before,
#svx-mobile-bar *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* Header: icona cerchio + prezzo */
.svx-mb-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}
.svx-mb-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background: #eef4fb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.svx-mb-pricing {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0;
}
.svx-mb-total {
    display: block !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0b1c3d !important;
    letter-spacing: -.03em !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color .25s;
}
.svx-mb-total.svx-mb-empty {
    color: #a0aec0 !important;
}
.svx-mb-detail {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #8fa3b8 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.svx-mb-dot {
    color: #c8d5e0;
}

/* Divisore */
.svx-mb-divider {
    height: 1px !important;
    background: #edf2f8 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Riga azioni */
.svx-mb-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-right: 0 !important;
}
.svx-mb-delivery {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a2b45 !important;
    flex: 1;
    min-width: 0;
}
.svx-mb-delivery span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottone: solo freccia in cerchio */
#svx-mb-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #1589e9 !important;
    border: 1.5px solid #1589e9 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background .18s, color .18s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}
#svx-mb-cta:hover {
    background: #1589e9 !important;
    color: #fff !important;
}
#svx-mb-cta:active {
    transform: scale(.92);
}

/* ===== Mobile: stacking tecnica + colori su righe separate ===== */
@media (max-width: 600px) {
    .svx-pos-technique-select {
        flex-basis: 100% !important;
        width: 100% !important;
        flex: none !important;
    }
    .svx-custom-colors,
    .svx-pos-colors-select {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}
