/* ===============================
   XS JAKO-LIKE CONFIGURATOR SHELL
   =============================== */

.xs-jako-app {
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 32px) !important;
    min-height: 720px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
    overflow: hidden !important;
    position: relative !important;
    border: 0 !important;
}

/* Main 3-column area */
.xs-jako-body {
    display: grid !important;
    grid-template-columns: 88px 455px minmax(0, 1fr) !important;
    height: calc(100% - 88px) !important;
    min-height: 610px !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* ===============================
   LEFT VERTICAL MENU
   =============================== */

.xs-left-menu {
    background: #ffffff !important;
    border-right: 1px solid #dcdcdc !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    position: relative !important;
}

.xs-left-menu-item {
    width: 100% !important;
    height: 75px !important;
    min-height: 75px !important;
    border: 0 !important;
    border-bottom: 1px solid #cfcfcf !important;
    background: #ffffff !important;
    color: #b9b9b9 !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 8px 4px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.xs-left-menu-item.active {
    color: #008fcf !important;
    border-bottom: 2px solid #008fcf !important;
}

.xs-menu-icon {
    display: block !important;
    font-size: 27px !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
    font-weight: 400 !important;
}

/* ===============================
   MIDDLE OPTIONS PANEL
   =============================== */

.xs-options-panel {
    background: #ffffff !important;
    border-right: 1px solid #dcdcdc !important;
    position: relative !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 34px 38px 110px !important;
}

.xs-panel-inner {
    display: none !important;
}

.xs-panel-inner.active {
    display: block !important;
}

.xs-panel-inner h2 {
    margin: 0 0 6px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.xs-panel-inner p {
    margin: 0 0 20px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #4b4b4b !important;
}

.xs-option-list {
    border-top: 1px solid #e7e7e7 !important;
}

.xs-jako-row {
    width: 100% !important;
    min-height: 57px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 45px 18px !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e7e7e7 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    padding: 9px 0 !important;
    text-align: left !important;
    color: #000000 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.xs-jako-row strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.xs-jako-row span {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}

.xs-chevron {
    font-size: 34px !important;
    color: #555555 !important;
    line-height: 1 !important;
}

.xs-thumb,
.xs-design-mini {
    width: 44px !important;
    height: 34px !important;
    display: block !important;
    border: 1px solid #dddddd !important;
    background: #f5f5f5 !important;
    position: relative !important;
}

.xs-thumb::after {
    content: "" !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    right: 2px !important;
    top: 2px !important;
    border-radius: 50% !important;
    background: #008fcf !important;
}

.xs-thumb-collar {
    background: linear-gradient(160deg, #fff 0%, #fff 45%, #bfc2c4 46%, #e5e5e5 100%) !important;
}

.xs-thumb-shirt {
    background: linear-gradient(130deg, #ddd 0%, #f7f7f7 50%, #bfc2c4 100%) !important;
}

.xs-thumb-sleeve {
    background: linear-gradient(90deg, #cfcfcf, #ffffff) !important;
}

.xs-thumb-cuff {
    background: linear-gradient(140deg, #eeeeee 0%, #bbbbbb 100%) !important;
}

.xs-thumb-fabric {
    background: radial-gradient(circle, #ffffff, #d2d2d2) !important;
}

.xs-design-solid {
    background: #169fc4 !important;
}

.xs-design-side {
    background: linear-gradient(90deg, #169fc4 0%, #169fc4 65%, #ffffff 65%, #ffffff 100%) !important;
}

.xs-design-diagonal {
    background: linear-gradient(135deg, #169fc4 0%, #169fc4 50%, #ffffff 51%, #ffffff 58%, #111111 59%, #111111 100%) !important;
}

.xs-design-lines {
    background: repeating-linear-gradient(45deg, #169fc4 0 7px, #ffffff 7px 10px) !important;
}

.xs-panel-actions {
    position: absolute !important;
    left: 38px !important;
    right: 38px !important;
    bottom: 55px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.xs-back-btn,
.xs-next-btn {
    border: 0 !important;
    cursor: pointer !important;
    min-width: 99px !important;
    height: 48px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.xs-back-btn {
    background: #fafafa !important;
    color: #333333 !important;
}

.xs-next-btn {
    background: #008fcf !important;
    color: #ffffff !important;
}

/* Colour panel */
.xs-colour-block {
    margin: 20px 0 28px !important;
}

.xs-colour-block h4 {
    margin: 0 0 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.xs-color-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.xs-color-dot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 2px solid #d5d5d5 !important;
    background: var(--c) !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.xs-color-dot.active {
    outline: 2px solid #008fcf !important;
    outline-offset: 3px !important;
}

.xs-upload-box,
.xs-text-input {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #dcdcdc !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    border-radius: 0 !important;
}

.xs-upload-box {
    cursor: pointer !important;
    background: #008fcf !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ===============================
   RIGHT VIEW AREA
   =============================== */

.xs-view-area {
    background: #f2f2f2 !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

.xs-brand-area {
    position: absolute !important;
    top: 28px !important;
    left: 28px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 5 !important;
    color: #008fcf !important;
    font-weight: 800 !important;
}

.xs-brand-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 3px solid #008fcf !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
}

.xs-brand-text {
    font-size: 28px !important;
    letter-spacing: 1px !important;
    color: #008fcf !important;
}

.xs-model-stage {
    position: absolute !important;
    inset: 0 !important;
}

.xs-3d-viewer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background: transparent !important;
}

.xs-3d-viewer canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.xs-3d-loading {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #222222 !important;
    font-size: 15px !important;
    z-index: 3 !important;
}

.xs-ring {
    position: absolute !important;
    width: 620px !important;
    height: 150px !important;
    border: 4px solid rgba(150, 150, 150, 0.22) !important;
    border-radius: 50% !important;
    left: 50% !important;
    top: 70% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

.xs-view-control-strip {
    position: absolute !important;
    left: 50% !important;
    bottom: 88px !important;
    transform: translateX(-50%) !important;
    height: 42px !important;
    min-width: 170px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    z-index: 4 !important;
}

.xs-view-control-strip button {
    border: 0 !important;
    background: transparent !important;
    color: #c5c5c5 !important;
    font-size: 37px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.xs-view-control-strip .xs-zoom-btn {
    width: 25px !important;
    height: 25px !important;
    border: 2px solid #c5c5c5 !important;
    border-radius: 50% !important;
    font-size: 19px !important;
    line-height: 18px !important;
    color: #c5c5c5 !important;
}

.xs-front-btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 27px !important;
    transform: translateX(-50%) !important;
    width: 200px !important;
    height: 41px !important;
    border: 0 !important;
    background: #008fcf !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    z-index: 4 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ===============================
   BOTTOM BAR
   =============================== */

.xs-bottom-bar {
    height: 88px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.xs-bottom-left {
    display: flex !important;
    gap: 28px !important;
    align-items: center !important;
}

.xs-bottom-icon {
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #000000 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.xs-bottom-icon span {
    display: block !important;
    font-size: 28px !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

.xs-bottom-right {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.xs-check-size-btn {
    height: 50px !important;
    padding: 0 22px !important;
    border: 1px solid #008fcf !important;
    background: #ffffff !important;
    color: #008fcf !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.xs-price {
    font-size: 15px !important;
    color: #000000 !important;
    white-space: nowrap !important;
}

.xs-price strong {
    font-size: 17px !important;
}

.xs-cart-btn {
    height: 50px !important;
    min-width: 220px !important;
    border: 0 !important;
    background: #008fcf !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1100px) {
    .xs-jako-body {
        grid-template-columns: 82px 390px minmax(0, 1fr) !important;
    }

    .xs-brand-text {
        font-size: 22px !important;
    }

    .xs-ring {
        width: 480px !important;
    }
}

@media (max-width: 900px) {
    .xs-jako-app {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .xs-jako-body {
        grid-template-columns: 75px 1fr !important;
        height: auto !important;
    }

    .xs-view-area {
        grid-column: 1 / -1 !important;
        height: 520px !important;
    }

    .xs-options-panel {
        min-height: 560px !important;
    }

    .xs-bottom-bar {
        height: auto !important;
        padding: 15px !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .xs-bottom-right {
        width: 100% !important;
        flex-direction: column !important;
    }

    .xs-check-size-btn,
    .xs-cart-btn {
        width: 100% !important;
    }
}
.xs-choice-panel {
    background: #f8f8f8 !important;
    border-bottom: 1px solid #e7e7e7 !important;
    padding: 12px 0 14px !important;
}

.xs-choice-item {
    width: 100% !important;
    min-height: 50px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e2e2 !important;
    background: transparent !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 8px !important;
    cursor: pointer !important;
    text-align: left !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.xs-choice-item:last-child {
    border-bottom: 0 !important;
}

.xs-choice-item:hover,
.xs-choice-item.active {
    background: #ffffff !important;
}

.xs-choice-thumb {
    width: 42px !important;
    height: 34px !important;
    border: 1px solid #d8d8d8 !important;
    background: linear-gradient(135deg, #ffffff, #d6d6d6) !important;
}

.xs-choice-text strong {
    display: block !important;
    font-size: 14px !important;
    color: #000 !important;
    margin-bottom: 2px !important;
}

.xs-choice-text small {
    display: block !important;
    font-size: 12px !important;
    color: #666 !important;
}

.xs-choice-check {
    font-size: 18px !important;
    color: #008fcf !important;
    opacity: 0 !important;
}

.xs-choice-item.active .xs-choice-check {
    opacity: 1 !important;
}
.xs-jako-app button:focus,
.xs-jako-app button:active,
.xs-jako-app input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.xs-jako-row:focus,
.xs-choice-item:focus,
.xs-left-menu-item:focus {
    outline: none !important;
    box-shadow: none !important;
}
.xs-colours-panel {
    padding-bottom: 40px !important;
}

.xs-colours-panel .xs-colour-section {
    border-bottom: 1px solid #e3e3e3 !important;
    padding: 0 0 26px !important;
    margin: 0 0 26px !important;
}

.xs-colours-panel .xs-colour-section:last-child {
    border-bottom: 0 !important;
}

.xs-colours-panel h2 {
    text-align: left !important;
    font-size: 16px !important;
    margin: 0 0 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.xs-colour-group {
    margin: 0 0 18px !important;
}

.xs-colour-group h4 {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.xs-colour-group h4 span {
    font-weight: 400 !important;
}

.xs-jako-color-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding-bottom: 10px !important;
}

.xs-jako-colour {
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    background: var(--c) !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.xs-jako-colour.active::before {
    content: "" !important;
    position: absolute !important;
    inset: -10px !important;
    background: #efefef !important;
    z-index: -1 !important;
}

.xs-jako-colour.active::after {
    content: "✓" !important;
    position: absolute !important;
    right: -9px !important;
    bottom: -10px !important;
    color: #008fcf !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.xs-more-colour {
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 0 0 4px !important;
    font-weight: 400 !important;
}

.xs-more-colour span {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-top: -2px !important;
}

.xs-jako-colour:focus,
.xs-more-colour:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* ===============================
   XS PRESENTATION POLISH OVERRIDES
   Added for client demo stability
   =============================== */

html, body {
    overflow-x: hidden !important;
}

body:not(.admin-bar) .xs-jako-app {
    height: 100vh !important;
}

body.admin-bar .xs-jako-app {
    height: calc(100vh - 32px) !important;
}

.xs-jako-app {
    min-height: 650px !important;
    background: #ffffff !important;
}

.xs-jako-body {
    height: calc(100% - 76px) !important;
    min-height: 560px !important;
}

.xs-options-panel {
    padding-top: 30px !important;
    padding-bottom: 92px !important;
}

.xs-panel-inner h2 {
    font-size: 23px !important;
    letter-spacing: -0.2px !important;
}

.xs-panel-inner p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-width: 310px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.xs-jako-row {
    min-height: 56px !important;
    transition: background .18s ease, transform .18s ease !important;
}

.xs-jako-row:hover {
    background: #f8fbfd !important;
}

.xs-left-menu-item {
    transition: color .18s ease, background .18s ease !important;
}

.xs-left-menu-item:hover,
.xs-left-menu-item.active {
    background: #fbfdff !important;
}

.xs-view-area {
    background: radial-gradient(circle at 52% 46%, #ffffff 0%, #f5f5f5 45%, #eeeeee 100%) !important;
}

.xs-brand-area {
    top: 30px !important;
    left: 30px !important;
}

.xs-brand-text {
    font-size: 30px !important;
    letter-spacing: 2px !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.6) !important;
}

.xs-ring {
    width: 660px !important;
    height: 158px !important;
    top: 70% !important;
    border-color: rgba(120, 120, 120, 0.18) !important;
}

.xs-view-control-strip {
    bottom: 86px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(4px) !important;
}

.xs-front-btn {
    bottom: 26px !important;
    background: #008fcf !important;
    letter-spacing: .2px !important;
}

.xs-bottom-bar {
    height: 76px !important;
    padding: 0 22px !important;
    border-top: 1px solid #e5e5e5 !important;
}

.xs-bottom-icon {
    font-weight: 700 !important;
}

.xs-check-size-btn,
.xs-cart-btn {
    height: 50px !important;
}

.xs-cart-btn {
    min-width: 236px !important;
}

/* Hide common floating chat widgets during demo if they overlap the cart button */
.tawk-min-container,
.tawk-button,
#tidio-chat,
.crisp-client,
.woot-widget-bubble,
.intercom-lightweight-app,
.fb_dialog,
body > iframe[title*="chat" i] {
    display: none !important;
}

@media (max-width: 1280px) {
    .xs-jako-body {
        grid-template-columns: 80px 362px minmax(0, 1fr) !important;
    }

    .xs-options-panel {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .xs-panel-actions {
        left: 28px !important;
        right: 28px !important;
    }

    .xs-brand-text {
        font-size: 27px !important;
    }

    .xs-ring {
        width: 600px !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar .xs-jako-app {
        height: calc(100vh - 46px) !important;
    }
}
