.pwl-dc-configurator {
    width: 100%;
    display: flex;
    gap: 34px;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pwl-dc-configurator.is-ready {
    opacity: 1;
}

/* Loading spinner */
.pwl-dc-loader {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.pwl-dc-loader.is-hidden {
    opacity: 0;
}
.pwl-dc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #888;
    border-radius: 50%;
    animation: pwl-dc-spin 0.7s linear infinite;
}
@keyframes pwl-dc-spin {
    to { transform: rotate(360deg); }
}

.pwl-dc-left-col {
    flex: 0 0 50%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pwl-dc-canvas-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fafafa;
    border-radius: 8px;
}

/* Summary list — hidden visually, data still saved with designs */
.pwl-dc-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none !important;
}

.pwl-dc-summary-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    padding: 8px 0 2px;
    list-style: none;
}

.pwl-dc-summary-heading:first-child {
    padding-top: 2px;
}

.pwl-dc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pwl-dc-summary-item:last-child {
    border-bottom: none;
}

.pwl-dc-summary-item--indent {
    padding-left: 14px;
    font-size: 12px;
    color: #666;
}

.pwl-dc-summary-label {
    font-weight: 500;
    white-space: nowrap;
}

.pwl-dc-summary-value {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    text-align: right;
}

.pwl-dc-summary-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.pwl-dc-base-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.pwl-dc-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pwl-dc-layer-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* Controls */
.pwl-dc-controls {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Tabs */
.pwl-dc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 4px;
}

.pwl-dc-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.pwl-dc-tab-btn:hover {
    color: #333;
}

.pwl-dc-tab-btn.is-active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    border-bottom-width: 3px;
}

/* Panels viewport */
.pwl-dc-panels-viewport {
    position: relative;
}

.pwl-dc-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwl-dc-tab-panel.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Dev mode: all panels visible, separated by a faint rule */
.pwl-dc--dev-mode .pwl-dc-panels-viewport {
    overflow: visible;
}

.pwl-dc--dev-mode .pwl-dc-tab-panel {
    position: relative;
    display: flex;
    opacity: 1;
    pointer-events: auto;
    border-top: 2px dashed #e0e0e0;
    padding-top: 12px;
    margin-top: 4px;
}

.pwl-dc--dev-mode .pwl-dc-tab-panel:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.pwl-dc--dev-mode .pwl-dc-tabs::after {
    content: '⚙ Dev mode';
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    align-self: center;
    margin-left: auto;
    padding-right: 4px;
}

.pwl-dc-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwl-dc-control-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Shared item label */
.pwl-dc-item-label {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Swatch row */
.pwl-dc-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.pwl-dc-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 40px;
}

.pwl-dc-swatch-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.1s ease, border-color 0.15s ease;
    outline: none;
    flex-shrink: 0;
}

.pwl-dc-swatch-btn:hover {
    transform: scale(1.2);
}

.pwl-dc-swatch-btn.is-active {
    border-color: #333;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px #333;
}

/* Pattern selector */
.pwl-dc-pattern-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.pwl-dc-pattern-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 48px;
}

.pwl-dc-pattern-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 2px;
    background: #fff;
    transition: transform 0.1s ease, border-color 0.15s ease;
    outline: none;
    overflow: hidden;
    flex-shrink: 0;
}

.pwl-dc-pattern-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pwl-dc-pattern-btn:hover {
    transform: scale(1.1);
    border-color: #999;
}

.pwl-dc-pattern-btn.is-active {
    border-color: #333;
    box-shadow: 0 0 0 2px #333;
}

/* Sublayers (dual color, secondary pattern) */
.pwl-dc-sublayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Sub-option panels */
.pwl-dc-suboptions {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.pwl-dc-suboptions.is-active {
    display: flex;
}

.pwl-dc-suboption-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dual color + secondary pattern color groups: hidden until activated */
.pwl-dc-dual-color-group,
.pwl-dc-secondary-color-group,
.pwl-dc-band-color-b-group,
.pwl-dc-band-color-c-group,
.pwl-dc-sp-color-mode-group,
.pwl-dc-sp-dual-color-group,
.pwl-dc-decor-color-group {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.pwl-dc-dual-color-group.is-active,
.pwl-dc-secondary-color-group.is-active,
.pwl-dc-band-color-b-group.is-active,
.pwl-dc-band-color-c-group.is-active,
.pwl-dc-sp-color-mode-group.is-active,
.pwl-dc-sp-dual-color-group.is-active,
.pwl-dc-decor-color-group.is-active {
    display: flex;
}

/* Reuse toggle-btn styles for sp toggles */
.pwl-dc-sp-toggle-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    outline: none;
}
.pwl-dc-sp-toggle-btn:hover  { border-color: #999; }
.pwl-dc-sp-toggle-btn.is-active { border-color: #333; background: #333; color: #fff; }

.pwl-dc-sp-color-mode-group .pwl-dc-toggle-row,
.pwl-dc-sp-dual-color-group .pwl-dc-toggle-row {
    display: flex;
    gap: 6px;
}

/* Export button */
.pwl-dc-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pwl-dc-export-btn:hover    { background: #555; }
.pwl-dc-export-btn:disabled { background: #aaa; cursor: default; }

/* Controls top bar */
.pwl-dc-controls-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 4px;
}
.pwl-dc-controls-topbar .pwl-dc-editing-indicator {
    flex: 1;
    margin-bottom: 0;
}

/* Reset button — text link style, top-right */
.pwl-dc-reset-btn {
    display: inline;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.pwl-dc-reset-btn:hover {
    color: #c0392b;
}

/* Toggle row */
.pwl-dc-toggle-row {
    display: flex;
    gap: 6px;
}

.pwl-dc-toggle-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    outline: none;
}

.pwl-dc-toggle-btn:hover {
    border-color: #999;
}

.pwl-dc-toggle-btn.is-active {
    border-color: #333;
    background: #333;
    color: #fff;
}

/* "None" icon inside a pattern button */
.pwl-dc-none-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    color: #aaa;
    line-height: 1;
}

@media (max-width: 768px) {
    .pwl-dc-configurator {
        flex-direction: column;
    }

    .pwl-dc-left-col {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}


/* Action buttons under image — hidden, functionality kept in JS */
.pwl-dc-action-buttons {
    display: none;
}

/* Step navigation */
.pwl-dc-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}
.pwl-dc-step-prev,
.pwl-dc-step-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.pwl-dc-step-prev:hover,
.pwl-dc-step-next:hover {
    border-color: #333;
    background: #333;
    color: #fff;
}
.pwl-dc-step-arrow {
    font-size: 16px;
    line-height: 1;
}
.pwl-dc-step-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Save/Buy button inside step-nav (replaces Next on last step) */
.pwl-dc-step-nav .pwl-dc-save-design-btn {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 22px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
    box-sizing: border-box;
    margin-left: auto;
}
.pwl-dc-step-nav .pwl-dc-save-design-btn:hover {
    background: #333;
}

/* Save design button */
.pwl-dc-save-design-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.pwl-dc-save-design-btn:hover { background: #333; color: #fff; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */

.pwl-dc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwl-dc-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pwl-dc-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.pwl-dc-modal-close:hover { color: #333; }

.pwl-dc-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.pwl-dc-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    margin-top: 12px;
}

.pwl-dc-modal label:first-of-type {
    margin-top: 0;
}

.pwl-dc-modal input[type="text"],
.pwl-dc-modal input[type="email"],
.pwl-dc-modal input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.pwl-dc-modal input:focus {
    border-color: #333;
}

.pwl-dc-modal-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
}
a.pwl-dc-modal-btn,
a.pwl-dc-modal-btn:visited { color: #fff; }
.pwl-dc-modal-btn:hover,
a.pwl-dc-modal-btn:hover { background: #555; color: #fff; }
.pwl-dc-modal-btn:disabled { background: #aaa; cursor: default; }

.pwl-dc-modal-btn--secondary {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    margin-top: 8px;
}
.pwl-dc-modal-btn--secondary:hover { border-color: #999; color: #333; background: transparent; }

.pwl-dc-modal-msg {
    font-size: 13px;
    color: #c0392b;
    min-height: 18px;
    margin-top: 8px;
}
.pwl-dc-modal-msg--success {
    color: #27ae60;
}

/* Modal auth tabs */
.pwl-dc-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 16px;
}

.pwl-dc-modal-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
}
.pwl-dc-modal-tab:hover { color: #333; }
.pwl-dc-modal-tab.is-active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.pwl-dc-auth-panel {
    display: none;
}
.pwl-dc-auth-panel.is-active {
    display: block;
}
.pwl-dc-auth-switch {
    margin-top: 14px;
    font-size: 12px;
    color: #888;
}
.pwl-dc-auth-switch a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.pwl-dc-configurator {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* ── Size Selection Step ── */
.pwl-dc-size-selection {
    padding: 8px 0;
}
.pwl-dc-size-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}
.pwl-dc-size-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    text-align: center;
}
.pwl-dc-size-card:hover {
    border-color: #bbb;
}
.pwl-dc-size-card.is-active {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 1px #1a1a1a;
}
.pwl-dc-size-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* ── Product Page: Design Selector ── */
.pwl-dc-design-selector {
    margin-bottom: 24px;
}
.pwl-dc-design-selector h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}
.pwl-dc-ds-empty {
    color: #666;
    margin-bottom: 12px;
}
.pwl-dc-ds-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.pwl-dc-ds-card {
    display: block;
    cursor: pointer;
}
.pwl-dc-ds-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.pwl-dc-ds-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.pwl-dc-ds-card:hover .pwl-dc-ds-card-inner {
    border-color: #bbb;
}
.pwl-dc-ds-radio:checked ~ .pwl-dc-ds-card-inner {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 1px #1a1a1a;
}
.pwl-dc-ds-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}
.pwl-dc-ds-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pwl-dc-ds-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}
.pwl-dc-ds-info {
    flex: 1;
    min-width: 0;
}
.pwl-dc-ds-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pwl-dc-ds-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.pwl-dc-ds-edit {
    flex-shrink: 0;
    font-size: 16px;
    color: #888;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background-color 0.15s;
}
.pwl-dc-ds-edit:hover {
    color: #333;
    background: #f0f0f0;
}
.pwl-dc-ds-actions {
    margin-top: 12px;
}
.pwl-dc-ds-create-btn {
    display: inline-block;
}

/* Create-design card */
.pwl-dc-ds-card--create {
    text-decoration: none;
    color: inherit;
}
.pwl-dc-ds-card--create:hover .pwl-dc-ds-card-inner {
    border-color: #1a1a1a;
    background: #fff;
}
.pwl-dc-ds-thumb--create {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}
.pwl-dc-ds-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #888;
    padding: 4px 6px;
    transition: color 0.15s;
}
.pwl-dc-ds-card--create:hover .pwl-dc-ds-arrow {
    color: #1a1a1a;
}

/* Help card thumb */
.pwl-dc-ds-thumb--help {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #888;
    font-size: 24px;
    font-weight: 700;
}
.pwl-dc-ds-radio:checked ~ .pwl-dc-ds-card-inner .pwl-dc-ds-thumb--help {
    background: #d0d0d0;
    color: #555;
}

/* ── Product Page: Guest CTA ── */
.pwl-dc-guest-cta {
    margin-bottom: 24px;
}
.pwl-dc-guest-cta-inner h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}
.pwl-dc-guest-cta-inner p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.pwl-dc-guest-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.pwl-dc-guest-cta-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
    box-sizing: border-box;
}
.pwl-dc-guest-cta-btn:hover {
    background: #333;
}

/* ── Buy Design Modal (My Designs page) ── */
.pwl-dc-buy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.pwl-dc-buy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.pwl-dc-buy-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.pwl-dc-buy-modal-content h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}
.pwl-dc-buy-modal-content > p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}
.pwl-dc-buy-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pwl-dc-buy-modal-close:hover {
    color: #333;
}
.pwl-dc-buy-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pwl-dc-buy-product-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pwl-dc-buy-product-list li:last-child {
    border-bottom: none;
}
.pwl-dc-modal-saved-notice {
    color: #4caf50;
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 8px;
}
.pwl-dc-buy-product-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}
.pwl-dc-buy-product-price {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}
.pwl-dc-buy-product-list .woocommerce-button {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.pwl-dc-buy-product-list .woocommerce-button:hover {
    background: #555;
    color: #fff;
}

.pwl-dc-modal-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    text-decoration: underline;
}
.pwl-dc-modal-link:hover {
    color: #222;
}

.pwl-dc-editing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
}
.pwl-dc-editing-label {
    color: #888;
    font-weight: 400;
}
.pwl-dc-editing-name {
    color: #222;
    font-weight: 600;
}
.pwl-dc-editing-link {
    margin-left: auto;
    font-size: 12px;
    color: #555;
    text-decoration: underline;
}
.pwl-dc-editing-link:hover {
    color: #222;
}

.pwl-dc-help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}
.pwl-dc-help-modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 24px;
    max-width: 460px;
    width: 90%;
    margin: 160px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
#pwl-dc-size-question-modal .pwl-dc-help-modal {
    text-align: center;
}
#pwl-dc-size-question-modal .pwl-dc-guest-cta-buttons {
    align-items: center;
    margin-bottom: 30px;
}
.pwl-dc-help-modal h3 {
    margin: 0 0 30px;
    font-size: 18px;
    font-weight: 600;
}
.pwl-dc-help-modal > p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
}
.pwl-dc-help-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pwl-dc-help-modal-close:hover {
    color: #333;
}
.pwl-dc-help-steps {
    margin: 0 0 20px;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}

.pwl-dc-designs-table td[data-title="Actions"] .woocommerce-button {
    margin-right: 8px;
}

/* ─── Size Product ─────────────────────────────────────── */

.pwl-dc-size-product {
    margin-bottom: 16px;
}
.pwl-dc-size-status {
    font-size: 14px;
    margin: 0 0 10px;
}
.pwl-dc-size-status--ok {
    color: #4caf50;
}
.pwl-dc-size-status--required {
    color: #c62828;
}
.pwl-dc-size-trigger {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.pwl-dc-size-trigger:hover {
    background: #333;
    color: #fff !important;
}

.pwl-dc-size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}
.pwl-dc-size-modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 24px;
    max-width: 520px;
    width: 90%;
    margin: 160px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.pwl-dc-size-modal h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.pwl-dc-size-subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #888;
}
.pwl-dc-size-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pwl-dc-size-modal-close:hover {
    color: #333;
}
.pwl-dc-size-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 20px;
}
.pwl-dc-size-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.pwl-dc-size-unit {
    font-weight: 400;
    color: #888;
}
.pwl-dc-size-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.pwl-dc-size-input:focus {
    border-color: #333;
    outline: none;
}
.pwl-dc-size-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pwl-dc-size-radio {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.pwl-dc-size-radio input[type="radio"] {
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
    pointer-events: auto !important;
    accent-color: #333;
}
.pwl-dc-size-auth {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-bottom: 16px;
}
.pwl-dc-size-auth h4 {
    margin: 0 0 12px;
    font-size: 15px;
}
.pwl-dc-size-auth .pwl-dc-size-input {
    margin-bottom: 10px;
}
.pwl-dc-size-login-link {
    font-size: 12px;
    color: #888;
    margin: 0;
}
.pwl-dc-size-login-link a {
    color: #333;
    text-decoration: underline;
}
.pwl-dc-size-msg {
    font-size: 13px;
    color: #c62828;
    min-height: 18px;
    margin: 0 0 10px;
}
.pwl-dc-size-submit {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pwl-dc-size-submit:hover {
    background: #333;
}

/* ── Unit Toggle ───────────────────────────────────────────── */
.pwl-dc-unit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.pwl-dc-unit-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.pwl-dc-unit-btn {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}
.pwl-dc-unit-btn.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.pwl-dc-unit-btn:hover:not(.is-active) {
    background: #e8e8e8;
}
.pwl-dc-sizes-field-unit {
    font-weight: 400;
    color: #888;
}