/* ============================================================
   UCANPACK Custom Design Studio — Redesign Styles
   Class prefix: ucds-
   Upload to: /media/porto/web/css/ucds_redesign.css
   ============================================================ */

/* ---- Reset inside modal ---- */
.custom-design-std-modal .modal-inner-wrap {
    max-width: 1200px;
    width: 96vw;
    border-radius: 14px;
    overflow: visible;
    background: #EDF3FA;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.modal-popup.custom-design-std-modal .modal-inner-wrap {
    height: 95vh !important;
    max-height: 95vh !important;
    background: #fff !important;
}
.custom-design-std-modal .modal-inner-wrap .action-close {
    top: 10px;
    right: 12px;
    z-index: 10;
}
.custom-design-std-modal .modal-inner-wrap .action-close:before {
    font-size: 22px;
    color: #555;
}
.design-popup {
    position: relative;
}
.ucds-modal-close-corner {
    position: absolute;
    top: -12px !important;
    right: -12px !important;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #B8D0E8;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #444;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.ucds-modal-close-corner:hover {
    color: #111;
    border-color: #bfb5a7;
    background: #EDF5FF;
}

/* ============================================================
   Proofing Confirmation Modal
   ============================================================ */
.proofing-modal-popup .modal-inner-wrap {
    max-width: 720px !important;
    min-height: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #F8FBFF 0%, #EAF2FB 100%) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28) !important;
}
.proofing-modal-popup .modal-content {
    padding: 28px 28px 22px !important;
    background: transparent !important;
}
.proofing-modal-popup .modal-header {
    padding: 0 0 12px !important;
    border: 0 !important;
    background: transparent !important;
}
.proofing-modal-popup .modal-title,
.proofing-modal-popup h1,
.proofing-modal-popup h2,
.proofing-modal-popup strong:first-child {
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #0F1E2E !important;
    margin: 0 0 8px !important;
}
.proofing-modal-popup .modal-inner-wrap .action-close {
    top: 14px !important;
    right: 14px !important;
}
.proofing-modal-popup .modal-inner-wrap .action-close:before {
    color: #4A6070 !important;
    font-size: 24px !important;
}
.proofing-modal-popup ul,
.proofing-modal-popup ol {
    margin: 10px 0 0 0 !important;
    padding-left: 24px !important;
}
.proofing-modal-popup li {
    margin-bottom: 14px !important;
    color: #253547 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}
.proofing-modal-popup .modal-footer,
.proofing-modal-popup .actions-toolbar,
.proofing-modal-popup .primary,
.proofing-modal-popup .secondary {
    margin-top: 18px !important;
}
.proofing-modal-popup .actions-toolbar {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.proofing-modal-popup button,
.proofing-modal-popup .action {
    min-height: 44px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}
.proofing-modal-popup .action.primary,
.proofing-modal-popup .action-primary,
.proofing-modal-popup .primary .action,
.proofing-modal-popup .primary button {
    background: linear-gradient(135deg, #2B7EC1 0%, #1a6aad 100%) !important;
    border: none !important;
    color: #fff !important;
}
.proofing-modal-popup .action.secondary,
.proofing-modal-popup .action-secondary,
.proofing-modal-popup .secondary .action,
.proofing-modal-popup .secondary button {
    background: transparent !important;
    border: 1px solid #B8D0E8 !important;
    color: #3D5068 !important;
}
.ucds-inline-alert {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: none;
}
.ucds-inline-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 21, 12, 0.46);
    backdrop-filter: blur(2px);
}
.ucds-inline-alert-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100% - 40px));
    padding: 22px 22px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #F8FBFF 0%, #E8F2FB 100%);
    border: 1px solid #B8D0E8;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    color: #1C2A3A;
}
.ucds-inline-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #B8D0E8;
    border-radius: 999px;
    background: #fff;
    color: #4A6070;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.ucds-inline-alert-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2B7EC1;
    margin-bottom: 10px;
}
.ucds-inline-alert-title {
    font-size: 20px;
    line-height: 1.05;
    font-weight: 800;
    color: #0F1E2E;
    margin: 0 0 10px;
}
.ucds-inline-alert-copy {
    font-size: 15px;
    line-height: 1.5;
    color: #3D5068;
    margin: 0;
}
.ucds-inline-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    margin-top: 18px;
    padding: 11px 18px !important;
    border: none !important;
    border-radius: 999px;
    background: linear-gradient(135deg, #2B7EC1 0%, #1a6aad 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(43, 126, 193, 0.35) !important;
}

/* ============================================================
   MODAL HEADER — Logo + Stepper + Phone
   ============================================================ */
.ucds-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    gap: 12px;
    flex-wrap: wrap;
}

.ucds-header-left {
    flex-shrink: 0;
}
.ucds-logo {
    height: 50px;
    width: auto;
    display: block;
}

.ucds-stepper-copy {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    padding: 0 12px;
}
.ucds-stepper-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    color: #0F1E2E;
    margin: 0;
}
.ucds-stepper-subtitle {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #4A6070;
    margin: 0;
}

/* Stepper */
.ucds-stepper {
    display: flex;
    align-items: stretch;
    gap: 1px;
    flex: 1;
    justify-content: center;
    max-width: 540px;
    border: 1px solid #C4D9EE;
    border-radius: 8px;
    overflow: hidden;
}
.ucds-step-arrow {
    display: none !important;
}
.ucds-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px 10px 20px;
    background: #fff;
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.ucds-step:first-child {
    padding-left: 18px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.ucds-step:last-child {
    padding-right: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
}
.ucds-step-num {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-block;
}
.ucds-step--active {
    background: #d6b15a;
    color: #fff;
}
.ucds-step--done {
    background: #fff;
    color: #4b4b4b;
}

/* Phone link */
.ucds-header-right {
    flex-shrink: 0;
}
.ucds-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fdf3e0;
    border: 1px solid #e8c97a;
    border-radius: 999px;
    color: #8a6a10;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ucds-phone-link:hover {
    background: #faecc8;
    color: #7a5a08;
    text-decoration: none;
}

/* ============================================================
   SUB-HEADER — Product name + Face pills
   ============================================================ */
.ucds-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #fff;
    gap: 12px;
    flex-wrap: wrap;
}
.ucds-subheader-info {
    flex: 1;
    min-width: 0;
}
.ucds-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Face pills in subheader — compact, inline, no divider */
.ucds-subheader-pills {
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}
.ucds-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc !important;
    border-radius: 999px;
    background: #fff !important;
    color: #555 !important;
    cursor: pointer;
    transition: all 0.15s;
    flex: 0 0 auto;
    line-height: 1.2 !important;
    padding: 9px 14px !important;
    min-height: 30px;
    font-size: 13px;
    font-weight: 600;
}
.ucds-top-action:hover {
    background: #EDF3FA;
    border-color: #aaa;
}
.ucds-top-action--reset {
    background: #2B7EC1 !important;
    border-color: #2B7EC1 !important;
    color: #fff !important;
}
.ucds-top-action--reset:hover {
    background: #b78720;
    border-color: #b78720;
    color: #fff;
}
.ucds-step-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.ucds-step-btn:hover {
    background: #EDF3FA;
    border-color: #aaa;
}

/* ============================================================
   LAYOUT — 2-column
   ============================================================ */
.ucds-modal-body {
    padding: 0 !important;
    height: 100%;
}
.ucds-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    min-height: 500px;
    gap: 5px;
}
.ucds-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    border-radius: 5px;
}
.ucds-right-panel {
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    max-height: none;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    padding-right: 5px;
    padding-left: 5px;
}
.ucds-right-panel::-webkit-scrollbar { width: 0; height: 0; }
.ucds-right-panel::-webkit-scrollbar-track { background: transparent; }
.ucds-right-panel::-webkit-scrollbar-thumb { background: #B8D0E8; border-radius: 4px; }

/* ============================================================
   LEFT PANEL — Print tabs (Outside/Inside)
   ============================================================ */
.ucds-print-tabs {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px !important;
    border: 0 !important;
    background: transparent;
    padding: 8px 12px 0;
    margin: 0 0 6px;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100%;
}
.ucds-print-tabs .box-portion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #6e675f !important;
    cursor: pointer;
    border: 1px solid #C4D9EE !important;
    border-radius: 999px !important;
    margin-bottom: 0;
    transition: all 0.15s ease;
    text-transform: uppercase !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(36, 25, 12, 0.04) !important;
    white-space: nowrap;
    width: auto !important;
    max-width: 100%;
    flex: 0 1 auto;
}
.ucds-print-tabs .box-portion:hover {
    color: #49433c;
    border-color: #c8beaf;
    background: #E8F2FB;
}
.ucds-print-tabs .box-portion.active {
    color: #fff !important;
    border-color: #c79d34 !important;
    background: linear-gradient(135deg, #2B7EC1 0%, #1a6aad 100%) !important;
    box-shadow: 0 6px 14px rgba(199, 157, 52, 0.22) !important;
}

/* ============================================================
   LEFT PANEL — 3D Box viewer area
   ============================================================ */
.ucds-left-panel .boxDesign {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ucds-left-panel .outer-box,
.ucds-left-panel .inner-box {
    flex: 1;
}
.ucds-left-panel .outer-box {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ucds-left-panel #outer-box-pan-zoom,
.ucds-left-panel .wrap {
    width: 100%;
    height: 100%;
}
.ucds-left-panel #outer-box-pan-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ucds-left-panel .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ucds-left-panel ._3dbox {
    margin: 0 auto;
    transform-origin: center center;
}
.ucds-face-placeholder {
    position: absolute;
    inset: 9% 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: auto;
    transition: opacity 0.2s ease;
    cursor: pointer;
}
.ucds-face-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.ucds-face-placeholder-box {
    width: 100%;
    height: 100%;
    border: 1.5px dashed rgba(86, 65, 39, 0.26);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(43, 31, 17, 0.72);
    padding: clamp(8px, 2.2vw, 16px);
    background: rgba(255, 250, 242, 0.08);
    overflow: hidden;
}
.ucds-face-placeholder:hover .ucds-face-placeholder-box {
    border-color: rgba(196, 154, 46, 0.46);
    background: rgba(255, 250, 242, 0.14);
}
.ucds-face-placeholder-title {
    font-size: clamp(14px, 2vw, 32px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: clamp(0.01em, 0.1vw, 0.04em);
    text-transform: uppercase;
    max-width: 88%;
    overflow-wrap: break-word;
}
.ucds-face-placeholder-subtitle {
    margin-top: clamp(6px, 1.2vw, 14px);
    font-size: clamp(8px, 0.95vw, 14px);
    line-height: 1.15;
    font-weight: 500;
    max-width: 92%;
    overflow-wrap: anywhere;
}
.ucds-face-placeholder-box.is-compact {
    padding: clamp(6px, 1.4vw, 12px);
}
.ucds-face-placeholder-box.is-compact .ucds-face-placeholder-title {
    font-size: clamp(11px, 1.35vw, 18px);
    line-height: 1;
    max-width: 94%;
}
.ucds-face-placeholder-box.is-compact .ucds-face-placeholder-subtitle {
    margin-top: 4px;
    font-size: clamp(7px, 0.72vw, 10px);
    line-height: 1.05;
    max-width: 96%;
}
.ucds-face-placeholder-box.is-ultra-compact {
    padding: 4px 8px;
}
.ucds-face-placeholder-box.is-ultra-compact .ucds-face-placeholder-title {
    font-size: clamp(10px, 1.05vw, 14px);
    max-width: 96%;
}

.ucds-image-section .add-artwork {
    position: relative;
}
.ucds-upload-hint {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(8px);
    padding: 10px 14px;
    border-radius: 12px;
    background: #0F1E2E;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    z-index: 12;
}
.ucds-upload-hint:after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #0F1E2E;
    transform: translateY(-50%) rotate(45deg);
}
.ucds-upload-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    animation: ucdsUploadHintPulse 1s ease 3;
}
.ucds-upload-img-btn--card.is-pointed {
    border-color: #c79d34 !important;
    box-shadow: 0 0 0 4px rgba(199, 157, 52, 0.16), 0 10px 22px rgba(199, 157, 52, 0.18) !important;
    animation: ucdsUploadPulse 0.85s ease 2;
}
.ucds-upload-img-btn--card.is-pointed-strong {
    border-color: #c79d34 !important;
    background: linear-gradient(180deg, #F8FBFF 0%, #D6E9F8 100%) !important;
    color: #3f3120 !important;
    box-shadow: 0 0 0 6px rgba(199, 157, 52, 0.18), 0 18px 38px rgba(199, 157, 52, 0.28) !important;
    animation: ucdsUploadPulseStrong 1.2s cubic-bezier(.22,.61,.36,1) 3;
}
@keyframes ucdsUploadPulse {
    0% { transform: translateX(0) scale(1); }
    35% { transform: translateX(-4px) scale(1.01); }
    70% { transform: translateX(4px) scale(1.01); }
    100% { transform: translateX(0) scale(1); }
}
@keyframes ucdsUploadPulseStrong {
    0% {
        transform: scale(1);
        background: linear-gradient(180deg, #F8FBFF 0%, #D6E9F8 100%);
        border-color: #c79d34;
        color: #4a3822;
        box-shadow: 0 0 0 0 rgba(199, 157, 52, 0.36), 0 18px 38px rgba(199, 157, 52, 0.18);
    }
    20% {
        transform: scale(1.035);
        background: linear-gradient(180deg, #EBF4FF 0%, #2B7EC1 100%);
        border-color: #c88415;
        color: #2a1c08;
        box-shadow: 0 0 0 10px rgba(199, 157, 52, 0.16), 0 20px 42px rgba(199, 157, 52, 0.22);
    }
    45% {
        transform: scale(1.015);
        background: linear-gradient(180deg, #eef5ff 0%, #7fb0ff 100%);
        border-color: #4a88ea;
        color: #102a5c;
        box-shadow: 0 0 0 10px rgba(74, 136, 234, 0.16), 0 20px 42px rgba(74, 136, 234, 0.24);
    }
    70% {
        transform: scale(1.03);
        background: linear-gradient(180deg, #EBF4FF 0%, #1a6aad 100%);
        border-color: #c88a1d;
        color: #2a1c08;
        box-shadow: 0 0 0 8px rgba(199, 157, 52, 0.14), 0 18px 38px rgba(199, 157, 52, 0.2);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(180deg, #F8FBFF 0%, #D6E9F8 100%);
        border-color: #c79d34;
        color: #4a3822;
        box-shadow: 0 0 0 0 rgba(199, 157, 52, 0), 0 18px 38px rgba(199, 157, 52, 0.16);
    }
}
@keyframes ucdsUploadHintPulse {
    0% { transform: translateY(-50%) translateX(0) scale(1); }
    50% { transform: translateY(-50%) translateX(0) scale(1.04); }
    100% { transform: translateY(-50%) translateX(0) scale(1); }
}

/* ============================================================
   Face Selector Pills (in subheader)
   ============================================================ */
.ucds-face-pills {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}
.ucds-face-pills-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    border: none !important;
}
.ucds-face-pill {
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid #ccc !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #555 !important;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}
.ucds-face-pill:hover {
    background: #EDF3FA !important;
    border-color: #aaa !important;
}
.ucds-face-pill.active {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}
.ucds-rotate-pill {
    padding: 9px 14px !important;
    min-height: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px dashed #b8aea0 !important;
    border-radius: 999px;
    background: #EDF3FA !important;
    color: #6a6258 !important;
    cursor: pointer;
    line-height: 1 !important;
    transition: all 0.15s;
}
.ucds-rotate-pill:hover {
    background: #f1ebe0;
    border-color: #9f9485;
}

/* ============================================================
   LEFT PANEL — Bottom Action Bar
   ============================================================ */
.ucds-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px 16px;
    gap: 8px;
}
.ucds-bottom-note {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 12px;
    text-align: center;
    padding: 10px 14px;
    background: #EBF4FF;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    box-sizing: border-box;
}

/* ============================================================
   RIGHT PANEL — Print-ready top bar
   ============================================================ */
.ucds-rp-topbar {
    display: none;
}
.ucds-print-ready-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}
.ucds-print-ready-badge svg {
    stroke: #16a34a;
    flex-shrink: 0;
}
.ucds-rp-topbar-price .price,
.ucds-rp-topbar-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}
.ucds-order-summary {
    margin: 0 0 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 10px !important;
    width: 100%;
    margin-bottom: 0;
}
.ucds-order-summary .ucds-rp-section-hd {
    margin-bottom: 12px;
}
.ucds-order-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ucds-order-summary .ucds-qty-row {
    margin-bottom: 0;
}
.ucds-order-summary-prices {
    text-align: right;
    flex: 0 0 auto;
}
.ucds-order-summary-total,
.ucds-order-summary-total .price {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1.1;
}
.ucds-order-summary .ucds-per-unit {
    margin-top: 6px;
    margin-left: 0;
    font-size: 13px !important;
    color: #8b8278 !important;
}
.ucds-order-summary-status {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ucds-order-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4a433a;
}
.ucds-order-summary-check {
    color: #7fb287;
    font-size: 18px;
    line-height: 1;
}
.ucds-print-specs {
    margin: 0 0 10px;
    padding: 3px 4px 5px !important;
    border-radius: 14px;
    width: 100%;
    margin-bottom: 0;
}
.ucds-print-specs .ucds-rp-section-hd {
    margin-bottom: 10px;
}
.ucds-print-specs-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 0;
}
.ucds-print-specs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 4px 4px;
}
.ucds-print-specs-item:last-child {
    border-right: none;
}
.ucds-print-specs-icon {
    width: 35px;
    height: 30px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ucds-print-specs-icon svg {
    width: 100%;
    height: 100%;
}
/* --cmyk no longer needs a different size — all icons are equal */
.ucds-print-specs-label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.ucds-print-specs-sublabel {
    font-size: 9px;
    font-weight: 400;
    color: #4A6070;
    text-align: center;
    line-height: 1.35;
}
.ucds-print-specs-sublabel--bold {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

/* ============================================================
   RIGHT PANEL — Sections
   ============================================================ */
.ucds-rp-section {
    padding: 11px 16px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}
.ucds-rp-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ucds-rp-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}
.ucds-title-with-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ucds-info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    outline: none;
}
.ucds-info-tip-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5efe5;
    border: 1px solid #C4D9EE;
    color: #7a6a55;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.ucds-info-tip-content {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(36, 33, 29, 0.96);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 5;
}
.ucds-info-tip:hover .ucds-info-tip-content,
.ucds-info-tip:focus .ucds-info-tip-content {
    opacity: 1;
    visibility: visible;
}
.ucds-trash-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.ucds-trash-btn:hover { color: #d00; background: #fff0f0; }

/* ============================================================
   RIGHT PANEL — Text section
   ============================================================ */
.ucds-text-section .labelContainer {
    margin-bottom: 8px;
}
.ucds-text-section {
    position: relative;
    z-index: 6;
    padding-left: 0;
    padding-right: 0;
}
.ucds-text-section.is-open .ucds-text-toggle {
    position: relative;
    z-index: 27;
}
.ucds-text-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 8px !important;
    border-radius: 10px;
    background: #fff !important;
    color: #2D2D2D !important;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 50px;
    box-shadow: none !important;
}

.ucds-text-toggle-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.ucds-text-toggle-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.ucds-text-toggle-sub {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
}
.ucds-text-toggle-plus {
    display: none;
}
.ucds-text-toggle-icon {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.9;
}
.ucds-text-panel {
    display: none;
    position: absolute;
    top: calc(100% - 14px);
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 20px 16px 10px;
    border: 1px solid #C4D9EE;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(38, 28, 16, 0.18);
    z-index: 25;
    max-height: min(340px, calc(100vh - 260px));
    overflow-y: auto;
    scrollbar-width: thin;
    box-sizing: border-box;
    border: 0;
    top: 50px;
    border-radius: 5px;
    width: 270px;
    left: -120px;
}
.ucds-text-panel .labelContainer,
.ucds-text-panel .styleBox {
    position: relative;
    z-index: 1;
    background: #ffffff;
}
.ucds-text-panel .styleBox {
    padding-bottom: 8px;
}
.ucds-text-panel::-webkit-scrollbar {
    width: 6px;
}
.ucds-text-panel::-webkit-scrollbar-thumb {
    background: #B8D0E8;
    border-radius: 999px;
}
.ucds-text-section .tbx,
.ucds-text-section input.boxtext {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #B8D0E8;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #EDF5FF;
    margin-bottom: 6px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.ucds-text-section .tbx:focus {
    border-color: #2B7EC1;
    outline: none;
    background: #fff;
}
.ucds-addmore {
    font-size: 12px;
    color: #2B7EC1;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    margin-top: 2px;
    margin-bottom: 4px;
}
.ucds-style-row {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.ucds-style-row span {
    flex: 1;
    min-width: 0;
}
.ucds-style-row select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #B8D0E8;
    border-radius: 6px;
    font-size: 12px;
    background: #EDF5FF;
    color: #333;
}
.ucds-color-swatch {
    width: 32px;
    height: 32px;
    border: 1px solid #B8D0E8;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #EDF5FF;
    flex-shrink: 0;
}
.ucds-text-required {
    font-size: 12px;
    color: #2B7EC1;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   RIGHT PANEL — Image section
   ============================================================ */
.ucds-image-section .add-artwork {
    margin-bottom: 0;
    width: 100%;
}
.ucds-upload-img-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s;
}

.ucds-upload-img-btn--card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 8px;
    border: none;
    border-radius: 10px;
    background: #162745 !important;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 50px;
}
.ucds-upload-img-btn--card:hover {
    background: #1a6aad !important;
}
.ucds-upload-img-main {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.ucds-upload-img-icon {
    flex-shrink: 0;
    width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ucds-upload-img-icon svg {
    width: 100%;
    height: 100%;
}
.ucds-upload-img-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ucds-upload-img-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.ucds-upload-img-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    line-height: 1.3;
}
.ucds-upload-img-meta {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.ucds-upload-img-arrow {
    font-size: 24px;
    line-height: 1;
    flex: 0 0 auto;
}
.ucds-format-hint {
    font-size: 12px;
    color: #888;
    margin: 3px 0;
    line-height: 1.4;
}

/* ============================================================
   RIGHT PANEL — Quantity section
   ============================================================ */
.ucds-qty-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
}
.ucds-qty-select-group {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #C4D9EE;
    border-radius: 10px;
    padding: 4px 7px;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: auto;
}
.ucds-qty-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 24px;
    text-align: center;
    flex: 0 0 auto;
}
.ucds-qty-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
    flex-shrink: 0;
}
.ucds-qty-arrows a {
    color: #555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    border: 1px solid #C4D9EE;
    border-radius: 5px;
    background: #fff;
    text-decoration: none !important;
}
.ucds-qty-arrows a:hover { color: #333; background: #f0ebe3; border-color: #bbb; }
.ucds-per-unit {
    font-size: 13px !important;
    color: #555 !important;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}
.ucds-per-unit .price {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
}
.ucds-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
}
.ucds-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2B7EC1;
    flex-shrink: 0;
    margin: 0;
    top: 0;
}

/* ============================================================
   RIGHT PANEL — ADD TO CART (sticky footer)
   ============================================================ */
.ucds-right-panel {
    position: relative;
}
.ucds-cart-section {
    position: sticky;
    bottom: 0;
    z-index: 2;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}
.ucds-cart-section.qty-holder {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
}
.ucds-cart-section .qty-msg {
    margin-top: 8px;
    min-height: 0;
}
.ucds-cart-section .qty-msg:empty {
    display: none;
}
.ucds-cart-trustbar {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #7a746b;
    line-height: 1.35;
    margin: 0;
}
.ucds-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #162745 0%, #162746 100%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 3px 10px rgba(180,130,20,0.35);
    text-align: center;
    height: 50px;
    gap: 10px;
}
.ucds-atc-text {
    display: block;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.ucds-atc-qty {
    
}
.ucds-add-to-cart:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.ucds-add-to-cart:active { transform: translateY(0); }
.ucds-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   RIGHT PANEL — Price footer (hidden — price shown in sticky cart)
   ============================================================ */
.ucds-price-footer {
    display: none;
}

/* ============================================================
   HIDE old elements that are now replaced
   ============================================================ */
/* Old inside/outside print message in left box bottom */

/* Old add-artwork btn (now replaced by ucds-upload-img-btn) */
.ucds-right-panel .btn.large.add-artwork-btn { display: none; }

/* st-error (shipthrifty) */
.ucds-modal-body .st-error { display: none; }
.ucds-modal-body .st-error:not(:empty) { display: block; padding: 8px 16px; background: #fff3cd; color: #856404; font-size: 13px; }

/* ============================================================
   MOBILE — Responsive tweaks
   ============================================================ */
@media (max-width: 767px) {
    .proofing-modal-popup .modal-inner-wrap {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 16px !important;
    }
    .proofing-modal-popup .modal-content {
        padding: 22px 18px 18px !important;
    }
    .proofing-modal-popup .modal-title,
    .proofing-modal-popup h1,
    .proofing-modal-popup h2,
    .proofing-modal-popup strong:first-child {
        font-size: 20px !important;
    }
    .proofing-modal-popup li {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    .ucds-upload-hint {
        top: calc(100% + 8px);
        right: auto;
        left: 0;
        transform: translateY(0) translateY(-6px);
    }
    .ucds-upload-hint:after {
        top: -6px;
        left: 18px;
        right: auto;
        transform: rotate(45deg);
    }
    .ucds-upload-hint.is-visible {
        transform: translateY(0);
    }
    .ucds-inline-alert-card {
        width: min(340px, calc(100% - 28px));
        padding: 18px 18px 16px;
    }
    .ucds-inline-alert-title {
        font-size: 22px;
    }
    .ucds-inline-alert-copy {
        font-size: 14px;
    }
    #popup-modal .design-popup:has(.mobile-3d-warning)::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(22, 16, 8, 0.28);
        z-index: 9998;
    }
    #popup-modal .mobile-3d-warning {
        position: fixed !important;
        left: 50%;
        top: 50%;
        right: auto;
        width: min(320px, calc(100vw - 32px));
        transform: translate(-50%, -50%);
        z-index: 9999;
        margin: 0 !important;
        padding: 18px 40px 18px 16px !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
        background: #fff8de !important;
        border: 1px solid #efd88a !important;
        font-size: 13px !important;
        line-height: 1.45;
        text-align: left;
    }
    #popup-modal .mobile-3d-warning span:last-child {
        top: 10px !important;
        right: 12px !important;
        font-size: 18px !important;
        line-height: 1;
    }
    .custom-design-std-modal .modal-inner-wrap {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .custom-design-std-modal.modal-popup._inner-scroll .modal-inner-wrap,
    .custom-design-std-modal.modal-slide._inner-scroll .modal-inner-wrap {
        min-height: auto !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .custom-design-std-modal .modal-content,
    .custom-design-std-modal .modal-body,
    .custom-design-std-modal.modal-popup._inner-scroll .modal-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .custom-design-std-modal.modal-popup._inner-scroll .modal-content,
    .custom-design-std-modal.modal-slide._inner-scroll .modal-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: none !important;
        -webkit-overflow-scrolling: touch;
    }
    #popup-modal,
    #popup-modal .vertical-alignment-helper,
    #popup-modal .modal-body {
        max-height: none !important;
        height: auto !important;
    }
    .design-popup {
        min-height: max-content;
        padding-bottom: 20px;
    }
    .ucds-modal-header {
        padding: 12px 14px 10px;
        gap: 10px;
    }
    .ucds-header-left {
        order: 1;
    }
    .ucds-header-right {
        order: 2;
        margin-left: auto;
    }
    .ucds-stepper {
        display: none !important;
    }
    .ucds-logo { height: 28px; }
    .ucds-phone-link {
        font-size: 11px;
        padding: 6px 10px;
        gap: 4px;
    }
    .ucds-subheader {
        padding: 10px 14px;
        align-items: flex-start;
        gap: 10px;
    }
    .ucds-subheader-info,
    .ucds-subheader-pills {
        width: 100%;
        flex: 0 0 100%;
    }
    .ucds-product-name {
        font-size: 12px;
        white-space: normal;
        line-height: 1.35;
    }
    .ucds-subheader-pills {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        column-gap: 4px !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px !important;
    }
    .ucds-face-pills-inner {
        justify-content: flex-start;
        flex-wrap: nowrap !important;
    }
    .ucds-face-pill {
        padding: 5px 10px !important;
        font-size: 10px !important;
        min-height: 32px;
    }
    .ucds-top-action,
    .ucds-rotate-pill {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 11px;
        flex: 0 0 auto;
    }
    .ucds-layout {
        display: block !important;
        flex-direction: column !important;
        min-height: 0;
        gap: 0;
    }
    .ucds-left-panel,
    .ucds-right-panel {
        display: block !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 0;
    }
    .ucds-left-panel {
        order: 1;
        border-bottom: 1px solid #C4D9EE;
    }
    .ucds-right-panel {
        order: 2;
        border-left: none;
        border-top: 1px solid #C4D9EE;
        max-height: none;
        overflow: visible !important;
        padding: 12px 14px 14px;
        margin-top: 0;
    }
    .ucds-left-panel .boxDesign {
        gap: 8px;
    }
    .ucds-left-panel .outer-box {
        min-height: 220px;
    }
    .ucds-left-panel .inner-box {
        min-height: 220px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .ucds-left-panel #outer-box-pan-zoom,
    .ucds-left-panel .wrap {
        min-height: 500px;
    }
    .ucds-left-panel .inner-box-container {
        min-width: max-content;
        width: max-content;
        padding: 0 12px 10px;
    }
    .ucds-left-panel #inner-box-pan-zoom {
        min-width: max-content;
        width: max-content !important;
        margin: 0 auto;
        transform-origin: top center;
    }
    .ucds-left-panel ._3dbox {
        transform-origin: center center;
    }
    .ucds-print-tabs {
        padding: 8px 10px 0;
        margin-bottom: 4px;
    }
    .ucds-right-panel > .ucds-rp-section,
    .ucds-cart-section.qty-holder {
        margin-left: 0;
        margin-right: 0;
    }
    .ucds-right-panel .ucds-rp-section {
        flex: 0 0 auto;
        display: block !important;
    }
    .ucds-upload-img-btn--card,
    .ucds-text-toggle,
    .ucds-print-specs,
    .ucds-order-summary {
        width: 100%;
    }
    .ucds-text-section {
        z-index: 1;
    }
    .ucds-text-panel {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        max-height: none;
        overflow: visible;
        margin-top: 10px;
        padding: 14px;
        box-shadow: 0 10px 24px rgba(38, 28, 16, 0.1);
    }
    .ucds-cart-section {
        position: static;
        bottom: auto;
        box-shadow: none;
        background: #fff;
    }
    .ucds-cart-section.qty-holder {
        padding-bottom: 0 !important;
    }
    .ucds-order-summary-top {
        gap: 10px;
    }
    .ucds-order-summary-total,
    .ucds-order-summary-total .price {
        font-size: 20px !important;
    }
    .ucds-add-to-cart {
        font-size: 14px !important;
        padding: 13px 18px !important;
        border-radius: 12px !important;
    }
    .ucds-bottom-bar {
        gap: 4px;
        padding: 10px 14px 14px;
    }
    .ucds-bottom-note {
        font-size: 11px;
        padding: 8px 12px;
    }
    .ucds-subheader-pills::-webkit-scrollbar {
        display: none;
    }
    .zoomMain {
        display: none !important;
    }
    .ucds-modal-body {
        overflow: visible !important;
    }
    body._has-modal .mobile-sticky-btn {
        display: none !important;
    }
    .modal-popup._inner-scroll .modal-content {
        margin-top: 0 !important;
    }
}

/* ============================================================
   BUG FIXES — based on staging review
   ============================================================ */

/* 1. OUTSIDE PRINTING tab — compact single tab, not a full-width banner */
.ucds-print-tabs .box-portion {
    padding: 6px 12px !important;
    font-size: 11px !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
}
.ucds-print-tabs .box-portion span {
    display: block;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}
/* When only one tab exists it still hugs its content */
.ucds-print-tabs {
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Hide old zoom slider — Reset View button in bottom bar replaces it */
/* .ucds-left-panel .zoomMain,
.ucds-left-panel .zoomContainer {
    display: none !important;
} */

/* 3. Face pills — keep compact, don't stretch full width */
.ucds-face-pill {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 5px 14px !important;
    font-size: 11px !important;
}
.ucds-face-pills-inner {
    flex-wrap: wrap;
    justify-content: center;
}

/* 4. Spec lists — force hidden; override old CSS */
.ucds-right-panel ul.acknowledge,
.ucds-right-panel ul.acknowledge.for-outside,
.ucds-right-panel ul.acknowledge.for-inside {
    display: none !important;
}

/* 5. labelContainer — only show first input by default;
      extraTextBox is already hidden via inline style,
      but guard against old CSS overrides */
#extraTextBox {
    display: none;
    padding-bottom: 10px;
}
#extraTextBox.show {
    display: block !important;
}

/* 6. Color swatch — keep it small, square, inline */
.ucds-color-swatch {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #B8D0E8 !important;
    background: none !important;
}





/* 9. Ensure right panel outside/inside msg only shows in image section */
.ucds-image-section .outside-print-msg {
    display: none !important;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    background: #EBF4FF;
    border-radius: 6px;
    border: 1px solid #fed7aa;
}
.ucds-image-section .inside-print-msg {
    display: none;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    background: #EBF4FF;
    border-radius: 6px;
    border: 1px solid #fed7aa;
}

/* 10. Option icons (delete/rotate/trans) — ensure they stay clickable above draggable layer */
.option-icon {
    pointer-events: auto !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

/* 11. Style the styleBox (font/size row) properly */
.ucds-right-panel .styleBox {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.ucds-right-panel .styleBox span {
    flex: 1;
    min-width: 0;
}
.ucds-right-panel .styleBox select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #B8D0E8;
    border-radius: 6px;
    font-size: 12px;
    background: #EDF5FF;
    color: #333;
}

.ucds-text-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ucds-text-input-row .ucds-trash-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 38px;
    justify-content: center;
    border: 1.5px solid #B8D0E8;
    border-radius: 8px;
    background: #EDF5FF;
}
.ucds-text-input-row .tbx,
.ucds-text-input-row input.boxtext {
    margin-bottom: 0;
    flex: 1;
}
.box-portion span {
    height: auto !important;
    padding: 0 !important;
}
.color-blue {
    color: #2B7EC1;
}

.ucds-rp-section-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    position: relative;
    z-index: 3; /* above ucds-cart-section (z-index:2) so qty dropdown never overlaps Upload/AddText */
}

/* ── Quantity dropdown redesign (tape-* classes) ── */
.tape-order-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tape-qty-col {
    flex: 0 0 auto;
    min-width: 160px;
}
.tape-price-col {
    flex: 0 0 auto;
    text-align: right;
}
.tape-qty-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* Dropdown trigger button */
.tape-qty-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid #1C3557;
    padding: 4px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1C3557;
    width: 140px;
    user-select: none;
}
.tape-qty-trigger-val {
    flex: 1;
}
.tape-qty-chevron {
    flex-shrink: 0;
    fill: #1C3557;
}

/* Dropdown menu */
.tape-qty-dropdown-wrapper {
    position: relative;
}
.tape-qty-menu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    min-width: 300px;
    max-height: 320px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #b0bec5 #f5f5f5;
    list-style: none;
    margin: 2px 0 0;
    padding: 4px 0;
    display: none;
}
.tape-qty-menu::-webkit-scrollbar {
    width: 6px;
}
.tape-qty-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 4px 4px 0;
}
.tape-qty-menu::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 4px;
}
.tape-qty-menu::-webkit-scrollbar-thumb:hover {
    background: #78909c;
}
.tape-qty-menu.is-open {
    display: block;
}
.tape-qty-menu.opens-up {
    top: auto;
    bottom: 100%;
    margin: 0 0 2px;
}
.tape-qty-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.tape-qty-option:hover {
    background: #f0f8f8;
}
.tape-qty-option.is-selected {
    background: #e6f4f4;
}
.tape-qty-opt-val {
    flex: 0 0 60px;
    font-weight: 500;
}
.tape-qty-opt-price {
    flex: 0 0 130px;
    color: #333;
    white-space: nowrap;
}
.tape-qty-opt-save {
    flex: 0 0 auto;
    color: #E8671C;
    font-size: 13px;
    white-space: nowrap;
}
.tape-qty-opt-check {
    margin-left: 6px;
    color: #E8671C;
    font-weight: 700;
}

/* Custom quantity input mode */
.tape-qty-mode-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #E8671C;
    text-decoration: none;
}
.tape-qty-mode-link:hover {
    text-decoration: underline;
}
.tape-custom-editor {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #1C3557;
    width: 140px;
    background: transparent;
}
.tape-custom-editor .ucds-qty-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 18px;
    font-weight: 600;
    color: #1C3557;
    padding: 4px 0;
    margin: 0;
    height: auto;
    line-height: 1.2;
    width: 120px;
}

/* Price display */
.tape-unit-price-display {
    font-size: 13px;
    color: #E8671C;
    margin-bottom: 4px;
}
.tape-unit-price-display .offset-price {
    font-size: 22px;
    font-weight: 700;
    color: #E8671C;
}
.tape-per-each {
    font-size: 13px;
    color: #E8671C;
}
.tape-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 13px;
    color: #555;
}
.tape-subtotal-val .price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.tape-subtotal-label {
    white-space: nowrap;
}

/* Design review note below Add to Cart */
.ucds-design-review-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f3f7ff;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
.ucds-design-review-shield-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
}
.ucds-design-review-shield-wrap svg {
    width: 15px;
    height: 15px;
}

/* 3 feature icons row */
.ucds-features-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 4px;
    margin: 0;
}
.ucds-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}
.ucds-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EDF3FA;
    color: #2B7EC1;
    flex-shrink: 0;
}
.ucds-feature-icon svg {
    width: 18px;
    height: 18px;
}
.ucds-feature-item span {
    font-size: 10px;
    font-weight: 600;
    color: #4A6070;
    line-height: 1.3;
}

.ucds-rp-section-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 3;
}
.ucds-rp-section.ucds-image-section {
    flex: 0 0 60%;
}
.ucds-text-section {
    flex: 0 0 40%;
}
.ucds-atc-qty {
    font-size: 12px;
    display: inline-block;
    padding-left: 10px;
    padding-top: 3px;
}

/* ============================================================
   HEADER — product name as subtitle
   ============================================================ */
.ucds-stepper-subtitle.ucds-header-pname {
    font-size: 12px;
    font-weight: 600;
    color: #4A6070;
}

/* ============================================================
   CANVAS TOPBAR — print tabs + face pills on one row
   ============================================================ */
.ucds-canvas-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ucds-canvas-topbar .ucds-print-tabs {
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0;
    margin-top: 10px !important; 
    margin-left: 10px !important;
}
.ucds-canvas-face-pills {
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    margin-left: auto;
}
.ucds-canvas-face-pills .ucds-face-pills-inner {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
}
.zoomMain {
    bottom: -175px;
}
@media (max-width: 767px) {
    .ucds-canvas-topbar {
        padding: 4px 6px 0;
        gap: 4px;
        flex-wrap: wrap;
    }
    .ucds-canvas-face-pills {
        margin-left: auto;
    }
    .left-box-bottom {
        display: none !important;
    }
}

.boxDesign {
    border: 1px solid #ccc;
}
.ucds-canvas-face-pills {
    margin-top: 10px;
    margin-right: 10px;
}
.left-box-bottom {
    position: absolute;
    bottom: 0;
    text-align: center;
    left: 20%;
}