/* =========================================================
   Flowizy WooCommerce Plugin — shared styles (admin + frontend)
   ========================================================= */

/* Design tokens — inherit the active theme's palette when available
   (flowizy-print exposes --fp-* variables), fall back to sensible
   defaults on any other theme. */
.flowizy-options-form,
.flowizy-modal,
.flowizy-specs-panel,
.flowizy-tooltip {
    --flz-accent: var(--fp-violet, #6a5ae0);
    --flz-accent-ink: #4c3fd4;
    --flz-accent-soft: rgba(106, 90, 224, 0.08);
    --flz-accent-ring: rgba(106, 90, 224, 0.18);
    --flz-ink: var(--fp-ink-900, #131a36);
    --flz-ink-soft: var(--fp-ink-500, #3a4878);
    --flz-muted: var(--fp-ink-300, #8a93b8);
    --flz-border: var(--fp-border, rgba(11, 16, 32, 0.08));
    --flz-border-strong: var(--fp-border-strong, rgba(11, 16, 32, 0.16));
    --flz-surface: var(--fp-white, #fff);
    --flz-shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.05), 0 2px 8px -2px rgba(11, 16, 32, 0.06);
    --flz-shadow-md: 0 10px 30px -12px rgba(11, 16, 32, 0.18);
    --flz-radius: 14px;
    --flz-radius-sm: 10px;
}

/* ----- Product page: options form ----- */
.flowizy-options-form {
    margin: 1.5em 0;
}

/* In card mode the outer wrapper provides no extra chrome — cards carry the visual weight */
.flowizy-options-form--card {
    /* no extra wrapper styling needed */
}

/* In fieldset mode keep a subtle container */
.flowizy-options-form--fieldset {
    padding: 1.25em;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius);
    background: #fafafa;
}

.flowizy-property {
    margin-bottom: 1.15em;
}

.flowizy-property__label {
    display: block;
    margin-bottom: 0.45em;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: -0.01em;
    color: var(--flz-ink);
}

.flowizy-property__select {
    width: 100%;
    max-width: 380px;
    padding: 0.65em 0.9em;
    border: 1px solid var(--flz-border-strong);
    border-radius: var(--flz-radius-sm);
    font-size: 0.95em;
    background: var(--flz-surface);
    cursor: pointer;
    box-shadow: var(--flz-shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.flowizy-property__select:hover {
    border-color: var(--flz-accent);
}

.flowizy-property__select:focus {
    border-color: var(--flz-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--flz-accent-ring);
}

.flowizy-property--fixed .flowizy-property__select {
    background: #f3f3f3;
    cursor: default;
    color: #777;
    box-shadow: none;
}

.flowizy-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    vertical-align: middle;
}

/* ----- Price preview ----- */
.flowizy-price-preview {
    margin-top: 1.25em;
    padding: 1em 1.25em;
    border-radius: var(--flz-radius);
    background: linear-gradient(135deg, rgba(106, 90, 224, 0.10) 0%, rgba(106, 90, 224, 0.04) 60%, rgba(91, 225, 196, 0.06) 100%);
    border: 1px solid rgba(106, 90, 224, 0.18);
    box-shadow: var(--flz-shadow-sm);
    font-size: 0.95em;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.flowizy-price-label {
    color: #555;
    margin-right: 6px;
}

.flowizy-price-value {
    font-weight: 800;
    font-size: 1.45em;
    letter-spacing: -0.02em;
    color: var(--flz-ink);
}

.flowizy-price-shipping {
    font-size: 0.85em;
    color: var(--flz-ink-soft);
    margin-left: 4px;
}

.flowizy-price-error {
    color: #c0392b;
    font-size: 0.9em;
    margin-top: 0.5em;
}

/* ----- Number input ----- */
.flowizy-property__input {
    width: 120px;
    padding: 0.65em 0.9em;
    border: 1px solid var(--flz-border-strong);
    border-radius: var(--flz-radius-sm);
    font-size: 0.95em;
    background: var(--flz-surface);
    box-shadow: var(--flz-shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.flowizy-property__input:hover {
    border-color: var(--flz-accent);
}

.flowizy-property__input:focus {
    border-color: var(--flz-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--flz-accent-ring);
}

.flowizy-property__hint {
    display: block;
    margin-top: 0.35em;
    font-size: 0.82em;
    color: var(--flz-muted);
}

/* ----- Fieldset style (native) ----- */
.flowizy-fieldset {
    margin: 0 0 1.1em;
    padding: 1.1em 1.25em 0.7em;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius);
    background: var(--flz-surface);
    box-shadow: var(--flz-shadow-sm);
}

.flowizy-fieldset__legend {
    padding: 0 0.5em;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--flz-ink-soft);
}

.flowizy-fieldset .flowizy-property:last-child {
    margin-bottom: 0.35em;
}

/* ----- Card style ----- */
.flowizy-card {
    margin: 0 0 1em;
    padding: 1.1em 1.25em 0.7em;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius);
    background: var(--flz-surface);
    box-shadow: var(--flz-shadow-sm);
}

.flowizy-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.9em;
    padding-bottom: 0.65em;
    border-bottom: 1px solid var(--flz-border);
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--flz-ink-soft);
}

/* Small accent tick before each section title */
.flowizy-card__title::before,
.flowizy-fieldset__legend::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 2px;
    background: var(--flz-accent);
    vertical-align: middle;
    transform: rotate(45deg);
}

.flowizy-card .flowizy-property:last-child {
    margin-bottom: 0.35em;
}

/* =========================================================
   Custom Select (exclusion-aware)
   ========================================================= */

.flowizy-custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 380px;
}

.flowizy-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65em 0.9em;
    border: 1px solid var(--flz-border-strong, rgba(11, 16, 32, 0.16));
    border-radius: var(--flz-radius-sm, 10px);
    font-size: 0.95em;
    background: #fff;
    color: var(--flz-ink, #131a36);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--flz-shadow-sm, 0 1px 2px rgba(11, 16, 32, 0.05));
    transition: border-color 0.15s, box-shadow 0.15s;
}

.flowizy-custom-select__trigger:hover {
    border-color: var(--flz-accent, #6a5ae0);
}

.flowizy-custom-select__trigger::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 0.6em;
    border-right: 2px solid var(--flz-muted, #8a93b8);
    border-bottom: 2px solid var(--flz-muted, #8a93b8);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.flowizy-custom-select--open .flowizy-custom-select__trigger::after {
    transform: rotate(225deg) translateY(-2px);
}

.flowizy-custom-select__trigger--placeholder {
    color: #999;
}

.flowizy-custom-select--open .flowizy-custom-select__trigger {
    border-color: var(--flz-accent, #6a5ae0);
    box-shadow: 0 0 0 3px var(--flz-accent-ring, rgba(106, 90, 224, 0.18));
}

.flowizy-custom-select__options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    width: 100%;
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--flz-border, rgba(11, 16, 32, 0.08));
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px -12px rgba(11, 16, 32, 0.22), 0 2px 8px rgba(11, 16, 32, 0.06);
    max-height: 260px;
    overflow-y: auto;
}

.flowizy-custom-select--open .flowizy-custom-select__options {
    display: block;
}

/* Unified banner finish toggle (PVC banners / mesh) */
.flowizy-banner-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93em;
    font-weight: 500;
    color: var(--flz-ink, #131a36);
    cursor: pointer;
}

.flowizy-banner-toggle input[type="checkbox"] {
    accent-color: var(--flz-accent, #6a5ae0);
    width: 16px;
    height: 16px;
}

/* Optgroup-style header inside the dropdown (option parent groups) */
.flowizy-custom-select__group {
    padding: 0.65em 0.65em 0.3em;
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--flz-muted, #8a93b8);
    cursor: default;
}

.flowizy-custom-select__group ~ .flowizy-custom-select__option {
    padding-left: 1.3em;
}

.flowizy-custom-select__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55em 0.65em;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    color: var(--flz-ink, #131a36);
    transition: background 0.1s;
}

.flowizy-custom-select__option:hover {
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
}

.flowizy-custom-select__option--selected {
    font-weight: 600;
    color: var(--flz-accent-ink, #4c3fd4);
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
}

.flowizy-custom-select__option--selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.85em;
    color: var(--flz-accent, #6a5ae0);
}

/* Orange dot for excluded options */
.flowizy-custom-select__option--excluded {
    color: #888;
    cursor: default;
}

.flowizy-custom-select__option--excluded::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

.flowizy-custom-select__option--excluded:hover {
    background: #fff8f3;
}

/* =========================================================
   Conflict Resolution Modal
   ========================================================= */

.flowizy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.flowizy-modal-overlay--visible {
    display: flex;
}

.flowizy-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flowizy-modal__header {
    padding: 1em 1.25em 0.75em;
    border-bottom: 1px solid #f0f0f0;
}

.flowizy-modal__title {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.flowizy-modal__body {
    padding: 1em 1.25em;
    overflow-y: auto;
    flex: 1;
}

.flowizy-modal__intro {
    margin: 0 0 0.75em;
    font-size: 0.92em;
    color: #444;
    line-height: 1.5;
}

.flowizy-modal__sub {
    margin: 0 0 1em;
    font-size: 0.88em;
    color: #777;
}

.flowizy-modal__footer {
    padding: 0.75em 1.25em;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
}

.flowizy-modal__btn {
    padding: 0.45em 1.1em;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    border: 1px solid transparent;
}

.flowizy-modal__btn--cancel {
    background: #f3f3f3;
    color: #555;
    border-color: #ddd;
}

.flowizy-modal__btn--cancel:hover {
    background: #eaeaea;
}

.flowizy-modal__btn--apply {
    background: #7b5ea7;
    color: #fff;
}

.flowizy-modal__btn--apply:hover:not(:disabled) {
    background: #6a4e94;
}

.flowizy-modal__btn--apply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Instant floating tooltip */
.flowizy-tooltip {
    position: fixed;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.82em;
    line-height: 1.45;
    z-index: 100000;
    pointer-events: none;
    max-width: 240px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.flowizy-tooltip em {
    color: #f9c74f;
    font-style: normal;
}

/* Conflict rows */
.flowizy-conflict-row {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    padding: 0.75em;
    border-radius: 5px;
    margin-bottom: 0.6em;
    border: 1px solid #e8e8e8;
    transition: background 0.25s, border-color 0.25s;
}

.flowizy-conflict-row--pending {
    background: #fffbeb;
    border-color: #fcd34d;
}

.flowizy-conflict-row--resolved {
    background: #f0fdf4;
    border-color: #86efac;
}

.flowizy-conflict-row__label {
    font-size: 0.88em;
    font-weight: 600;
    color: #555;
}

.flowizy-conflict-row__change {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.88em;
    flex-wrap: wrap;
}

.flowizy-conflict-row__old {
    color: #9ca3af;
    text-decoration: line-through;
}

.flowizy-conflict-row__arrow {
    color: #6b7280;
}

.flowizy-conflict-row__new {
    font-weight: 600;
    color: #166534;
}

.flowizy-modal__ready {
    margin: 0.5em 0 0;
    font-size: 0.88em;
    color: #166534;
    font-weight: 500;
}

/* Conflict option buttons */
.flowizy-conflict-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.flowizy-conflict-btn {
    padding: 0.3em 0.85em;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 0.88em;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    color: #374151;
}

.flowizy-conflict-btn:hover {
    background: #f5f0fb;
    border-color: #7b5ea7;
    color: #7b5ea7;
}

.flowizy-conflict-btn--selected {
    background: #166534;
    border-color: #166534;
    color: #fff;
    font-weight: 600;
}

/* ----------------------------------------------------------------------------
 * Accessories & shipping sections (frontend)
 * ---------------------------------------------------------------------------- */

.flowizy-accessories__list,
.flowizy-shipping__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flowizy-accessory,
.flowizy-shipping-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    background: #fff;
}

.flowizy-accessory:has(.flowizy-accessory__img) {
    grid-template-columns: auto auto 1fr auto;
}

.flowizy-accessory__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    flex-shrink: 0;
}

.flowizy-accessory:hover,
.flowizy-shipping-option:hover {
    border-color: #94a3b8;
}

.flowizy-shipping-option:has(input:checked) {
    border-color: #475569;
    background: #f8fafc;
}

.flowizy-accessory__label,
.flowizy-shipping-option__label {
    font-size: 0.9em;
    color: #1e293b;
}

.flowizy-accessory__sku,
.flowizy-shipping-option__meta {
    font-size: 0.78em;
    color: #94a3b8;
}

.flowizy-shipping-option {
    grid-template-columns: auto 1fr auto auto;
}

.flowizy-shipping-option__price {
    font-weight: 600;
    font-size: 0.92em;
    color: #1e293b;
}

/* ----- Product page: file specs panel + download button ----- */
.flowizy-specs-panel {
    margin-top: 1.5em;
    padding: 1.25em 1.5em;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.flowizy-specs-panel__header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1.1em;
}
.flowizy-specs-panel__icon {
    width: 16px;
    height: 16px;
    color: #6366f1;
    flex-shrink: 0;
}
.flowizy-specs-panel__title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}
.flowizy-specs-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85em 1.25em;
    margin: 0 0 1.25em;
}
.flowizy-specs-panel__cell {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.flowizy-specs-panel__cell dt {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 500;
}
.flowizy-specs-panel__cell dd {
    margin: 0;
    font-size: 0.95em;
    color: #0f172a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.flowizy-download-template {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    width: 100%;
    padding: 0.7em 1em;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 0.92em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.flowizy-download-template:hover:not(:disabled) {
    background: #1e293b;
}
.flowizy-download-template:active:not(:disabled) {
    background: #020617;
    transform: translateY(1px);
}
.flowizy-download-template:disabled {
    background: #cbd5e1;
    color: #f1f5f9;
    cursor: not-allowed;
    box-shadow: none;
}
.flowizy-download-template__icon,
.flowizy-download-template__spinner {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.flowizy-download-template__spinner {
    display: none;
    animation: flowizy-spin 0.8s linear infinite;
}
.flowizy-download-template:hover:not(:disabled) .flowizy-download-template__icon {
    transform: translateY(2px);
    transition: transform 0.15s ease;
}
.flowizy-download-template.is-loading .flowizy-download-template__icon {
    display: none;
}
.flowizy-download-template.is-loading .flowizy-download-template__spinner {
    display: inline-block;
}
.flowizy-download-template.is-loading {
    cursor: wait;
}
@keyframes flowizy-spin {
    to { transform: rotate(360deg); }
}

.flowizy-specs-panel__error {
    margin: 0.75em 0 0;
    font-size: 0.85em;
    color: #b91c1c;
    text-align: center;
}

/* =======================================================================
   Parity layer with the middleware preview form (frontend-enhancements.js)
   ======================================================================= */

/* 1. Visual tile picker (full-iconUrl coverage on a property) */
.flowizy-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.flowizy-tile {
    background: #fff;
    border: 2px solid var(--flz-border, rgba(11, 16, 32, 0.08));
    border-radius: var(--flz-radius, 14px);
    padding: 14px 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--flz-shadow-sm, 0 1px 2px rgba(11, 16, 32, 0.05));
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.flowizy-tile:hover {
    border-color: var(--flz-accent, #6a5ae0);
    transform: translateY(-2px);
    box-shadow: var(--flz-shadow-md, 0 10px 30px -12px rgba(11, 16, 32, 0.18));
}
.flowizy-tile.is-selected {
    border-color: var(--flz-accent, #6a5ae0);
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
    box-shadow: 0 0 0 3px var(--flz-accent-ring, rgba(106, 90, 224, 0.18));
}
.flowizy-tile__icon { display:block; margin: 0 auto 8px; width: 56px; height: 56px; }
.flowizy-tile__icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.flowizy-tile__label { display:block; font-size: 12px; font-weight: 500; color: var(--flz-ink-soft, #3a4878); line-height: 1.3; }

/* 2. customSizes — width × height inputs under the size select */
.flowizy-custom-size {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.flowizy-custom-size label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--flz-ink-soft, #3a4878);
}
.flowizy-custom-size input[type=number] {
    border: 1px solid var(--flz-border-strong, rgba(11, 16, 32, 0.16));
    border-radius: var(--flz-radius-sm, 10px);
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    box-shadow: var(--flz-shadow-sm, 0 1px 2px rgba(11, 16, 32, 0.05));
    transition: border-color 0.15s, box-shadow 0.15s;
}
.flowizy-custom-size input[type=number]:focus {
    border-color: var(--flz-accent, #6a5ae0);
    outline: none;
    box-shadow: 0 0 0 3px var(--flz-accent-ring, rgba(106, 90, 224, 0.18));
}

/* 3. Accessory quantity stepper */
#flowizy-accessories .flowizy-accessory {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    border: 2px solid var(--flz-border, rgba(11, 16, 32, 0.08));
    border-radius: var(--flz-radius, 14px);
    padding: 12px;
    background: #fff;
    box-shadow: var(--flz-shadow-sm, 0 1px 2px rgba(11, 16, 32, 0.05));
    transition: border-color .15s, box-shadow .15s;
}
#flowizy-accessories .flowizy-accessory:hover {
    border-color: var(--flz-accent, #6a5ae0);
}
#flowizy-accessories .flowizy-accessory.is-selected {
    border-color: var(--flz-accent, #6a5ae0);
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
}
#flowizy-accessories .flowizy-accessory__img {
    width: 72px; height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #f1f5f9;
}
#flowizy-accessories .flowizy-accessory__img.is-empty { background: #f1f5f9; }
#flowizy-accessories .flowizy-accessory__body {
    display: flex; flex-direction: column; justify-content: space-between;
    min-width: 0;
}
#flowizy-accessories .flowizy-accessory__name {
    font-size: 12px; color: #334155;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    margin: 0;
}
#flowizy-accessories .flowizy-accessory__qty {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
}
.flowizy-acc-step {
    width: 28px; height: 28px; border: 1px solid var(--flz-border-strong, rgba(11, 16, 32, 0.16)); background: #fff;
    border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1;
    transition: background .12s, border-color .12s, color .12s;
}
.flowizy-acc-step:hover {
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
    border-color: var(--flz-accent, #6a5ae0);
    color: var(--flz-accent-ink, #4c3fd4);
}
.flowizy-acc-input {
    width: 48px; text-align: center; font-size: 13px;
    border: 1px solid var(--flz-border-strong, rgba(11, 16, 32, 0.16));
    border-radius: 8px; padding: 4px;
}

/* 4. Shipping: date row, then carrier list */
.flowizy-ship-dates {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 4px 0 8px;
}
.flowizy-ship-date {
    flex: 0 0 auto; width: 160px;
    border: 2px solid var(--flz-border, rgba(11, 16, 32, 0.08));
    border-radius: var(--flz-radius, 14px);
    padding: 12px 14px; background: #fff; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    text-align: left;
    box-shadow: var(--flz-shadow-sm, 0 1px 2px rgba(11, 16, 32, 0.05));
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.flowizy-ship-date:hover {
    border-color: var(--flz-accent, #6a5ae0);
    transform: translateY(-2px);
    box-shadow: var(--flz-shadow-md, 0 10px 30px -12px rgba(11, 16, 32, 0.18));
}
.flowizy-ship-date.is-selected {
    border-color: var(--flz-accent, #6a5ae0);
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
    box-shadow: 0 0 0 3px var(--flz-accent-ring, rgba(106, 90, 224, 0.18));
}
.flowizy-ship-date__label { font-size: 13px; font-weight: 700; color: var(--flz-ink, #131a36); }
.flowizy-ship-date__price { font-size: 12px; color: var(--flz-ink-soft, #3a4878); text-align: right; margin-top: auto; padding-top: 8px; }
.flowizy-ship-date__tier {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--flz-ink-soft, #3a4878);
}
.flowizy-ship-date__tier--express { color: #b45309; }
.flowizy-ship-date__tier--urgent  { color: #b91c1c; }
.flowizy-ship-carrier__reliability {
    font-size: 11px; font-weight: 600; color: #047857;
    background: #ecfdf5; border-radius: 999px; padding: 2px 8px;
    white-space: nowrap;
}
.flowizy-ship-carrier--extra.is-collapsed { display: none; }
.flowizy-ship-more {
    display: block; width: 100%; text-align: center;
    padding: 9px 12px; margin-top: 2px;
    border: 1px dashed var(--flz-border-strong, rgba(11, 16, 32, 0.16));
    border-radius: var(--flz-radius-sm, 10px);
    background: transparent; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--flz-ink-soft, #3a4878);
    transition: border-color .12s, color .12s;
}
.flowizy-ship-more:hover { border-color: var(--flz-accent, #6a5ae0); color: var(--flz-accent, #6a5ae0); }
.flowizy-ship-carriers__title {
    margin: 14px 0 8px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--flz-ink-soft, #3a4878);
}
.flowizy-ship-carrier {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--flz-border, rgba(11, 16, 32, 0.08));
    border-radius: var(--flz-radius-sm, 10px); padding: 10px 12px;
    margin-bottom: 6px; cursor: pointer; background: #fff;
    transition: border-color .12s, background .12s;
}
.flowizy-ship-carrier:hover { border-color: var(--flz-accent, #6a5ae0); }
.flowizy-ship-carrier:has(input:checked) {
    border-color: var(--flz-accent, #6a5ae0);
    background: var(--flz-accent-soft, rgba(106, 90, 224, 0.08));
}
.flowizy-ship-carrier input[type="radio"] { accent-color: var(--flz-accent, #6a5ae0); }
.flowizy-ship-carrier__label { flex: 1; font-size: 13px; color: var(--flz-ink-soft, #3a4878); }
.flowizy-ship-carrier__price { font-size: 13px; font-weight: 700; color: var(--flz-ink, #131a36); }
