/* SOFiLU Design Studio — product page button + chat modal */

/* ─── Launch button ─────────────────────────────────────────────────────────── */

.sds-launch-wrap {
    margin: 0 0 16px;
}

.sds-launch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #021A62 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
}

.sds-launch-button:hover {
    background: #0a2b7e !important;
}

.sds-launch-icon {
    font-size: 1.1em;
}

.sds-launch-status {
    margin: 8px 0 0;
    font-size: 0.9em;
    color: #5b841b;
    font-weight: 600;
}

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

body.sds-modal-open {
    overflow: hidden;
}

.sds-overlay[hidden] {
    display: none;
}

.sds-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

/* Full-page studio takeover, Tapstitch-style */
.sds-modal {
    background: #fff;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sds-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #021A62;
    color: #fff;
}

.sds-head-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sds-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sds-tagline {
    font-size: 11px;
    color: #FF632C; /* SOFiLU orange */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sds-approved-badge {
    background: #5b841b;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
}

.sds-new {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.sds-new:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sds-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

/* ─── Messages ──────────────────────────────────────────────────────────────── */

.sds-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px max(16px, calc((100% - 1000px) / 2));
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f6f7f7;
}

/* Cap content width on big screens so bubbles stay readable full-bleed */
.sds-msg {
    max-width: min(80%, 760px);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sds-msg-assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.sds-msg-customer {
    align-self: flex-end;
    background: #021A62;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sds-msg-artwork {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.sds-msg-artwork figure {
    margin: 0;
    text-align: center;
}

/* Flat artwork tiles only — composite previews style their own images */
.sds-msg-artwork figure > img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background:
        repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
    display: block;
    cursor: zoom-in;
}

/* ─── On-product composite preview ──────────────────────────────────────────── */

.sds-composite {
    position: relative;
    width: 280px;
    cursor: zoom-in;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sds-composite-product {
    display: block;
    width: 100%;
    height: auto;
}

.sds-composite-art {
    position: absolute;
    object-fit: contain;
}

/* Full front: centered on the chest area of a typical product photo */
.sds-composite-full .sds-composite-art {
    left: 50%;
    top: 22%;
    width: 38%;
    height: 46%;
    transform: translateX(-50%);
}

/* Left chest: small mark over the wearer's left chest (viewer's right) */
.sds-composite-chest .sds-composite-art {
    left: 57%;
    top: 26%;
    width: 15%;
    height: 15%;
}

.sds-adjust {
    display: block;
    margin: 6px auto 0;
    background: #fff;
    border: 1px solid #021A62;
    color: #021A62;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sds-adjust:hover {
    background: #021A62;
    color: #fff;
}

/* ─── Placement editor ──────────────────────────────────────────────────────── */

.sds-editor[hidden] {
    display: none;
}

.sds-editor {
    position: fixed;
    inset: 0;
    z-index: 100002;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sds-editor-panel {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 96vh;
    overflow-y: auto;
    padding: 0 0 14px;
}

.sds-editor-sides {
    display: flex;
    gap: 6px;
    padding: 12px 14px 0;
}

.sds-side {
    flex: 1;
    padding: 9px 4px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #021A62;
    cursor: pointer;
}

.sds-side-active {
    background: #021A62;
    color: #fff;
    border-color: #021A62;
}

.sds-side:disabled {
    opacity: 0.4;
    cursor: default;
}

.sds-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #021A62;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px 12px 0 0;
}

.sds-editor-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.sds-editor-stage {
    position: relative;
    margin: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    touch-action: none;
    background: #fff;
}

.sds-editor-product {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* The print zone still anchors the inch readout, size cap, and default
   placement, but it's no longer drawn — customers place designs freely. */
.sds-editor-area {
    display: none;
    position: absolute;
    border: 2px dashed rgba(255, 99, 44, 0.55);
    border-radius: 4px;
    pointer-events: none;
}

.sds-editor-inches {
    font-size: 12px;
    font-weight: 600;
    color: #021A62;
    white-space: nowrap;
}

.sds-editor-art {
    position: absolute;
    cursor: grab;
    outline: 2px dashed rgba(255, 99, 44, 0.75);
    outline-offset: 2px;
    user-select: none;
}

.sds-editor-art:active {
    cursor: grabbing;
}

.sds-editor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font-size: 13px;
    color: #444;
}

.sds-editor-row input[type="range"] {
    flex: 1;
    accent-color: #FF632C;
}

.sds-editor-textlayer {
    position: absolute;
    white-space: nowrap;
    line-height: 1;
    cursor: grab;
    user-select: none;
    font-weight: 700;
    outline: 1px dashed rgba(2, 26, 98, 0.35);
    outline-offset: 3px;
    touch-action: none;
}

.sds-editor-textlayer:active {
    cursor: grabbing;
}

.sds-editor-textrow {
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding: 10px 14px 0;
    flex-wrap: wrap;
}

.sds-editor-textinput {
    flex: 2;
    min-width: 160px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.sds-editor-font {
    flex: 1;
    min-width: 110px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.sds-editor-textcolor {
    width: 44px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.sds-editor-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
}

.sds-editor-colors img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
}

.sds-editor-colors img.sds-editor-color-active {
    border-color: #FF632C;
}

.sds-editor-done {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px;
    background: #FF632C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ─── Artwork lightbox ──────────────────────────────────────────────────────── */

.sds-lightbox[hidden] {
    display: none;
}

.sds-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.sds-lightbox figure {
    margin: 0;
    text-align: center;
    max-width: 100%;
    max-height: 100%;
}

.sds-lightbox img {
    max-width: min(90vw, 720px);
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    background:
        repeating-conic-gradient(#e8e8e8 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
}

.sds-lightbox figcaption {
    color: #fff;
    font-size: 14px;
    text-transform: capitalize;
    margin-top: 10px;
}

.sds-lightbox-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 6px 0 0;
}

.sds-lightbox-hint a {
    color: #FF632C;
}

.sds-msg-artwork figcaption {
    font-size: 11px;
    color: #777;
    text-transform: capitalize;
    margin-top: 3px;
}

/* ─── Color gate ────────────────────────────────────────────────────────────── */

.sds-gate {
    margin: auto;
    max-width: 420px;
    text-align: center;
    padding: 24px;
}

.sds-gate-headline {
    margin: 6px 0 18px;
}

.sds-headline-main {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: #021A62;
}

.sds-headline-brush {
    display: block;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 46px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #FF632C;
    transform: skew(-6deg);
    margin-top: 6px;
}

/* ─── Gate mode chooser ─────────────────────────────────────────────────────── */

.sds-gate-modes {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 18px 0;
    flex-wrap: wrap;
}

.sds-mode {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: #fff;
    border: 1px solid #e6e7ee;
    border-radius: 16px;
    padding: 26px 18px 22px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 24px rgba(2, 26, 98, 0.07);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.sds-mode:hover {
    border-color: #FF632C;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(2, 26, 98, 0.12);
}

.sds-mode span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 99, 44, 0.1);
    color: #FF632C;
}

.sds-mode span svg {
    width: 26px;
    height: 26px;
}

.sds-mode strong {
    display: block;
    font-size: 15px;
    color: #021A62;
    margin-bottom: 4px;
}

.sds-mode em {
    display: block;
    font-size: 12px;
    color: #777;
    font-style: normal;
}

.sds-gate h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #021A62;
}

.sds-gate p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.sds-gate-note {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
}

.sds-gate-warn {
    color: #b32d2e;
    font-weight: 600;
}

.sds-gate-continue {
    display: block;
    width: 100%;
    background: #FF632C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

.sds-gate-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    max-height: 240px;
    overflow-y: auto;
}

.sds-gate-swatches img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
}

.sds-gate-swatches img:hover {
    border-color: #FF632C;
    transform: scale(1.08);
}

.sds-gate-or {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 12px 0 6px;
}

.sds-gate-color {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.sds-typing {
    padding: 6px 16px;
    font-size: 12px;
    font-style: italic;
    color: #777;
    background: #f6f7f7;
}

.sds-dots i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 4px;
    border-radius: 50%;
    background: #FF632C;
    animation: sds-blink 1.2s infinite;
}

.sds-dots i:nth-child(2) { animation-delay: 0.2s; }
.sds-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes sds-blink {
    0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.sds-footer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px max(12px, calc((100% - 1000px) / 2));
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.sds-header {
    padding-left: max(16px, calc((100% - 1000px) / 2)) !important;
    padding-right: max(16px, calc((100% - 1000px) / 2)) !important;
}

.sds-input {
    flex: 1;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    min-height: 40px;
    max-height: 120px;
}

.sds-attach,
.sds-send,
.sds-approve {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.sds-attach {
    background: #fff;
    border: 2px solid #FF632C !important;
    color: #FF632C;
    font-weight: 700;
    animation: sds-attach-pulse 2s infinite;
}

.sds-attach-label {
    margin-left: 4px;
    font-size: 13px;
}

.sds-attach.sds-attach-used {
    animation: none;
    border-color: #ccc !important;
    color: #555;
    font-weight: 400;
}

@keyframes sds-attach-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 99, 44, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(255, 99, 44, 0); }
}

.sds-send {
    background: #021A62;
    color: #fff;
}

.sds-approve {
    background: #5b841b;
    color: #fff;
    font-weight: 600;
}

.sds-attach:disabled,
.sds-send:disabled,
.sds-approve:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 600px) {
    .sds-overlay {
        padding: 0;
    }

    .sds-modal {
        max-width: none;
        height: 100%;
        border-radius: 0;
    }
}

/* ─── Workspace layout: canvas + docked chat ────────────────────────────────── */

.sds-body {
    flex: 1;
    display: flex;
    min-height: 0; /* lets the two columns scroll instead of the modal */
}

.sds-canvashost {
    flex: 1.4;
    min-width: 0;
    display: flex;
    background: #eef0f4;
}

/* Tapstitch-style tool rail down the left edge of the canvas */
.sds-rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 6px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
}

.sds-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
    padding: 10px 4px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #021A62;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.sds-rail-btn svg {
    width: 22px;
    height: 22px;
}

.sds-rail-btn:hover {
    background: rgba(2, 26, 98, 0.07);
}

.sds-rail-btn-active {
    background: rgba(255, 99, 44, 0.12);
    color: #FF632C;
}

.sds-canvasarea {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.sds-chatcol {
    flex: 1;
    min-width: 340px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-left: 1px solid #e0e0e0;
}

.sds-chatcol .sds-messages,
.sds-chatcol .sds-footer {
    padding-left: 14px;
    padding-right: 14px;
}

/* The placement editor, docked into the canvas column instead of floating */
.sds-editor.sds-editor-embedded {
    position: static;
    inset: auto;
    z-index: auto;
    background: none;
    display: block;
    padding: 16px;
}

.sds-editor.sds-editor-embedded[hidden] {
    display: none;
}

.sds-editor-embedded .sds-editor-panel {
    max-width: 720px;
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    box-shadow: 0 2px 14px rgba(2, 26, 98, 0.08);
}

.sds-editor-embedded .sds-editor-close {
    display: none; /* the canvas is the workspace — nothing to close */
}

.sds-canvas-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Single inner span keeps the sentence in normal inline flow — the flex
   container above centers it as one piece (flex on mixed text/element
   children splits the sentence into separate items and drops the spaces). */
.sds-canvas-hint span {
    display: inline-block;
    max-width: 80%;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #38404f;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(2, 26, 98, 0.10);
}

.sds-canvas-hint[hidden] {
    display: none;
}

/* Stacked workspace on phones: tools across the top, shirt, then chat */
@media (max-width: 860px) {
    .sds-body {
        flex-direction: column;
    }

    .sds-canvashost {
        flex: 0 1 auto;
        max-height: 60vh;
        flex-direction: column;
    }

    .sds-rail {
        flex-direction: row;
        justify-content: space-around;
        padding: 4px 6px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .sds-rail-btn {
        width: auto;
        flex: 1;
        padding: 6px 4px;
    }

    .sds-canvasarea {
        flex: 1;
        min-height: 0;
    }

    .sds-chatcol {
        flex: 1;
        min-width: 0;
        max-width: none;
        min-height: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .sds-editor.sds-editor-embedded {
        padding: 10px;
    }

    /* Keep the shirt on screen: Text controls and the garment color grid
       stay collapsed until their rail tool opens them. */
    .sds-editor-textpanel:not(.sds-panel-open),
    .sds-editor-colors:not(.sds-panel-open) {
        display: none;
    }

    /* When open, colors are one swipeable row instead of a wall of shirts */
    .sds-editor-colors {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─── AI Design rail click: light up the chat ───────────────────────────────── */

.sds-chat-flash {
    animation: sds-chat-flash 1.2s ease-out;
}

@keyframes sds-chat-flash {
    0% { box-shadow: inset 0 0 0 3px rgba(255, 99, 44, 0.9); }
    100% { box-shadow: inset 0 0 0 3px rgba(255, 99, 44, 0); }
}

/* ─── [sofilu_my_designs] account list ──────────────────────────────────────── */

.sds-mydesigns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sds-mydesign {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.sds-mydesign img,
.sds-mydesign-noimg {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f2f3f6;
    flex: none;
}

.sds-mydesign-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF632C;
    font-size: 24px;
}

.sds-mydesign-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sds-mydesign-info strong {
    color: #021A62;
}

.sds-mydesign-info span {
    font-size: 13px;
    color: #555;
}

.sds-mydesign-status {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: #777;
}

.sds-mydesign-status.sds-status-approved { color: #5b841b; }
.sds-mydesign-status.sds-status-ordered { color: #021A62; }

.sds-mydesign-open {
    background: #FF632C;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ─── Text color swatches ───────────────────────────────────────────────────── */

.sds-editor-textswatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.sds-textswatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #d5d7db;
    padding: 0;
    cursor: pointer;
    flex: none;
}

.sds-textswatch-active {
    outline: 2px solid #FF632C;
    outline-offset: 2px;
}

/* ─── Save design (guests) ──────────────────────────────────────────────────── */

.sds-save {
    background: #FF632C;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.sds-save:hover {
    background: #ff7a4d;
    color: #fff;
}

.sds-mydesign-deleteform {
    margin: 0;
    flex: none;
}

.sds-mydesign-delete {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    opacity: 0.45;
}

.sds-mydesign-delete:hover {
    opacity: 1;
}

/* ─── In-studio add to cart (post-approval) ─────────────────────────────────── */

.sds-cartrow[hidden] {
    display: none;
}

.sds-cartrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
}

.sds-cartqty {
    width: 76px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    margin-left: 6px;
}

.sds-addtocart {
    background: #FF632C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.sds-addtocart:hover {
    background: #ff7a4d;
}

/* ── Size/quantity order grid (Web2Ink Buy Now style) ── */
.sds-sizegrid { width: 100%; padding: 10px 14px; }
.sds-sizegrid table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.sds-sizegrid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #e8641b; padding: 4px 8px; border-bottom: 1px solid #eee; }
.sds-sizegrid td { padding: 4px 8px; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.sds-sizegrid .sds-size-name { font-weight: 600; color: #e8641b; width: 30%; }
.sds-sizegrid .sds-size-qty { width: 64px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.sds-sizegrid tfoot td { font-weight: 700; border-top: 2px solid #ddd; border-bottom: none; }
.sds-sizegrid .sds-grid-addtocart { display: block; width: 100%; }
