/** Shopify CDN: Minification failed

Line 2679:42 Unexpected "#023151\\]"

**/

  @media (min-width: 1024px) {
    #product-media-column {
      position: sticky;
      top: 70px!important;
      align-self: flex-start;
      max-height: calc(100vh - 40px);
      overflow: visible;
    }
    
    #product-details-scroll-container {
      box-sizing: border-box;
      position: sticky !important;
      top: 70px !important;
      height: calc(100vh - 110px);
      overflow: hidden !important;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
      align-self: flex-start;
    }
    
    #product-details-scroll-container::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }
    
    /* Make product wrapper sticky container */
    #product-wrapper {
      position: relative;
      height: 100%;
    }
  }
  
  /* Smooth scrolling for the entire page */
  html {
    scroll-behavior: smooth;
  }
  
  /* Add horizontal lines between step sections */
  .step-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
  }
  
  .step-section:first-child {
    border-top: none;
    padding-top: 0;
  }
  
  /* ===== EDIT MODE STYLES ===== */
  /* Full-screen split layout when in edit mode */
  #single-product-info.edit-mode-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: white;
    margin: 0;
    padding: 0;
  }
  
  #single-product-info.edit-mode-active #product-section {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh;
    gap: 0 !important;
    margin: 0;
    padding: 0;
  }
  
  /* Hide product details in edit mode */
  #single-product-info.edit-mode-active #product-details-scroll-container {
    display: none !important;
  }
  
  /* Adjust media column in edit mode - keep on left, 50% width */
  #single-product-info.edit-mode-active #product-media-column {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    width: 50vw !important;
    flex: 0 0 50vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #fff;
    padding: 2rem;
    margin-left: auto !important;
  }
  
  /* Side panel breaks out to become right column in edit mode */
  #single-product-info.edit-mode-active #side-panel-wrapper {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
    width: 50vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%) !important;
    padding: 2.5rem 2rem !important;
    margin: 0 !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08) !important;
  }
  
  #single-product-info.edit-mode-active #side-panel {
    position: relative !important;
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .edit-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .edit-tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
  }

  .edit-tab-button.active {
    color: #111827;
    border-color: #00CFFF;
  }
  
  /* Enhanced accordion styling in edit mode */
  #single-product-info.edit-mode-active .accordion-section {
    margin-bottom: 0;
  }
  
  #single-product-info.edit-mode-active .accordion-toggle {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  #single-product-info.edit-mode-active .accordion-toggle:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08) !important;
  }
  
  #single-product-info.edit-mode-active .accordion-toggle.active {
    border-color: #00CFFF !important;
    background: #f0f9ff !important;
  }
  
  #single-product-info.edit-mode-active .accordion-content {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-bottom-left-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
    margin-top: -0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  
  /* Dimensions panel styling in edit mode */
  #single-product-info.edit-mode-active #side-panel > div:first-child {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  }
  
  #single-product-info.edit-mode-active #img-dim-in {
    color: #1f2937 !important;
  }
  
  /* Button styling improvements in edit mode - Theme branding blue */
  #single-product-info.edit-mode-active button[class*="bg-[#1d4ed8]"],
  #single-product-info.edit-mode-active button[class*="bg-cyan"] {
    background: #1d4ed8 !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.2) !important;
    transition: all 0.2s ease !important;
  }
  
  #single-product-info.edit-mode-active button[class*="bg-[#1d4ed8]"]:hover,
  #single-product-info.edit-mode-active button[class*="bg-cyan"]:hover {
    background: #153eaa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(21, 62, 170, 0.3) !important;
  }
  
  /* Force all panel children to be visible in edit mode */
  #single-product-info.edit-mode-active #side-panel > * {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  /* Accordion arrows remain visible and rotate in edit mode */
  #single-product-info.edit-mode-active .accordion-toggle .arrow {
    display: block;
    transition: transform 0.2s ease;
  }
  
  #single-product-info.edit-mode-active .accordion-toggle.active .arrow {
    transform: rotate(180deg);
  }
  
  /* Hide toggle side panel button in edit mode */
  #single-product-info.edit-mode-active #toggle-side-panel {
    display: none !important;
  }
  
  /* Exit button positioning */
  #exit-edit-mode {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }
  
  #exit-edit-mode:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Hide breadcrumbs and other elements in edit mode */
  #single-product-info.edit-mode-active nav[aria-label="Breadcrumb"] {
    display: none;
  }
  
  /* Adjust product wrapper in edit mode - maintain 800px max width */
  #single-product-info.edit-mode-active #product-wrapper {
    max-width: 800px !important;
    width: 100% !important;
    min-height: 400px;
    margin: 0 auto;
    transform: none !important;
    position: relative !important;
    display: block !important;
    overflow: visible !important;
  }
  
  /* Ensure product wrapper has fixed aspect ratio in edit mode */
  #single-product-info.edit-mode-active #product-wrapper {
    max-width: 800px !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }
  
  /* Ensure product image is visible and properly sized - maintain 800px max */
  #single-product-info.edit-mode-active #product-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* ===== MOBILE DESIGN STUDIO STYLES ===== */
  /* Full mobile redesign for edit mode on tablets and phones */
  @media (max-width: 1024px) {
    /* Stack layout: image on top, panel below */
    #single-product-info.edit-mode-active #product-section {
      flex-direction: column !important;
      height: auto !important;
      min-height: 100vh !important;
    }

    /* Product media takes top portion */
    #single-product-info.edit-mode-active #product-media-column {
      width: 100% !important;
      flex: 0 0 auto !important;
      height: auto !important;
      min-height: auto !important;
      max-height: none !important;
      padding: 1rem !important;
      margin-left: 0 !important;
      order: 1;
    }

    /* Side panel wrapper becomes bottom section */
    #single-product-info.edit-mode-active #side-panel-wrapper {
      position: relative !important;
      width: 100% !important;
      height: auto !important;
      flex: 1 1 auto !important;
      padding: 0 !important;
      padding-bottom: 80px !important; /* Space for bottom nav */
      order: 2;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    #single-product-info.edit-mode-active #side-panel {
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    /* Product wrapper sizing for mobile - fixed aspect ratio */
    #single-product-info.edit-mode-active #product-wrapper {
      max-width: 100% !important;
      max-height: 45vh !important;
      aspect-ratio: 1 / 1 !important;
      padding: 0 !important;
    }
    
    /* Product image sizing for mobile */
    #single-product-info.edit-mode-active #product-image {
      max-height: 100% !important;
      max-width: 100% !important;
    }

    /* Hide desktop panel header on mobile - use bottom nav instead */
    #single-product-info.edit-mode-active .panel-header {
      display: none !important;
    }

    /* Hide step indicator on mobile - bottom nav shows tabs */
    #single-product-info.edit-mode-active #step-indicator {
      display: none !important;
    }

    /* Hide desktop tabs - use bottom nav */
    #single-product-info.edit-mode-active #edit-mode-tabs {
      display: none !important;
    }


    /* Tab content takes full width with padding */
    #single-product-info.edit-mode-active .tab-content {
      padding: 1rem !important;
    }

    /* Exit button repositioned for mobile */
    #single-product-info.edit-mode-active #exit-edit-mode,
    #single-product-info.edit-mode-active #close-side-panel {
      position: fixed !important;
      top: 0.75rem !important;
      right: 0.75rem !important;
      left: auto !important;
      z-index: 10002 !important;
    }

    /* Tools panel repositioned */
    #single-product-info.edit-mode-active .tools-panel__fixedOnTop___jHGbr {
      position: absolute !important;
      top: 0.5rem !important;
      left: 0.5rem !important;
      right: auto !important;
      width: auto !important;
    }
  }

  @media (max-width: 768px) {
    #single-product-info.edit-mode-active #product-wrapper {
      max-height: 40vh !important;
    }

    /* Compact print size info bar */
    #single-product-info.edit-mode-active #image-dimensions {
      padding: 0.5rem 1rem !important;
    }
  }

  @media (max-width: 480px) {
    #single-product-info.edit-mode-active #product-wrapper {
      max-height: 35vh !important;
    }

    #single-product-info.edit-mode-active #product-media-column {
      padding: 0.5rem !important;
    }
  }

  /* ===== MOBILE BOTTOM NAVIGATION BAR ===== */
  /* Fixed bottom toolbar for edit mode on mobile */
  .mobile-edit-nav {
    display: none; /* Hidden by default, shown via JS when in edit mode on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, #1e293b 0%, #334155 100%);
    z-index: 10003;
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  @media (max-width: 1024px) {
    #single-product-info.edit-mode-active .mobile-edit-nav {
      display: flex !important;
      justify-content: space-around;
      align-items: center;
    }
  }

  .mobile-edit-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    min-width: 60px;
  }

  .mobile-edit-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
  }

  .mobile-edit-nav-btn:hover,
  .mobile-edit-nav-btn:focus {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-edit-nav-btn.active {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.15);
  }
  
  .mobile-edit-nav-btn.active svg {
    stroke: #1d4ed8;
  }

  /* Done/Continue button in mobile nav - THEME COLORS */
  .mobile-edit-nav-done {
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 2rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  }

  .mobile-edit-nav-done:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
  }

  /* ===== END MOBILE DESIGN STUDIO STYLES ===== */

  /* Reset sticky positioning in edit mode */
  #single-product-info.edit-mode-active #product-media-column {
    position: relative !important;
    top: auto !important;
  }
  
  /* Keep tools panel positioned correctly */
  #single-product-info.edit-mode-active .tools-panel__fixedOnTop___jHGbr {
    position: absolute !important;
    z-index: 100;
  }
  
  /* Ensure all child elements are visible */
  #single-product-info.edit-mode-active #product-wrapper > * {
    visibility: visible !important;
  }
  
  /* Ensure print area containers are visible and properly positioned in edit mode */
  #single-product-info.edit-mode-active #print-area-clip-container {
    visibility: visible !important;
    display: block !important;
    position: absolute !important;
    overflow: hidden !important;
    pointer-events: none !important; /* Container doesn't capture, children do */
  }
  
  /* CRITICAL: Enable pointer events on overlays in edit mode for drag/resize/rotate */
  #single-product-info.edit-mode-active #print-area-clip-container .design-overlay-wrapper,
  #single-product-info.edit-mode-active #print-area-clip-container .design-overlay,
  #single-product-info.edit-mode-active #print-area-clip-container .design-overlay img,
  #single-product-info.edit-mode-active #print-area-clip-container .handle-delete,
  #single-product-info.edit-mode-active #print-area-clip-container .handle-rotate,
  #single-product-info.edit-mode-active #print-area-clip-container .handle-resize,
  #single-product-info.edit-mode-active #print-area-clip-container .transform-bounding-box {
    pointer-events: auto !important;
  }
  
  /* Ensure print area overlay canvas is visible in edit mode */
  #single-product-info.edit-mode-active #main-print-area-overlay {
    pointer-events: none !important;
    /* Note: size is controlled by JavaScript to match rendered image */
  }
  
  /* Allow JavaScript to control overlay visibility per side - don't force all overlays visible */
  /* Overlays will be shown/hidden by switchDesignOverlay() function based on current side */
  
  /* Keep thumbnail gallery visible and functional in edit mode */
  #single-product-info.edit-mode-active #dynamic-gallery-thumbnails,
  #single-product-info.edit-mode-active #thumbnail-gallery-container {
    visibility: visible !important;
    display: block !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  
  /* Ensure gallery thumbnails are clickable in edit mode */
  #single-product-info.edit-mode-active #dynamic-gallery-thumbnails img,
  #single-product-info.edit-mode-active #thumbnail-gallery-container img {
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  
  /* Keep zoom button visible in edit mode */
  #single-product-info.edit-mode-active #zoom-toggle {
    display: block;
  }
  
  /* Smooth transitions - Only for non-layout properties */
  #side-panel-wrapper,
  #side-panel {
    transition: all 0.3s ease-in-out;
  }
  
  /* ===== STICKY TOOLS PANEL STYLES ===== */
  .tools-panel__editingToolsShown___DXwaG {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  
  .tools-panel__fixedOnTop___jHGbr {
    /* Absolute positioning - stays at top of the already-sticky image column */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    pointer-events: none;
  }
  
  .tools-panel__fixedOnTop___jHGbr > * {
    pointer-events: auto;
  }
  
  .icon-button__toolIcon___zQZO5 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .icon-button__toolIcon___zQZO5:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .tools-panel__paddedButton___QRhUR {
    padding: 8px;
  }
  
  .tools-panel__scaleButton___imIPM {
    transition: transform 0.2s ease;
  }
  
  .tools-panel__scaleButton___imIPM:active {
    transform: scale(0.95);
  }
  
  .icon-button__iconInner___bUhnm {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .icon-button__emptyBox___DI1bt {
    display: block;
  }
  
  /* Save Design Icon */
  .tools-panel__saveDesign___J7QXn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M5 13l4 4L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  
  /* Share Design Icon */
  .tools-panel__shareDesign___bbG48 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  
  /* Favorite Button Styles */
  .product-favourite-button__favorite___x8OZ8 {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tools-panel__favButton___M_L1j {
    width: 100%;
    height: 100%;
  }
  
  .MuiSvgIcon-root {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  .product-favourite-button__alwaysBlack___o0Z0K {
    color: #374151;
  }
  
  /* Hide on mobile, show on tablet/desktop */
  .tools-panel__onlyTabletOrDesktop___dNsFG {
    display: none;
  }
  
  @media (min-width: 768px) {
    .tools-panel__onlyTabletOrDesktop___dNsFG {
      display: flex;
    }
  }
  
  /* Tooltip styles */
  .icon-button__tooltip___fsclH[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
  }
  
  .icon-button__tooltip___fsclH[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #1f2937;
    pointer-events: none;
    z-index: 100;
  }
  
  .icon-button__bottom___Rrynt {
    /* Tooltip positioned at bottom */
  }
  /* ===== END STICKY TOOLS PANEL STYLES ===== */
  
  /* ===== THUMBNAIL GALLERY POSITIONING (bottom-right above image) ===== */
  #thumbnail-gallery-container,
  #dynamic-gallery-thumbnails {
    position: absolute !important;
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: auto;
    z-index: 40;
  }
  /* ===== END THUMBNAIL GALLERY POSITIONING ===== */
  
  /* ===== THUMBNAIL & IMAGE TRANSITIONS ===== */
  /* Product image transition for smooth side switching */
  #product-image {
    transition: opacity 0.3s ease-in-out;
  }
  
  #product-image.transitioning {
    opacity: 0.7;
  }
  
  /* Overlay wrapper transitions for smooth visibility changes */
  [id^="overlay-wrapper-"] {
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  }
  /* ===== END THUMBNAIL & IMAGE TRANSITIONS ===== */
  
  /* ===== SIDE PANEL ANIMATION STYLES ===== */
  #side-panel-wrapper {
    transition: all 0.3s ease-in-out;
  }
  
  /* Full Edit Mode / Design Studio button styling with pulse animation */
  #toggle-side-panel.edit-mode-btn {
    animation: gentlePulse 2.5s ease-in-out infinite;
    animation-delay: 1s;
    background: linear-gradient(135deg, #00CFFF 0%, #204ECF 100%) !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 207, 255, 0.5) !important;
    transition: all 0.3s ease !important;
  }
  
  #toggle-side-panel.edit-mode-btn svg {
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  }
  
  #toggle-side-panel.edit-mode-btn:hover {
    animation: none;
    background: linear-gradient(135deg, #204ECF 0%, #1a3a9e 100%) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(32, 78, 207, 0.6) !important;
  }
  
  #toggle-side-panel.edit-mode-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(32, 78, 207, 0.4) !important;
  }
  
  /* Gentle pulse animation for attention */
  @keyframes gentlePulse {
    0%, 100% {
      box-shadow: 0 2px 12px rgba(0, 207, 255, 0.5);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 4px 20px rgba(0, 207, 255, 0.7);
      transform: scale(1.05);
    }
  }
  
  /* Gentle shake animation to draw attention */
  @keyframes gentleShake {
    0%, 100% {
      transform: translateX(0);
    }
    10% {
      transform: translateX(-3px);
    }
    20% {
      transform: translateX(3px);
    }
    30% {
      transform: translateX(-3px);
    }
    40% {
      transform: translateX(3px);
    }
    50% {
      transform: translateX(0);
    }
  }
  
  /* Side panel items staggered animation */
  #side-panel > * {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  #side-panel.show > *:nth-child(1) {
    animation: slideIn 0.4s ease forwards;
    animation-delay: 0.1s;
  }
  
  #side-panel.show > *:nth-child(2) {
    animation: slideIn 0.4s ease forwards;
    animation-delay: 0.2s;
  }
  
  #side-panel.show > *:nth-child(3) {
    animation: slideIn 0.4s ease forwards;
    animation-delay: 0.3s;
  }
  
  #side-panel.show > *:nth-child(4) {
    animation: slideIn 0.4s ease forwards;
    animation-delay: 0.4s;
  }
  
  #side-panel.show > *:nth-child(5) {
    animation: slideIn 0.4s ease forwards;
    animation-delay: 0.5s;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  /* ===== END SIDE PANEL ANIMATION STYLES ===== */
  
  /* ===== THEME BRANDING COLORS OVERRIDE ===== */
  /* Force all pricing and UI elements to use theme colors */
  #decoration-pricing-display,
  #decoration-pricing-display *,
  [data-decoration-price],
  [data-location-count],
  [data-ink-color-count],
  [data-quantity-range] {
    color: #1d4ed8 !important;
  }
  
  #decoration-pricing-display .bg-white {
    background: white !important;
  }
  
  /* Override any conflicting CSS */
  .text-tool-style-btn[aria-pressed="true"],
  .text-tool-align-btn[aria-pressed="true"],
  .text-tool-size-preset.active,
  .dp-tab.active,
  .dp-btn-primary,
  .mobile-edit-nav-btn.active,
  #edit-color-confirm,
  #text-tool-apply,
  .text-tool-size-preset.bg-indigo-500 {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
  }
  
  .text-tool-style-btn[aria-pressed="true"] span,
  .text-tool-align-btn[aria-pressed="true"] svg {
    color: white !important;
  }
  
  /* Hover states */
  .text-tool-style-btn[aria-pressed="true"]:hover,
  .text-tool-align-btn[aria-pressed="true"]:hover,
  .text-tool-size-preset.active:hover,
  .dp-btn-primary:hover,
  #edit-color-confirm:hover,
  #text-tool-apply:hover {
    background: #153eaa !important;
  }
  
  /* Focus states */
  #color-search-input:focus,
  .dp-price-input:focus,
  .dp-config-input:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1) !important;
  }
  
  /* Tab active states */
  .dp-tab.active {
    border-bottom-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
  }
  
  /* Mobile nav active */
  .mobile-edit-nav-btn.active {
    background: rgba(29, 78, 216, 0.15) !important;
  }
  
  .mobile-edit-nav-btn.active svg {
    stroke: #1d4ed8 !important;
  }
  
  /* Step dots */
  .step-dot.bg-cyan-500 {
    background: #1d4ed8 !important;
  }
  
  /* Edit tab active states */
  .edit-tab-btn.active {
    border-bottom-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
  }
  
  /* Ring styles for color selectors */
  #color-selectors-container .color-selector.ring-2.ring-blue-500,
  #color-selectors-container .color-selector.ring-2 {
    box-shadow: 0 0 0 2px #1d4ed8 !important;
    border-color: #1d4ed8 !important;
  }
  
  /* Side panel color selector borders */
  #side-panel-color-selectors .color-selector.border-indigo-500 {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
  }
  
  /* Mobile side panel color selector borders */
  @media (max-width: 768px) {
    #side-panel-color-selectors .color-selector.ring-2,
    #side-panel-color-selectors .color-selector.border-indigo-500 {
      box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
      border-color: #1d4ed8 !important;
    }
  }
  
  /* Size input focus outlines */
  #size-grid .size-qty:focus {
    outline: 2px solid #1d4ed8 !important;
    outline-offset: 1px !important;
    box-shadow: none !important;
  }
  
  /* Upload button hover effects */
  .upload-button:hover {
    box-shadow: 0 0 7px 2px #1d4ed8 !important;
  }
  
  /* Quantity input styling */
  .total-quantity-input,
  .quantity-block-multiple__pink___Cpkq1 {
    color: #1d4ed8 !important;
  }
  
  /* Focus states for quantity inputs */
  .total-quantity-input:focus,
  .quantity-block-multiple__pink___Cpkq1:focus {
    background: rgba(29, 78, 216, 0.1) !important;
  }
  
  /* Panel header gradients and icons */
  .design-editor-panel .panel-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
  }
  
  /* Detected colors sidebar header */
  .dpv3-ink-sidebar-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
  }
  
  /* Print size info bar */
  #image-dimensions {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    border-bottom: 1px solid rgba(29, 78, 216, 0.2) !important;
  }
  
  #image-dimensions svg {
    color: #1d4ed8 !important;
  }
  
  #img-dim-in {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(29, 78, 216, 0.2) !important;
  }
  
  /* Design panel view buttons */
  .dpv3-view-btn.active {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
  }
  
  /* Card hover effects */
  .dpv3-color-container:hover {
    border-color: #1d4ed8 !important;
  }
  
  /* Action buttons */
  .dpv3-btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
    border: none !important;
  }
  
  .dpv3-btn-primary:hover {
    background: #153eaa !important;
  }
  
  /* ===== END THEME BRANDING COLORS OVERRIDE ===== */
  
  /* Active state for style buttons (Bold, Italic, Underline) - THEME COLORS */
  .text-tool-style-btn[aria-pressed="true"] {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
  }
  
  .text-tool-style-btn[aria-pressed="true"] span {
    color: white !important;
  }
  
  /* Active state for alignment buttons - THEME COLORS */
  .text-tool-align-btn[aria-pressed="true"] {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
  }
  
  .text-tool-align-btn[aria-pressed="true"] svg {
    stroke: white !important;
  }
  
  /* Active state for size presets - THEME COLORS */
  .text-tool-size-preset.active {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
  }
  
  /* Primary action button - Add Additional Layer - THEME COLORS */
  #text-tool-apply {
    background: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.25);
    padding: 0.875rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
  }

  #text-tool-apply:hover {
    background: #153eaa;
  }

  /* Secondary action button - Deselect */
  #text-tool-deselect {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
  }

  #text-tool-deselect:hover {
    background: #e5e7eb;
  }

  /* Danger action button - Delete */
  #text-tool-delete {
    background: #fef2f2;
    color: #b91c1c;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
  }

  #text-tool-delete:hover {
    background: #fee2e2;
  }
  
  /* Container for Deselect/Delete buttons */
  #text-layer-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
  }
  
  /* ===== END TEXT TOOL BUTTON STYLES ===== */
  
  /* ===== UNIFIED SIDE PANEL STYLES (matching text editor) ===== */
  
  /* Main panel container */
  .design-editor-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 100;
  }
  
  /* Ensure tab content is isolated */
  .tab-content-container {
    position: relative;
    background: #ffffff;
    overflow: hidden;
  }
  
  /* Hide main page step sections when in side panel context */
  .design-editor-panel .step-section,
  .design-editor-panel #step-colors,
  .design-editor-panel .product-details-content {
    display: none !important;
  }
  
  /* Panel header - indigo gradient to match text editor accent - THEME COLORS */
  .design-editor-panel .panel-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%);
    padding: 1rem 1.25rem;
  }
  
  .design-editor-panel .panel-header h3 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
  }
  
  .design-editor-panel .panel-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.625rem;
  }
  
  .design-editor-panel .panel-header .w-8 {
    background: rgba(255, 255, 255, 0.15);
  }
  
  /* Close button */
  #close-side-panel {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
  }
  
  #close-side-panel:hover {
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Print size info bar - indigo tint - THEME COLORS */
  #image-dimensions {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-bottom: 1px solid rgba(29, 78, 216, 0.2);
    padding: 0.625rem 1rem;
  }
  
  #image-dimensions svg {
    color: #1d4ed8;
  }
  
  #image-dimensions span {
    color: #153eaa;
  }
  
  #img-dim-in {
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Navigation tabs - indigo active state - THEME COLORS */
  #edit-mode-tabs {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
  }
  
  .edit-tab-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
  }
  
  .edit-tab-btn:hover {
    color: #1d4ed8;
    background: #f3f4f6;
  }
  
  .edit-tab-btn.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background: #ffffff;
  }
  
  .edit-tab-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  /* Tab content areas */
  .tab-content {
    background: #ffffff;
  }
  
  .tab-content h4,
  .tab-content > div > label:not(.color-selector) {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Text editor tab - proper spacing */
  #text-tool-panel {
    padding: 0 !important;
  }
  
  #text-tool-panel > .p-5 {
    padding: 1.25rem !important;
  }
  
  #text-tool-panel .space-y-5 > div {
    margin-bottom: 1.25rem;
  }
  
  #text-tool-panel .space-y-5 > div:last-child {
    margin-bottom: 0;
  }
  
  /* Ensure inputs don't touch borders */
  #text-tool-panel textarea,
  #text-tool-panel select,
  #text-tool-panel input[type="range"] {
    margin-top: 0.25rem;
  }
  
  /* Font size presets spacing */
  #text-tool-size-presets {
    gap: 0.5rem;
  }
  
  /* Active font size button - ensure strong contrast - THEME COLORS */
  .text-tool-size-preset.bg-indigo-500,
  .text-tool-size-preset.border-indigo-500,
  .text-tool-size-preset.text-white {
    background-color: #1d4ed8 !important; /* theme primary */
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
  }
  
  /* Font size value display - improved visibility */
  #text-tool-size-value {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    min-width: 50px;
    text-align: center;
  }
  
  /* Style buttons spacing */
  #text-tool-panel .text-tool-style-btn {
    margin-right: 0.25rem;
  }
  
  /* Alignment buttons spacing */
  #text-tool-panel .text-tool-align-btn {
    flex: 1;
  }
  
  /* ===== TEXT TOOL COLOR PICKER OVERFLOW FIX ===== */
  /* Ensure the color picker dropdown is fully visible */
  #text-tool-panel {
    overflow: visible !important;
  }
  
  #text-tool-panel > .p-5,
  #text-tool-panel .space-y-5 {
    overflow: visible !important;
  }
  
  /* Text Style section needs relative positioning for the absolute color picker */
  #text-tool-panel .space-y-5 > div:has(#text-tool-color-swatch) {
    position: relative;
  }
  
  /* Color picker dropdown positioning - ALWAYS opens upward */
  #text-tool-color-picker {
    position: absolute;
    top: auto;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    margin-top: 0;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Ensure tab content container allows overflow for color picker */
  .tab-content-container {
    overflow: visible !important;
  }
  
  /* Fallback for browsers that don't support :has() */
  @supports not (selector(:has(*))) {
    #text-tool-color-picker {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 2rem);
      max-width: 400px;
      top: auto;
      bottom: 20%;
    }
  }
  /* ===== END TEXT TOOL COLOR PICKER OVERFLOW FIX ===== */
  
  /* Upload tab styling */
  .tab-content[data-tab-section="upload"] {
    padding: 1.25rem;
  }
  
  #dynamic-upload-buttons-container .upload-button,
  #dynamic-upload-buttons-container button {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 0.875rem;
  }
  
  #dynamic-upload-buttons-container .upload-button:hover,
  #dynamic-upload-buttons-container button:hover {
    border-color: #1d4ed8;
    background: #e0e7ff;
    color: #1d4ed8;
  }
  
  /* File display styling in edit mode */
  /* Only show flex when not hidden - hidden class takes priority */
  #dynamic-upload-buttons-container .file-display:not(.hidden) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Ensure hidden file displays stay hidden */
  #dynamic-upload-buttons-container .file-display.hidden {
    display: none !important;
  }
  
  #dynamic-upload-buttons-container .file-display button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f3f4f6 !important;
    border: none !important;
    padding: 0 !important;
  }
  
  #dynamic-upload-buttons-container .file-display button svg {
    display: block;
  }
  
  /* Tip box styling */
  .tab-content .bg-slate-50 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
  }
  
  .tab-content .bg-slate-50 p {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.5;
  }
  
  /* Logo Colors tab styling */
  .tab-content[data-tab-section="logo-colors"] h3 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .tab-content[data-tab-section="logo-colors"] .bg-gray-50 {
    background: #f9fafb;
    border-radius: 0.75rem;
  }
  
  #color-search-input {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
  }
  
  #color-search-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    outline: none;
  }
  
  #edit-color-confirm {
    background: #1d4ed8;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  #edit-color-confirm:hover {
    background: #153eaa;
  }
  
  #edit-revert-button {
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
  
  #edit-revert-button:hover {
    background: #f3f4f6;
  }
  
  /* Product Colors tab styling */
  .tab-content[data-tab-section="product-colors"] {
    padding: 1.25rem;
  }
  
  /* Only style the header icon, not color swatches */
  .tab-content[data-tab-section="product-colors"] .product-colors-icon {
    background: linear-gradient(135deg, #eef2ff 0%, #fce7f3 100%) !important;
  }
  
  .tab-content[data-tab-section="product-colors"] .product-colors-icon svg {
    color: #1d4ed8 !important;
  }
  
  .tab-content[data-tab-section="product-colors"] h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: none;
    letter-spacing: normal;
  }
  
  .tab-content[data-tab-section="product-colors"] > div > div > p {
    color: #6b7280;
    font-size: 0.75rem;
  }
  
  /* Side panel color selectors container */
  #side-panel-color-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  
  #side-panel-color-selectors .color-selector {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
  }
  
  #side-panel-color-selectors .color-selector:hover {
    border-color: #9ca3af;
    transform: scale(1.05);
  }
  
  #side-panel-color-selectors .color-selector.border-indigo-500 {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
  }
  
  /* ===== MAIN PAGE COLOR SELECTORS (Step 1) ===== */
  /* Ring styling for selected colors on main page and mobile */
  #color-selectors-container .color-selector.ring-2.ring-blue-500,
  #color-selectors-container .color-selector.ring-2 {
    box-shadow: 0 0 0 2px #3b82f6 !important;
    border-color: #3b82f6 !important;
  }
  
  /* Ensure ring classes work on mobile devices */
  @media (max-width: 768px) {
    #color-selectors-container .color-selector.ring-2.ring-blue-500,
    #color-selectors-container .color-selector.ring-2 {
      box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
      border-color: #1d4ed8 !important;
    }
    
    #side-panel-color-selectors .color-selector.ring-2,
    #side-panel-color-selectors .color-selector.border-indigo-500 {
      box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
      border-color: #1d4ed8 !important;
    }
  }
  
  /* Size input focus outlines - THEME COLORS */
  #size-grid .size-qty:focus {
    outline: 2px solid #1d4ed8 !important;
    outline-offset: 1px !important;
    box-shadow: none !important;
  }
  
  /* ===== MULTI-COLOR GRID LAYOUT FIXES ===== */
  /* Ensure color-specific grids fit all sizes in one row with proper 7-column layout */
  .color-specific-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  
  /* For screens with more than 7 sizes, allow flexible columns */
  @media (max-width: 600px) {
    .color-specific-grid {
      grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
    }
  }
  
  .color-specific-grid .quantity-block-multiple__sizeItem____cChu {
    min-width: unset !important;
    max-width: unset !important;
    text-align: center !important;
  }
  
  .color-specific-grid .size-qty {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.375rem !important;
    font-size: 0.875rem !important;
    text-align: center !important;
  }
  
  /* Mobile: keep size grid cards using the same speech-bubble style as desktop */

  /* Improve visibility of multi-color instructions panel */
  #multi-color-instructions {
    background: #f1f5f9 !important;
    border: 1px solid #d1d5db !important;
    color: #4b5563 !important;
    border-radius: 0.75rem !important;
  }

  #multi-color-instructions svg {
    color: #0ea5e9 !important;
  }

  #multi-color-instructions span {
    font-size: 13px !important;
  }

  /* Make main size grid wrap into multiple rows when there isn't enough width */
  @media (max-width: 768px) {
    #size-grid,
    #size-grid.grid-cols-7,
    .grid.grid-cols-7#size-grid {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
      gap: 0.5rem !important;
      overflow-x: visible !important;
    }
  }
  
  /* Color grid header - compact layout without large circle */
  .color-grid-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  /* Smaller color indicator circle */
  .color-grid-header .w-6 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
  }
  
  .color-grid-header h3 {
    font-size: 1rem !important;
    margin: 0 !important;
  }
  
  .color-grid-header .text-sm {
    font-size: 0.75rem !important;
  }
  
  /* ===== DECORATION METHOD BUTTON ACTIVE STATE ===== */
  /* Ensure decoration method buttons show proper active/inactive styling */
  #decoration-methods-container button[aria-pressed="true"] {
    background-color: #204ECF !important;
    color: #ffffff !important;
    border: 2px solid #204ECF !important;
  }
  
  #decoration-methods-container button[aria-pressed="false"],
  #decoration-methods-container button:not([aria-pressed="true"]) {
    background-color: #ffffff !important;
    color: #023151 !important;
    border: 2px solid #00CCFF !important;
  }
  
  /* Override any conflicting Tailwind classes */
  #decoration-methods-container button {
    transition: all 0.2s ease !important;
  }
  
  /* Hide base size-grid whenever multi-color mode is active */
  body.multi-color-mode-active #size-grid {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Also hide when color-specific grids exist in the same container */
  .step-section:has(.color-specific-grid) #size-grid,
  .product-details-content:has(.color-specific-grid) #size-grid {
    display: none !important;
  }
  
  /* Ensure base grid is visible when NOT in multi-color mode */
  body:not(.multi-color-mode-active) #size-grid:not([style*="display: none"]) {
    display: grid !important;
  }
  /* Desktop size grid spacing - give each size more room */
  @media (min-width: 769px) {
    body:not(.multi-color-mode-active) #size-grid:not([style*="display: none"]) {
      grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
      column-gap: 1.25rem !important;
      row-gap: 0.9rem !important;
    }
  }
  
  /* Inner circle must preserve its inline background-color */
  #side-panel-color-selectors .inner-circle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    /* background-color is set inline via style attribute */
  }
  
  /* Scrollbar styling */
  .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  /* Color swatch grid */
  #pantone-swatch-grid {
    padding: 5px;
  }

  #pantone-swatch-grid button {
    border-radius: 0.5rem;
    transition: transform 0.15s ease;
  }
  
  #pantone-swatch-grid button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Detected colors sidebar */
  #edit-colors-sidebar .detected-color-item {
    border-radius: 0.75rem;
    transition: all 0.2s ease;
  }
  
  #edit-colors-sidebar .detected-color-item:hover {
    background: #f3f4f6;
  }
  
  #edit-colors-sidebar .detected-color-item.selected {
    background: #eef2ff;
    border-color: #6366f1;
  }
  
  /* ===== END UNIFIED SIDE PANEL STYLES ===== */
  
  /* ===== NEW TRANSFORM CONTROLS STYLES ===== */
  /* Bounding box with dashed border */
  .transform-bounding-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s ease;
  }
  
  /* Smooth drag/drop UX - GPU acceleration with CSS overlay optimization */
  .design-overlay {
    will-change: transform, top, left, width, height; /* GPU acceleration for all transforms */
    transition: none; /* No transitions during drag to prevent lag */
  }
  
  .design-overlay.dragging {
    cursor: grabbing !important;
  }
  
  .design-overlay.rotating {
    cursor: grabbing !important;
  }
  
  .design-overlay.resizing {
    cursor: nwse-resize !important;
  }
  
  /* Cart design overlay - optimized for instant rendering */
  .cart-design-overlay {
    will-change: transform, top, left, width, height;
    transition: opacity 0.2s ease;
  }
  
  .cart-design-overlay:hover {
    opacity: 1 !important;
  }
  
  /* Alignment guides (crosshair) */
  .alignment-guide-h,
  .alignment-guide-v {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    pointer-events: none;
  }
  
  .alignment-guide-h {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
  }
  
  .alignment-guide-v {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
  }
  
  /* Transform handles - smaller size, hidden by default */
  .handle-delete,
  .handle-rotate,
  .handle-resize {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
  }
  
  .handle-delete {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    cursor: pointer;
  }
  
  .handle-delete:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  .handle-rotate {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    cursor: grab;
  }
  
  .handle-rotate:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  .handle-rotate:active {
    cursor: grabbing;
  }
  
  .handle-resize {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    cursor: nwse-resize;
  }
  
  .handle-resize:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  /* Handle SVG icons */
  .handle-delete svg,
  .handle-rotate svg,
  .handle-resize svg {
    pointer-events: none;
  }
  
  /* Show handles on wrapper hover (CSS fallback for JS hover) */
  .design-overlay-wrapper:hover .handle-delete,
  .design-overlay-wrapper:hover .handle-rotate,
  .design-overlay-wrapper:hover .handle-resize,
  .design-overlay-wrapper:hover .transform-bounding-box,
  .design-overlay-wrapper:hover .alignment-guide-h,
  .design-overlay-wrapper:hover .alignment-guide-v,
  .design-overlay-wrapper.active .handle-delete,
  .design-overlay-wrapper.active .handle-rotate,
  .design-overlay-wrapper.active .handle-resize,
  .design-overlay-wrapper.active .transform-bounding-box {
    opacity: 1 !important;
  }
  
  /* Ensure wrapper allows pointer events for interactions */
  .design-overlay-wrapper {
    pointer-events: auto !important;
    cursor: move !important;
    z-index: 10 !important;
  }
  
  /* Ensure overlay image is draggable */
  .design-overlay-wrapper .design-overlay,
  .design-overlay-wrapper img {
    pointer-events: auto !important;
    cursor: move !important;
  }
  
  /* Ensure transform-inner-container passes events through correctly */
  .design-overlay-wrapper .transform-inner-container {
    pointer-events: auto !important;
    cursor: move !important;
    position: relative !important;
  }
  
  /* Make sure handles are above other content and clickable */
  .design-overlay-wrapper .handle-delete,
  .design-overlay-wrapper .handle-rotate,
  .design-overlay-wrapper .handle-resize {
    pointer-events: auto !important;
    z-index: 20 !important;
  }
  /* ===== END TRANSFORM CONTROLS STYLES ===== */
  
  /* Product wrapper - fixed aspect ratio container to prevent jumping */
  #product-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    /* Fixed aspect ratio - prevents layout shift when switching images */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
  }
  
  /* Product image - centered within fixed container */
  #product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  
  /* Responsive adjustments for tablets and mobile */
  @media (max-width: 1024px) {
    #product-wrapper {
      max-width: 600px;
    }
  }
  
  @media (max-width: 768px) {
    #product-wrapper {
      max-width: 100%;
      padding: 0 1rem;
      aspect-ratio: 1 / 1;
    }
  }
  
  @media (max-width: 480px) {
    #product-wrapper {
      padding: 0 0.75rem;
    }
  }
  
  /* Print area clipping - ensure consistent positioning */
  #print-area-clip-container {
    position: absolute;
    overflow: hidden;
    pointer-events: none; /* Container doesn't capture events, but children can */
  }
  
  /* CRITICAL: Enable pointer events on overlays inside the clip container */
  #print-area-clip-container .design-overlay-wrapper,
  #print-area-clip-container .design-overlay,
  #print-area-clip-container .design-overlay img,
  #print-area-clip-container .handle-delete,
  #print-area-clip-container .handle-rotate,
  #print-area-clip-container .handle-resize {
    pointer-events: auto !important;
  }

  /* Hide prices under size grid */
  #size-grid .size-price,
  #size-grid ~ .size-prices,
  #size-grid .size-total,
  .size-input-price {
    display: none !important;
  }

  /* ==========================================
     DESKTOP SPECIFICATIONS SIDEBAR
     Slide in from right side
     ========================================== */
  @media (min-width: 769px) {
  /* ==========================================
     PROFESSIONAL SPECIFICATIONS SIDEBAR
     ========================================== */
  .specs-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .specs-sidebar.open {
    right: 0;
  }

  .specs-sidebar-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%);
    color: white;
    flex-shrink: 0;
  }

  .specs-sidebar-header h2 {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .specs-sidebar-header h2::before {
    content: '';
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z' /%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
  }

  .specs-sidebar-header .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 20px;
    font-weight: 400;
  }

  .specs-sidebar-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .specs-sidebar-content {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
  }

  .specs-sidebar-content .metafield-container-spec {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
  }

  .specs-sidebar-content h3,
  .specs-sidebar-content h4 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
  }

  .specs-sidebar-content h3:first-child,
  .specs-sidebar-content h4:first-child {
    margin-top: 0;
  }

  .specs-sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .specs-sidebar-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  
  .specs-sidebar-content ul li::before {
    content: '✓';
    color: #1d4ed8;
    font-weight: 600;
    flex-shrink: 0;
  }
  
  .specs-sidebar-content ul li:last-child {
    border-bottom: none;
  }
  
  .specs-sidebar-content p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  
  .specs-sidebar-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
  }
  
  .specs-sidebar-content table th,
  .specs-sidebar-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .specs-sidebar-content table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
  }
  
  .specs-sidebar-content table tr:hover td {
    background: #f8fafc;
  }
  
  .specs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  
  .specs-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  }

  /* Mobile Specs Sidebar - slide up from bottom */
  @media (max-width: 768px) {
    .specs-sidebar {
      width: 100vw;
      max-width: 100vw;
      right: 0;
      top: auto;
      bottom: -100vh;
      height: 90vh;
      max-height: 90vh;
      border-radius: 20px 20px 0 0;
      transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .specs-sidebar.open {
      bottom: 0;
    }
    
    .specs-sidebar-header {
      padding: 20px 20px;
      border-radius: 20px 20px 0 0;
      position: relative;
      background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
    }
    
    .specs-sidebar-header::before {
      content: '';
      position: absolute;
      top: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 4px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 2px;
    }
    
    .specs-sidebar-content {
      padding: 20px;
    }
    
    .specs-sidebar-content .metafield-container-spec {
      padding: 16px;
    }
  }

  .price-breaks-sidebar-content .metafield-container-spec h4 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
  }
  
  .price-breaks-sidebar-content .price-breaks-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .price-breaks-sidebar-content .price-breaks-table th,
  .price-breaks-sidebar-content .price-breaks-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .price-breaks-sidebar-content .price-breaks-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
  }
  
  .price-breaks-sidebar-content .price-breaks-table tr:hover td {
    background: #f8fafc;
  }
  
  .price-breaks-sidebar-content .price-breaks-table td {
    color: #475569;
  }
  
  .price-breaks-sidebar-content .price-breaks-table td:first-child {
    font-weight: 600;
    color: #1d4ed8;
  }
  
  /* Sticky Add to Cart Section - Sticky within product-details-scroll-container */
  .sticky-add-to-cart {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 20px 40px 20px 60px;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Add padding to individual elements instead of container */
  .product-details-content {
    padding: 40px 40px 0px 60px;
  }
  
  /* Upload section hover effect - THEME COLORS */
  .upload-button:hover {
    transition: all 0.3s ease;
    box-shadow: 0 0 7px 2px #1d4ed8;
  }
  
  /* Quantity size grid styling */
  .quantity-block-multiple__sizeItem____cChu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .quantity-block-multiple__input___lxQHR {
    background: #fff;
    box-shadow: 4px 8px 8px 0 rgba(0, 0, 0, .04);
    display: -webkit-flex;
    display: flex;
    flex: 0 0 auto;
    height: 65px;
    justify-content: center;
    position: relative;
    width: 75px;
    align-items: center;
    border-radius: 8px;
  }
  
  .quantity-block-multiple__input___lxQHR::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
  }
  
  .quantity-block-multiple__pink___Cpkq1 {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #2563EB;
    text-align: center;
    width: 100%;
    margin: 0;
    text-decoration: underline;
    outline: none;
  }
  
  .quantity-block-multiple__pink___Cpkq1:focus {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
  }
  
  .quantity-block-multiple__label___NtIHo {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0;
    margin-top: 12px;
    text-align: center;
  }
  
  .hidden-label__label___VTfyh {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  /* Total quantity input styling */
  .total-quantity-input {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #2563EB;
    text-align: center;
    width: 60px;
    margin: 0 4px;
    text-decoration: underline;
    outline: none;
    display: inline-block;
  }
  
  .total-quantity-input:focus {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
  }
  
  /* Number input styling - remove spinners */
  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  input[type="number"] {
    -moz-appearance: textfield;
  }
  
  /* One Size Product Styling - Professional Left-Aligned Layout */
  #size-grid.one-size-mode {
    grid-template-columns: 1fr;
    justify-items: start;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .one-size-product-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 0;
    width: 100%;
    margin-bottom: 0;
  }
  
  .one-size-product-label {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    min-width: 120px;
    padding-top: 1.5rem;
    line-height: 1.5;
    text-align: left;
  }
  
  .one-size-product-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex: 0 0 auto;
  }
  
  .one-size-product-input {
    background: #fff;
    box-shadow: 4px 8px 8px 0 rgba(0, 0, 0, .04);
    display: -webkit-flex;
    display: flex;
    flex: 0 0 auto;
    height: 65px;
    width: 75px;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 8px;
  }
  
  .one-size-product-input::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
  }
  
  .one-size-product-input input {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #2563EB;
    text-align: center;
    width: 100%;
    margin: 0;
    text-decoration: underline;
    outline: none;
  }
  
  .one-size-product-input input:focus {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
  }
  
  /* Size label - override center alignment for left-aligned one-size layout */
  .one-size-product-input-wrapper .quantity-block-multiple__label___NtIHo {
    text-align: left;
    margin-left: 0;
  }
  
  /* ==========================================
     DESKTOP PRICE BREAKS SIDEBAR
     Slide in from right side
     ========================================== */
  @media (min-width: 769px) {
  /* ==========================================
     PROFESSIONAL PRICE BREAKS SIDEBAR
     ========================================== */
  .price-breaks-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .price-breaks-sidebar.open {
    right: 0;
  }
  
  .price-breaks-sidebar-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  
  .price-breaks-sidebar-header h2 {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .price-breaks-sidebar-header h2::before {
    content: '';
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z' /%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .price-breaks-sidebar-header .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 20px;
    font-weight: 400;
  }
  
  .price-breaks-sidebar-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }
  
  .price-breaks-sidebar-content {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
  }
  
  .price-breaks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .price-breaks-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  }

  /* Mobile Price Breaks Sidebar - slide up from bottom */
  @media (max-width: 768px) {
    .price-breaks-sidebar {
      width: 100vw;
      max-width: 100vw;
      right: 0;
      top: auto;
      bottom: -100vh;
      height: 85vh;
      max-height: 85vh;
      border-radius: 20px 20px 0 0;
      transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .price-breaks-sidebar.open {
      bottom: 0;
    }
    
    .price-breaks-sidebar-header {
      padding: 20px 20px;
      border-radius: 20px 20px 0 0;
      position: relative;
      background: linear-gradient(135deg, #1d4ed8 0%, #153eaa 100%) !important;
    }
    
    .price-breaks-sidebar-header::before {
      content: '';
      position: absolute;
      top: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 4px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 2px;
    }
    
    .price-breaks-sidebar-content {
      padding: 20px;
    }
  }
  
  .price-breaks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  .price-breaks-table th,
  .price-breaks-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .price-breaks-table th {
    background: #fff;
    font-weight: 600;
    color: #374151;
  }
  
  /* MOBILE SIZE GRID FIX - EXTREME SPECIFICITY - FINAL OVERRIDE */
  @media (max-width: 768px) {
    #size-grid,
    body #size-grid,
    html body #size-grid,
    #single-product-info #size-grid,
    #product-section #size-grid,
    #product-details-scroll-container #size-grid,
    .product-details-content #size-grid,
    #size-grid.grid,
    #size-grid.text-center.text-sm.text-\[#023151\] {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 24px !important;
      padding: 24px !important;
      max-width: 100% !important;
      overflow-x: auto !important;
      width: 100% !important;
      box-sizing: border-box !important;
      justify-items: center !important;
      align-items: start !important;
    }

    /* Override fixed widths on size input containers */
    #size-grid .quantity-block-multiple__input___lxQHR,
    #size-grid .quantity-block-multiple__sizeItem____cChu .quantity-block-multiple__input___lxQHR {
      width: 100% !important;
      max-width: 100px !important;
      min-width: 70px !important;
      height: 65px !important;
    }
  }
