/**
 * Kit Factory Customiser Styles
 * Version: 2.0.0
 */

/* ============================================================================
   BODY SCROLL LOCK (when popup is active)
   ============================================================================ */

body.kfc-popup-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Prevent scroll propagation from popup to body */
.kfc-overlay {
    overscroll-behavior: contain;
}

.kfc-popup {
    overscroll-behavior: contain;
}

.kfc-dynamic-panel,
.kfc-page {
    overscroll-behavior: contain;
}

/* ============================================================================
   GLOBAL SCROLLBAR STYLING
   ============================================================================ */

/* Firefox */
.kfc-popup {
    scrollbar-width: thin;
    scrollbar-color: #D1B28C #000; /* thumb track */
}

.kfc-popup * {
    scrollbar-width: thin;
    scrollbar-color: #D1B28C #000; /* thumb track */
}

/* Webkit (Chrome, Safari, Edge) */
.kfc-popup ::-webkit-scrollbar {
    width: 16px; /* Wider to create space */
    height: 16px;
}

.kfc-popup ::-webkit-scrollbar-track {
    background: #161616; /* Match sidebar background */
}

.kfc-popup ::-webkit-scrollbar-thumb {
    background: #D1B28C;
    border-radius: 4px;
    border: 4px solid #161616; /* Creates gap using border */
    background-clip: padding-box; /* Ensures border creates visual space */
}

.kfc-popup ::-webkit-scrollbar-thumb:hover {
    background: #C9A573;
    background-clip: padding-box;
}

/* ============================================================================
   OVERLAY & POPUP CONTAINER
   ============================================================================ */

.kfc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kfc-overlay.active {
    opacity: 1;
}

.kfc-popup {
    position: relative;
    width: 100%;
    /* max-width: 1400px; */
    height: 95vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   LEFT SECTION (20% - Sidebar + Dynamic Panel)
   ============================================================================ */

.kfc-left-section {
    width: 30%;
    display: flex;
    flex-direction: row;
    background: #0D0D0D;
    z-index: 2;
    margin: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 514px;
}

/* ============================================================================
   SIDEBAR (88px fixed width)
   ============================================================================ */

.kfc-sidebar {
    /* width: 88px; */
    min-width: 88px;
    background: #0D0D0D;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 24px 0; */
    gap: 0px;
}

.kfc-back-btn {
    width: 100%;
    height: auto;
    padding: 12px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #D1B28C;
    transition: opacity 0.2s;
}


.kfc-back-btn:hover, .kfc-back-btn:focus, .kfc-back-btn:focus-visible {
    opacity: 0.7;
    background: transparent;
}

.kfc-back-btn svg {
    width: 24px;
    aspect-ratio: 1/1;
}

.kfc-back-text {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
    letter-spacing: -0.24px;
}

.kfc-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    padding: 0px;
}

.kfc-option-btn {
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    color: #fff;
    padding: 8px;
}

.kfc-option-btn:hover,
.kfc-option-btn:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

.kfc-option-btn.active {
    background: var(--theme-color-tertiary);
    border-color: var(--theme-color-tertiary);
}

.kfc-option-icon {
    width: 32px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kfc-option-icon svg {
    width: 100%;
    height: 100%;
}

.kfc-option-label {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
    letter-spacing: -0.24px;
}
.kfc-option-btn.active .kfc-option-label {
    color: #161616;
}
.kfc-support-btn {
    width: 100%;
    height: auto;
    padding: 12px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #D1B28C;
    transition: opacity 0.2s;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.kfc-support-btn:hover,
.kfc-support-btn:focus,
.kfc-support-btn:focus-visible {
    opacity: 0.7;
    background: transparent;
}

.kfc-support-btn svg {
    width: 24px;
    aspect-ratio: 1/1;
}

.kfc-support-text {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.24px;
}

/* ============================================================================
   DYNAMIC PANEL (fills remaining 20% width)
   ============================================================================ */

.kfc-dynamic-panel {
    flex: 1;
    background: #0D0D0D;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    position: relative;
}

.drag-bar-container {
    display: none; /* Hidden by default, shown on tablet/mobile */
    padding: 20px 0 30px;
    cursor: pointer;
    width: 100%;
}

.drag-bar {
    width: 48px;
    height: 5px;
    background: #C9CFD6;
    border-radius: 999px;
    margin: 0 auto;
    opacity: .95;
    transition: opacity 0.2s;
    pointer-events: none; /* Let container handle clicks */
}

.drag-bar-container:hover .drag-bar {
    opacity: 1;
}

.kfc-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

/* Tab Selector */
.kfc-tab-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.kfc-tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.kfc-tab.active {
    background: var(--theme-color-tertiary);
    color: #000;
}

/* View Selector */
.kfc-view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.kfc-view-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.kfc-view-btn:hover,
.kfc-view-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.kfc-view-btn.active {
    background: var(--theme-color-tertiary);
    color: #000;
    border-color: var(--theme-color-tertiary);
}

/* Position Selector */
.kfc-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.kfc-position-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.kfc-position-btn:hover:not(:disabled),
.kfc-position-btn:focus-visible:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.kfc-position-btn.active {
    background: var(--theme-color-tertiary);
    color: #000;
    border-color: var(--theme-color-tertiary);
}

.kfc-position-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Toggle Group */
.kfc-toggle-group {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.kfc-toggle-btn {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.kfc-toggle-btn.active {
    background: var(--theme-color-tertiary);
    color: #000;
}

/* Input Area */
.kfc-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Add Placement Button */
.kfc-add-placement-btn {
    margin-top: auto;
    padding: 14px 24px;
    background: var(--theme-color-tertiary);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.kfc-add-placement-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.kfc-add-placement-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================================
   CANVAS SECTION (80%)
   ============================================================================ */

.kfc-canvas-section {
    flex: 1;
    /* width: 80%; */
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Product Info */
.kfc-product-info {
    position: absolute;
    top: 0;
    left: 0;
    padding: 24px 32px;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 10;
    color: #000 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kfc-product-title {
    color: var(--Primary, #000);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 16px */
    letter-spacing: -0.48px;
    text-transform: uppercase;
}

.kfc-product-quantity {
    color: var(--Primary, #000);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 16px */
    letter-spacing: -0.48px;
    text-transform: uppercase;
}

.kfc-product-color {
    color: var(--Primary, #000);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 16px */
    letter-spacing: -0.48px;
    text-transform: uppercase;
}

.kfc-color-swatches {
    display: none;
}

/* Canvas Container */
.kfc-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 48px;
}

.kfc-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    /* max-width: 1100px;
    aspect-ratio: 1; */
}

.kfc-canvas-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.kfc-canvas-view.active {
    opacity: 1;
    pointer-events: auto;
}

.kfc-canvas-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Placement SVG Overlay */
.placement-svg-container,
.kfc-canvas-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    pointer-events: none;
    z-index: 1;
}

.placement-svg-container {
    opacity: 0;
    /* Semi-transparent for visibility */
}

.placement-svg-container svg {
    width: 100%;
    height: 100%;
}

/* Customization Layer */
.customization-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Placement Items */
.placement-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.placement-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.placement-item .player-number,
.placement-item .player-name,
.placement-item .custom-text {
    color: #FFF;
    white-space: nowrap;
}

.placement-item .player-number {
    font-size: 48px;
}

.placement-item .player-name,
.placement-item .custom-text {
    font-size: 16px;
}

/* Navigation Arrows */
.kfc-nav-arrow{
    position: absolute;
    bottom: 0%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    /* background: rgba(0, 0, 0, 0.5); */
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
    background-color: transparent;
}

.kfc-nav-arrow:hover, 
.kfc-nav-arrow:active, 
.kfc-nav-arrow:focus, 
.kfc-nav-arrow:focus-visible {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
.kfc-nav-arrow:hover svg path {
    fill: #161616;
}

.kfc-nav-arrow svg {
    width: 20px;
    height: 20px;
}

.kfc-nav-prev {
    left: 50%;
    transform: translateX(calc(-50% - 24px));
}

.kfc-nav-next {
    right: 50%;
    transform: translateX(calc(50% + 24px));
}

.kfc-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--theme-color-tertiary);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.kfc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================================================
   CLOSE BUTTON
   ============================================================================ */

.kfc-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
    z-index: 10;
    padding: 0px;
}

.kfc-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ============================================================================
   PAGE-BASED FLOW STYLES
   ============================================================================ */

/* Page Container */
.kfc-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 32px;
    overflow-y: auto;
    background: #161616;

    /* hide scrollbar width */
    /* scrollbar-width: none; 
    -ms-overflow-style: none; */

}

/* Item Selector (for multi-item products) */
.kfc-item-selector {
    display: flex;
    gap: 0px;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kfc-item-tab {
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0px;
    background: #161616;
    display: flex;
    padding: 8px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    height: 60px;
    outline: none;
}

.kfc-item-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.kfc-item-tab.active {
    border: 1px solid #D1B28C;
    color: #FFF;
    background: rgba(255, 255, 255, 0.08);
}

/* Material Type Selector */
.kfc-material-selector {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.kfc-material-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 12px 12px 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.kfc-material-tab:hover, 
.kfc-material-tab:focus-visible, 
.kfc-material-tab:focus {
    background: transparent;
    outline: none;
}

.kfc-material-label {
    color: rgba(255, 255, 255, 0.5);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.32px;
    transition: color 0.2s;
}

.kfc-material-tab.active .kfc-material-label {
    color: #FFF;
}

.kfc-material-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #D1B28C;
    opacity: 0;
    transition: opacity 0.2s;
}

.kfc-material-tab.active .kfc-material-underline {
    opacity: 1;
}

.kfc-material-tab:hover .kfc-material-label {
    color: #FFF;
}

.view-position-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Embroidered/Printed Tabs */
.badge-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.badge-type-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.badge-type-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.badge-type-tab:focus-visible {
    outline: 2px solid #D1B28C;
    outline-offset: -2px;
}

.badge-type-tab.active {
    color: #FFF;
    border-bottom-color: #D1B28C;
}

/* View Sections */
.view-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hide view sections that have no position buttons */
.view-section:not(:has(.position-btn-wrapper)) {
    display: none;
}

.view-title {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 16px */
    letter-spacing: -0.32px;
    text-align: start;
}

/* Position Grid */
.position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Position Button Wrapper */
.position-btn-wrapper {
    position: relative;
    width: 100%;
}

/* Position Buttons */
.position-btn {
    display: flex;
    width: 100%;
    height: 88px;
    padding: 8px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;

    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
    letter-spacing: -0.24px;
}

.position-btn:hover {
    border: 1px solid #D1B28C;
    background: rgba(255, 255, 255, 0.15);
}

.position-btn:focus-visible {
    outline: 2px solid #D1B28C;
    outline-offset: 2px;
}

.position-btn.active {
    border: 1px solid #D1B28C;
    background: rgba(209, 178, 140, 0.1);
}

.position-btn.active:hover {
    border: 1px solid #D1B28C;
    background: rgba(209, 178, 140, 0.15);
}

/* Reset button on position button */
.position-reset-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 4px;
    color: #FF3B30;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Show reset button only when position is used (has overlay) */
.position-btn-wrapper.has-customization .position-reset-btn {
    display: flex;
    opacity: 0;
}

.position-btn-wrapper.has-customization:hover .position-reset-btn {
    opacity: 1;
}

.position-reset-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
    transform: scale(1.1);
}

.position-reset-btn svg {
    width: 14px;
    height: 14px;
}

/* Position overlay for used positions */
.position-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

.position-overlay>span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 0 8px;
}

/* Clickable option link in overlay */
.position-overlay .option-link {
    color: #C9A961;
    font-weight: 700;
    cursor: pointer !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
    pointer-events: all;
}

.position-overlay .option-link:hover {
    color: #D1B28C;
    text-decoration-thickness: 2px;
}

/* Editing overlay - green */
.position-overlay.position-editing {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.4);
}

.position-overlay.position-editing span {
    color: #34C759;
    font-weight: 700;
}

/* Position used in current view - still clickable */
.position-btn.position-used {
    opacity: 0.7;
}

.position-btn.position-used:hover {
    opacity: 0.85;
}

/* Position used in different view - disabled */
.position-btn.position-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.position-btn.position-disabled .position-overlay {
    pointer-events: all;
    cursor: default;
}

.position-btn.position-disabled .position-overlay>span {
    color: rgba(255, 255, 255, 0.8);
}

/* Enable pointer events on option link */
.position-overlay .option-link {
    pointer-events: all;
}

.position-icon {
    width: 48px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Add Placement / Next Button */
.add-placement-btn,
.next-btn {
    display: flex;
    height: 40px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 99px;
    background: #D1B28C;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    outline: none;
    width: 100%;
}

.add-placement-btn:hover,
.next-btn:hover {
    background: #E5C89D;
    transform: translateY(-1px);
}

.add-placement-btn:focus-visible,
.next-btn:focus-visible {
    outline: 2px solid #FFF;
    outline-offset: 2px;
}

.add-placement-btn:active,
.next-btn:active {
    transform: translateY(0);
}

/* Page Subtitle */
.page-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 20px !important;
}

/* Upload Dropzone */
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    border: 2px dashed #4498F9;
    border-radius: 8px;
    background: #2D2D2D;
}

.dropzone-text {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
    letter-spacing: -0.24px;
}

.upload-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    color: #FFF;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.20);
}

.upload-trigger-btn:hover,
.upload-trigger-btn:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.upload-trigger-btn:focus-visible {
    outline: 2px solid #D1B28C;
    background: rgba(255, 255, 255, 0.15);
    outline-offset: 2px;
}

.upload-trigger-btn svg {
    /* stroke: currentColor; */
}

/* Uploaded Images Grid */
.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.uploaded-image-item {
    display: flex;
    height: 88px;
    padding: 8px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.uploaded-image-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.uploaded-image-item:focus-visible {
    outline: 2px solid #D1B28C;
    outline-offset: 2px;
}

.uploaded-image-item.active {
    border: 1px solid #D1B28C;
    background: rgba(209, 178, 140, 0.1);
}

.uploaded-image-item.active:hover {
    background: rgba(209, 178, 140, 0.15);
}

.uploaded-image-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Upload Mode Sections */
.upload-mode-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.input-mode-section{
    flex: 1;
}
/* Variation Accordion */
.variation-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.variation-item {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    /* overflow: hidden; */
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.variation-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.variation-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.variation-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.variation-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.variation-toggle svg {
    transition: transform 0.2s;
}

.variation-content {
    padding: 8px 16px 16px 16px;
}

.variation-customizations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Customization Section */
.customization-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #D1B28C;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Customization Grid */
.customization-grid {
    display: grid;
    gap: 12px;
}

.customization-grid.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.customization-grid.grid-1col {
    grid-template-columns: 1fr;
}

/* Grid Item */
.grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 6px;
    border: none;
    background: inherit;
}

.grid-item-position {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-item-image {
    width: 100%;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.grid-item-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.grid-item-input:focus {
    border-color: #D1B28C;
    background: rgba(255, 255, 255, 0.08);
}

.grid-item-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Grid Item Input Area (for adding new) */
.grid-item-input-area {
    background: inherit;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Variation Image Preview */
.variation-image-preview {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.variation-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-trigger-btn:hover,
.upload-trigger-btn:focus-visible {
    background: rgba(68, 152, 249, 0.1);
    border-color: #4498F9;
}

.upload-trigger-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.upload-trigger-btn-small {
    display: flex;
    height: 32px;
    padding: 4px 16px 4px 6px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px dashed #4498F9;
    background: rgba(0, 0, 0, 0.20);
    color: #4498F9;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.upload-trigger-btn-small:hover,
.upload-trigger-btn-small:focus,
.upload-trigger-btn-small:focus-visible {
    background: rgba(68, 152, 249, 0.1);
    border-color: #4498F9;
}

/* Editable Grid Item Structure */
.input-area-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Saved Values */
.saved-image-value {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.saved-text-value {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    padding: 8px 0;
}

/* Button/Control Containers - ROW layout */
.input-area-buttons,
.input-area-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

/* Text Input */
.text-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.text-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4498F9;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Update/Add Text Buttons */
.update-text-btn,
.add-text-btn {
    padding: 8px 16px;
    background: #4498F9;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.update-text-btn:hover,
.add-text-btn:hover {
    background: #3a88e0;
}

.update-text-btn:active,
.add-text-btn:active {
    transform: scale(0.98);
}

.upload-trigger-btn-small:focus-visible {
    outline: 2px solid #4498F9;
    outline-offset: 2px;
}

.upload-trigger-btn-small svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.no-variations {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Old Upload Styles (Keep for backwards compatibility) */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 20px 0;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #FFF;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.upload-preview {
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.upload-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Input Page */
.input-area {
    margin: 20px 0;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFF;
    font-size: 14px;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.text-input:focus {
    outline: none;
    border-color: #D1B28C;
}

/* Page Title */
.page-title {
    color: #FFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px !important;
}

/* Toggle Container (New Design) */
.kfc-toggle-container {
    display: flex;
    padding: 4px;
    align-items: center;
    border-radius: 99px;
    background: #2D2D2D;
    margin-bottom: 20px;
    position: relative;
}

/* Sliding Background Indicator */
.kfc-toggle-container::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #D1B28C;
    border-radius: 99px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

/* Slide to right when second button is active */
.kfc-toggle-container.individual-active::before {
    transform: translateX(100%);
}

.kfc-toggle-cell {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border: none;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
    position: relative;
    z-index: 1;
}

.kfc-toggle-cell:hover {
    color: rgba(255, 255, 255, 0.8);
}

.kfc-toggle-cell:focus-visible {
    outline: 2px solid #D1B28C;
    outline-offset: 2px;
}

.kfc-toggle-cell.active {
    color: #000;
    background: transparent !important;
}

/* Old Toggle Group (Keep for backwards compatibility) */
.kfc-toggle-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.kfc-toggle-btn {
    flex: 1;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.kfc-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.kfc-toggle-btn.active {
    background: #D1B28C;
    border-color: #D1B28C;
    color: #000;
}

/* ============================================================================
   SUMMARY PAGE
   ============================================================================ */

/* Summary Variations Container */
.summary-variations-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Summary Item Type Header */
.summary-item-type-header {
    margin: 16px 0 12px 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* .summary-item-type-header:first-child {
    margin-top: 0;
} */

.summary-item-type-header h3 {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item-type-view {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.summary-item-type-view:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.summary-item-type-view.active {
    background: rgba(209, 178, 140, 0.2);
    border-color: #D1B28C;
    color: #D1B28C;
}

.summary-item-type-view .view-icon {
    width: 20px;
    height: 20px;
}

.summary-item-type-view .view-on {
    display: none;
}

.summary-item-type-view.active .view-off {
    display: none;
}

.summary-item-type-view.active .view-on {
    display: block;
}

/* Summary Variation Item */
.summary-variation-item {
    /* background: rgba(255, 255, 255, 0.05); */
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
    overflow: visible;
    position: relative;
}

.summary-variation-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.summary-variation-view,
.summary-variation-remove {
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.24px;
    padding: 8px 16px;
    /* width: 100%; */
}

.summary-variation-view {
    background: #ffffff00;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgb(255 255 255);
    padding: 8px;
    width: auto;
}

/* View icon toggle logic */
.summary-variation-view .view-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.summary-variation-view .view-on {
    display: none;
}

.summary-variation-view .view-off {
    display: block;
}

.summary-variation-view.active .view-on {
    display: block;
}

.summary-variation-view.active .view-off {
    display: none;
}

.summary-variation-view:hover,
.summary-variation-view.active {
    background: #D1B28C;
    border-color: #D1B28C;
    color: rgba(255, 255, 255, 0.9);
}

.summary-variation-remove {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    padding: 8px;
    width: auto;
}

.summary-variation-remove svg {
    display: block;
    width: 16px;
    height: 16px;
}

.summary-variation-remove:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
}

.summary-variation-item.open {
    border-color: rgba(209, 178, 140, 0.3);
}

.summary-variation-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.summary-variation-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.summary-variation-item.open .summary-variation-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.summary-variation-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.summary-size-label {
    font-size: 16px;
    font-weight: 600;
    color: #FFF;
}

.summary-variation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.summary-variation-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.summary-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.summary-price-row .price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.summary-price-row .price-value {
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
}

.summary-variation-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    align-self: flex-start;
    padding: 0;
}

.summary-variation-toggle:hover,
.summary-variation-toggle:focus
.summary-variation-toggle:focus-visible{
    background-color: transparent !important;
    color: #D1B28C;
}

.summary-variation-item.open .summary-variation-toggle {
    background-color: transparent !important;
    transform: rotate(180deg);
}

/* Summary Customization List */
.summary-customization-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 0px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Summary Sections */
.summary-section:first-of-type {
    margin-top: 12px;
}
.summary-section:last-of-type {
    margin-bottom: 12px;
}

/* Summary Grids */
.summary-grid {
    display: grid;
    gap: 8px;
}

.summary-grid-1 {
    grid-template-columns: 1fr;
}

.summary-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.summary-grid-4 {
    grid-template-columns: repeat(3, 1fr);
}

/* Summary Items */
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.summary-item-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-item-header .right{
    display: flex;
    column-gap: 0px;
}
.summary-item-header .summary-edit-btn, 
.summary-item-header .summary-delete-btn{
    background-color: transparent;
    border: none;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-align: start;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.24px;
    padding: 4px;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
    cursor: pointer;
}
.summary-item-header .summary-edit-btn svg, 
.summary-item-header .summary-delete-btn svg{
    width: 16px;
    height: 16px;
}
.summary-item-header .summary-edit-btn:hover{
    opacity: 0.7;
}
.summary-item-header .summary-delete-btn:hover{
    opacity: 0.7;
}
.summary-item-header .summary-edit-btn > img, 
.summary-item-header .summary-delete-btn > img{
    width: 12px;
    height: 12px;
}
.summary-label {
    color: #FFF;
    text-align: start;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.24px;
}

.summary-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #FFF;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

.summary-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.summary-image-preview {
    width: 100%;
    aspect-ratio: 1;
    max-width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.364px dashed rgba(255, 255, 255, 0.10);
    border-radius: 1.455px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.summary-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Summary Actions */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-disclaimer {
    padding: 12px 16px;
    /* background: rgb(184 175 75 / 47%); */
    border-radius: 8px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 400px;
    z-index: 999999;
}

/* Mobile disclaimer in summary - hidden on desktop, shown on tablet/mobile */
.summary-disclaimer-mobile {
    display: none;
    position: static;
    max-width: none;
    color: #FFF !important;
    /* background: rgb(255 255 255 / 90%); */
}

.summary-disclaimer.summary-disclaimer-mobile p {
    color: #FFF;
}

@media (max-width: 1024px) {
    .summary-disclaimer-mobile {
        display: block;
    }
    
    /* Hide the canvas disclaimer on tablet/mobile */
    .kfc-canvas-section .summary-disclaimer:not(.summary-disclaimer-mobile) {
        display: none;
    }
}

.summary-disclaimer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgb(0 0 0);
    font-weight: 400;
    text-align: left;
}

.summary-totals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total-row .total-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.summary-total-row .total-value {
    font-size: 15px;
    font-weight: 600;
    color: #FFF;
}

.summary-total-row.grand-total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid rgba(209, 178, 140, 0.3);
}

.summary-total-row.grand-total .total-label {
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
}

.summary-total-row.grand-total .total-value {
    font-size: 20px;
    font-weight: 700;
    color: #D1B28C;
}

.summary-actions .add-to-cart-btn {
    width: 100%;
    background: #D1B28C !important;
    border: none;
    color: #000 !important;
}

.summary-actions .add-to-cart-btn:hover:not(:disabled) {
    background: #E5C89D !important;
    color: #000 !important;
    transform: translateY(-1px);
}

.summary-actions .add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Summary Empty State */
.summary-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.summary-empty-state p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.summary-empty-state p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Summary No Customizations Message */
.summary-no-customizations {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.5);
}

.summary-no-customizations p {
    margin: 0;
    font-size: 13px;
    font-style: italic;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1366px) {

    /* Laptop */
    .kfc-left-section {
        width: 40%;
    }
    .kfc-product-info{
        max-width: 400px;
    }
    .kfc-product-image-container{
        max-width: 125px !important; 
    }
    .summary-disclaimer{
        padding-bottom: 14px !important;
    }
    .summary-disclaimer p {
        font-size: 11px !important;
    }
}

@media (max-width: 1200px) {
    .kfc-popup {
        max-width: 95%;
    }
}

@media (max-width: 1024px) {

    .kfc-nav-arrow {
        top: calc(100px + 0%);
    }

    /* Tablet - Use dvh for dynamic viewport height */
    .kfc-overlay {
        height: 100dvh;
    }
    
    .kfc-option-btn{
        min-width: 80px;
    }
    .kfc-popup {
        height: 95dvh;
    }

    .kfc-options {
        gap: 16px;
    }
    .kfc-back-btn {
        min-width: 64px;
    }

    .kfc-popup {
        flex-direction: column-reverse;
    }

    .kfc-left-section {
        flex-direction: column-reverse;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
        max-width: none;
        border-radius: 0;
    }

    .kfc-sidebar {
        flex-direction: row;
        width: 100%;
    }

    .kfc-options {
        flex-direction: row;
        width: auto;
    }

    .kfc-dynamic-panel {
        max-height: none;
        overflow-y: visible;
        gap: 0;
    }
    
    /* Show drag bar container on tablet/mobile */
    .drag-bar-container {
        display: block !important;
    }
    
    /* Panel height states - Use dvh for dynamic viewport */
    .kfc-page {
        height: 8dvh;
        padding: 12px 16px;
        transition: height 0.3s ease;
        border-radius: 8px 8px 0 0;
    }
    
    .kfc-page.expanded {
        height: 80dvh;
    }

    .kfc-popup {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .kfc-sidebar {
        overflow-x: scroll;
    }

    .kfc-options {
        padding: 0;
    }
    
    .kfc-support-btn {
        position: static;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        min-width: 80px;
    }

    .kfc-canvas-section {
        width: 100%;
    }

    .kfc-canvas-container {
        padding: 20px 12px;
    }
}

/* Typography Accordion */
.typography-accordion {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
    flex: 1;
}

.typography-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.typography-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.typography-header span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.typography-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.typography-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.typography-toggle svg {
    transition: transform 0.2s;
}

.typography-content {
    padding: 8px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.typography-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.typography-field label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.typography-select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.typography-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.typography-select:focus {
    outline: none;
    border-color: #D1B28C;
    background: rgba(255, 255, 255, 0.08);
}

/* Font Picker */
.font-picker {
    position: relative;
    width: 100%;
}

.font-picker-selected {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-picker-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.font-picker-selected::after {
    content: '▼';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.font-picker.open .font-picker-selected::after {
    transform: rotate(180deg);
}

.font-picker-selected:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.font-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.font-picker.open .font-picker-dropdown {
    display: block;
}

.font-picker-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    background: transparent;
}

.font-picker-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.font-picker-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.font-picker-option.selected {
    background: rgba(209, 178, 140, 0.2);
    border: 1px solid rgba(209, 178, 140, 0.3);
}

.font-picker-option.selected .font-picker-name {
    color: #D1B28C;
    font-weight: 600;
}

/* Color Swatch Picker */
.color-swatch-picker {
    position: relative;
    width: 100%;
}

.color-swatch-selected {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch-selected::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--swatch-color, #000);
    flex-shrink: 0;
}

.color-swatch-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.color-swatch-selected::after {
    content: '▼';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.color-swatch-picker.open .color-swatch-selected::after {
    transform: rotate(180deg);
}

.color-swatch-selected:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.color-swatch-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-swatch-picker.open .color-swatch-dropdown {
    display: block;
}

.color-swatch-option {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    background: transparent;
}

.color-swatch-option::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--swatch-color, #000);
    flex-shrink: 0;
}

.color-swatch-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.color-swatch-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.color-swatch-option.selected {
    background: rgba(209, 178, 140, 0.2);
    border: 1px solid rgba(209, 178, 140, 0.3);
}

.color-swatch-option.selected .color-swatch-name {
    color: #D1B28C;
    font-weight: 600;
}

/* Input Actions */
.input-actions {
    margin-top: 20px;
}

/* ============================================================================
   VARIANT/PRODUCT IMAGE
   ============================================================================ */

.kfc-product-image-container {
    position: absolute;
    top: 0px;
    right: 100px;
    max-width: 200px;
}

.kfc-variant-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

@media (max-width: 1024px) {
    /* Hide on tablet and mobile */
    .kfc-product-image-container {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile */

    .kfc-canvas-section {
        width: 100%;
    }
}