/* Sticky Button and Sidebar Styles */
.sticky-cart-wrapper {
    position: fixed;
    z-index: 999;
}

/* Sticky Button - Base Styles */
.sticky-test-cart-button {
    background: #0AB1F0;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 998 !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Ensure text stays on one line */
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 15px;
    position: relative;
}

.sticky-test-cart-button:hover {
    background: #0899d6;
}

.sticky-test-cart-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(10, 177, 240, 0.3);
}

/* Hide icon by default */
.sticky-button-icon {
    display: none;
}

/* Container styles for both mobile and desktop */
#sticky-button-container,
#sticky-button-desktop-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 997 !important;
    display: none; /* Hidden by default, will be shown via JS */
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .sticky-test-cart-button {
        box-shadow: 0 2px 8px rgba(10, 177, 240, 0.2);
    }
    
    /* Remove animations that might break the layout */
    .sticky-test-cart-button {
        animation: none;
    }
    
    .sticky-test-cart-button:hover,
    .sticky-test-cart-button:active {
        transform: none;
    }
}

/* Desktop Styling - bottom-right corner */
@media (min-width: 769px) {
    .sticky-test-cart-button {
        position: fixed ;
        left: auto !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 50px !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
        box-shadow: 0 4px 12px rgba(10, 177, 240, 0.3) !important;
    }
    
    .sticky-test-cart-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(10, 177, 240, 0.4) !important;
    }
}

/* Sticky Sidebar - More Compact */
.sticky-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001 !important;
    overflow-y: auto;
    padding-bottom: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.sticky-sidebar.open {
    right: 0;
}

.sticky-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.sticky-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.close-sticky-sidebar {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-sticky-sidebar:hover {
    background: #f5f5f5;
    color: #333;
}

.sticky-sidebar-content {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

/* Sections - More Compact */
.sticky-section {
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
}

.sticky-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sticky-section-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #0AB1F0;
    color: white;
    border-radius: 50%;
    margin-right: 6px;
    font-size: 12px;
}

/* Shape Grid - More Compact */
.sticky-shape-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 5px;
}

.sticky-shape-option {
    position: relative;
    cursor: pointer;
    width: auto;
}

.sticky-shape-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0px!important;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.sticky-shape-content img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.sticky-shape-content svg {
    width: 31px;
    height: 31px;
    transition: transform 0.2s ease;
}

.sticky-shape-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sticky-shape-option:hover .sticky-shape-content {
    border-color: #0AB1F0;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(10, 177, 240, 0.1);
}

.sticky-shape-option input[type="radio"]:checked + .sticky-shape-content {
    border-color: #0AB1F0;
    background: #f0f8ff;
    box-shadow: 0 2px 6px rgba(10, 177, 240, 0.15);
}

.sticky-shape-option input[type="radio"]:checked + .sticky-shape-content img {
    transform: scale(1.1);
}

.sticky-shape-option input[type="radio"]:checked + .sticky-shape-content svg {
    transform: scale(1.1);
}

/* Thickness Grid - More Compact */
.sticky-thickness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 6px;
}

.sticky-thickness-option {
    position: relative;
}

.sticky-thickness-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sticky-thickness-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-thickness-input:not(:disabled) + .sticky-thickness-label:hover {
    border-color: #0AB1F0;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(10, 177, 240, 0.1);
}

.sticky-thickness-input:checked + .sticky-thickness-label {
    border-color: #0AB1F0;
    background: #f0f8ff;
    color: #0AB1F0;
    box-shadow: 0 2px 6px rgba(10, 177, 240, 0.15);
}

.sticky-thickness-input:disabled + .sticky-thickness-label {
    background: #f1f1f1;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.sticky-thickness-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    display: none;
    z-index: 100;
}

.sticky-thickness-option:hover .sticky-thickness-tooltip {
    display: block;
}

/* Dimensions Grid - More Compact */
.sticky-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.sticky-dimension-field {
    position: relative;
}

.sticky-dimension-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    transition: all 0.2s ease;
    background: #fff;
}

.sticky-dimension-input:hover {
    border-color: #0AB1F0;
    background: #fff;
}

.sticky-dimension-input:focus {
    outline: none;
    border-color: #0AB1F0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(10, 177, 240, 0.1);
}

.sticky-dimension-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

/* Improved error message display */
.sticky-dimension-error {
    color: #dc3545;
    font-size: 11px;
    margin-top: 2px;
    display: block;
    min-height: 14px;
    font-weight: 500;
}

.sticky-dimension-limits {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
    display: block;
}

/* Improved preview zone styling */
.sticky-preview-zone {
    position: relative;
    margin-top: 15px;
    margin-bottom: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #fff;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-preview-zone:hover {
    border-color: #0AB1F0;
    box-shadow: 0 4px 12px rgba(10, 177, 240, 0.15);
}

.StickyFormeZone {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background-color: #fff;
    background-image: 
        linear-gradient(rgba(10, 177, 240, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 177, 240, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-size 0.3s ease;
}

.StickyFormeZone svg {
    overflow: visible !important;
    transition: all 0.3s ease;
}

svg#sticky-drawing_octagone {
    overflow: visible !important;
}

.sticky-drawingContainer {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Preview wrapper to contain both preview zone and zoom controls */
.sticky-preview-wrapper {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Improved preview zone with full rounded corners */
.sticky-preview-zone {
    position: relative;
    margin: 0 0 15px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Redesigned zoom controls - now in a separate container below the preview */
.sticky-zoom-controls {
    display: none !important;
}

.sticky-zoom-btn {
    display: none !important;
}

.sticky-zoom-level {
    display: none !important;
}

/* Redesigned scale indicator - now in bottom right corner with proper spacing */
.scale-indicator-container {
    display: none !important;
}

.scale-bar {
    display: none !important;
}

.scale-text {
    display: none !important;
}

/* Ensure the preview zone has proper positioning for absolute elements */
.sticky-preview-zone, .preview-zone {
    position: relative !important;
    overflow: hidden !important;
}

/* Enhanced figure styling */
.sticky-figure {
    fill: rgba(10, 177, 240, 0.3);
    stroke: #0AB1F0;
    stroke-width: 1.5;
    transition: fill 0.3s ease, stroke-width 0.3s ease;
}

/* Improved dimension lines */
.sticky-dimension-line {
    stroke: #0AB1F0;
    stroke-width: 2;
    marker-end: url(#sticky-line-end);
    marker-start: url(#sticky-line-end);
    vector-effect: non-scaling-stroke;
}

/* Improved dimension text */
.sticky-dimension-text {
    fill: #333;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    alignment-baseline: middle;
    paint-order: stroke;
    stroke: white;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hide zoom instructions as they're now redundant */
.sticky-zoom-instructions {
    display: none !important;
}

/* Price and Add to Cart - More Compact */
.sticky-price-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Adjust price display for responsiveness */
.sticky-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 4px;
    border: 1px solid #d1e7ff;
    width: 100%;
    max-width: 340px;
}

/* Responsive adjustments for price label */
.sticky-price-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 10px;
}

/* Responsive adjustments for price amount */
.sticky-price-amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0AB1F0 !important;
    text-align: right !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .sticky-price-display {
        flex-direction: row;
        align-items: center;
    }

    .sticky-price-label,
    .sticky-price-amount {
        font-size: 12px;
    }
}

.sticky-add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: #0AB1F0;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sticky-add-to-cart-btn:hover:not(:disabled) {
    background: #0899d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(10, 177, 240, 0.2);
}

.sticky-add-to-cart-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Add spinner for the add to cart button */
.sticky-add-to-cart-btn.loading {
    color: transparent !important;
}

.sticky-add-to-cart-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: sticky-spinner 0.8s linear infinite;
}

@keyframes sticky-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success message styling */
.sticky-success-message {
    background-color: #f8fff8;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Help Button - More Compact */
.sticky-help-btn {
    color: #0AB1F0;
    background: none;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sticky-help-btn:hover {
    background: rgba(10, 177, 240, 0.1);
    transform: scale(1.1);
}

/* Popup - More Compact */
.sticky-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.sticky-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    font-size: 13px;
}

.sticky-close-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sticky-close-popup:hover {
    color: #333;
}

.sticky-popup-content {
    margin-top: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sticky-sidebar {
        width: 100%;
        right: -100%;
        max-width: 100%;
    }
    
    /* Show all 7 icons in one row without scrolling */
    .sticky-shape-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 4px;
    }
    
    /* Make shape options smaller to fit */
    .sticky-shape-option {
        width: auto;
    }
    
    .sticky-shape-content {
        padding: 0px!important;
    }
    
    .sticky-shape-content img {
        width: 32px;
        height: 32px;
    }
    
    .sticky-shape-content svg {
        width: 32px;
        height: 32px;
        transform: scale(1);
    }
    
    /* Other mobile optimizations remain the same */
    .sticky-test-cart-button {
        padding: 8px 12px;
    }
    
    .sticky-button-text {
        display: none;
    }
    
    /* Reduce vertical spacing throughout */
    .sticky-section {
        margin-bottom: 4px;
        padding: 8px;
    }
    
    .sticky-section-header {
        margin-bottom: 6px;
    }
    
    .sticky-section-header h4 {
        font-size: 13px;
    }
    
    /* Rest of mobile styles remain unchanged */
}

/* Fix for Autoptimize */
.sticky-sidebar * {
    box-sizing: border-box !important;
}

/* Remove old zoom effect styles */
.sticky-shape-zoom-effect {
    display: none !important;
}

.sticky-shape-highlight {
    display: none !important;
}

@keyframes highlightPulse {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

.sticky-zoom-icon {
    display: none !important;
}

@keyframes zoomIconPulse {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

.sticky-preview-zone:has(.sticky-shape-zoom-effect) {
    border-color: inherit;
}

.sticky-zoom-tooltip {
    display: none !important;
}

/* Enhanced preview zone when zoomed */
.sticky-preview-zone-zoomed {
    border-color: rgba(10, 177, 240, 0.5);
    box-shadow: 0 0 15px rgba(10, 177, 240, 0.2), inset 0 0 10px rgba(10, 177, 240, 0.1);
    background-color: #f9fdff;
}

/* Make the zoom icon more prominent */
.sticky-preview-zone-zoomed .sticky-zoom-icon {
    background-color: rgba(10, 177, 240, 0.1);
    border: 1px solid rgba(10, 177, 240, 0.3);
}

/* Enhance the grid background for zoomed shapes */
.sticky-preview-zone-zoomed .StickyFormeZone {
    background-image: 
        linear-gradient(rgba(10, 177, 240, 0.05) 1px, transparent 1px), 
        linear-gradient(to right, rgba(10, 177, 240, 0.05) 1px, #ffffff 1px);
    background-size: 10px 10px;
}

/* Remove old measurement point styles */
.measurement-point {
    display: none !important;
}

.measurement-point:hover {
    display: none !important;
}

.measurement-point[data-point="width-start"]:hover::after,
.measurement-point[data-point="width-end"]:hover::after,
.measurement-point[data-point="length-start"]:hover::after,
.measurement-point[data-point="length-end"]:hover::after,
.measurement-point[data-point="diameter-start"]:hover::after,
.measurement-point[data-point="diameter-end"]:hover::after {
    display: none !important;
}

.measurement-label {
    display: none !important;
}

.measurement-line {
    display: none !important;
}

.measurement-tooltip {
    display: none !important;
}

.measurement-point:hover + .measurement-tooltip {
    display: none !important;
}

/* Measurement guide dots */
.measurement-guide-dot {
    fill: #ff3b30;
    stroke: white;
    stroke-width: 1;
    r: 4;
}

/* Measurement guide lines */
.measurement-guide-line {
    stroke: #ff3b30;
    stroke-width: 1.5;
    stroke-dasharray: 3, 3;
}

/* Measurement arrows */
.measurement-arrow {
    fill: #ff3b30;
    stroke: none;
}

/* Measurement guide labels */
.measurement-guide-label {
    font-size: 10px;
    fill: #333;
    font-weight: 600;
    text-anchor: middle;
    paint-order: stroke;
    stroke: white;
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Enhance dimension lines to make them more visible */
.sticky-dimension-line {
    stroke: #0AB1F0;
    stroke-width: 2;
    marker-end: url(#sticky-line-end);
    marker-start: url(#sticky-line-end);
    vector-effect: non-scaling-stroke;
}

/* Enhance dimension text */
.sticky-dimension-text {
    fill: #333;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    alignment-baseline: middle;
    paint-order: stroke;
    stroke: white;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Make thickness header consistent with other section headers */
.thickness-header {
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px !important;
}

.thickness-header h3,
.sticky-thickness-header {
    color: #333 !important;
    font-size: 16px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    display: inline-block;
    align-items: center;
}

/* Ensure consistent styling for all section headers in the sticky sidebar */
.sticky-section-header h4 {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Ensure the thickness section header matches other section headers */
.sticky-thickness-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Fix thickness section header to match other section headers */
.sticky-section.thickness-selection .sticky-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sticky-section.thickness-selection h4.sticky-section-header {
    display: inline-block !important;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Ensure consistent styling for step numbers across all sections */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #0AB1F0;
    color: white;
    border-radius: 50%;
    margin-right: 6px;
    font-size: 12px;
}

/* Fix specific issue with thickness header */
.sticky-thickness-header {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Ensure the thickness section header is properly structured */
.sticky-section.thickness-selection .sticky-section-header h4,
.sticky-section.thickness-selection .sticky-thickness-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Fix the price section to be truly fixed at the bottom */
.sticky-section.price-section {
    position: fixed;
    bottom: 0;
    left: auto;
    right: 0;
    width: 340px;
    background: white;
    margin-bottom: 0;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* Adjust sidebar content to not overlap with fixed price section */
.sticky-sidebar-content {
    padding-bottom: 100px;
    overflow-y: auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .sticky-section.price-section {
        width: 100%;
        padding: 10px;
    }
    
    .sticky-sidebar-content {
        padding-bottom: 90px;
    }
}

/* When sidebar is open, adjust the price section position */
.sticky-sidebar.open .sticky-section.price-section {
    right: 0;
}

/* When sidebar is closed, move price section off-screen */
.sticky-sidebar:not(.open) .sticky-section.price-section {
    right: -350px;
}

@media (max-width: 768px) {
    .sticky-sidebar:not(.open) .sticky-section.price-section {
        right: -100%;
    }
}

/* Quantity input styling */
.sticky-quantity-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 36px;
    margin-right: 10px;
    background: white;
}

.sticky-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.sticky-quantity-btn:hover {
    background: #e9ecef;
}

.sticky-quantity-btn:active {
    background: #dde2e6;
}

.sticky-quantity-input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    -moz-appearance: textfield;
}

.sticky-quantity-input::-webkit-outer-spin-button,
.sticky-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart actions container */
.sticky-cart-actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

/* Make the add to cart button take remaining space */
.sticky-add-to-cart-btn {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-quantity-container {
        height: 32px;
    }
    
    .sticky-quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .sticky-quantity-input {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Fix for the price section to accommodate the quantity controls */
.sticky-section.price-section {
    padding-bottom: 15px;
}

/* Ensure the grid doesn't wrap on desktop */
@media (min-width: 769px) {
    .sticky-shape-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 8px;
    }
    
    /* Slightly larger icons on desktop */
    .sticky-shape-content img {
        width: 32px;
        height: 32px;
    }
}

/* Ensure the grid doesn't wrap on smaller screens */
@media (max-width: 768px) {
    .sticky-shape-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 4px;
    }
    
    .sticky-shape-content {
        padding: 0px!important;
    }
    
    .sticky-shape-content img {
        width: 24px;
        height: 24px;
    }
    
    .sticky-shape-content svg {
        width: 24px;
        height: 24px;
        transform: scale(0.9);
    }
}

/* Make single fields take full width in sticky cart */
.sticky-dimensions-grid > .sticky-dimension-field:only-child {
    grid-column: 1 / -1 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.sticky-thickness-grid > .sticky-thickness-option:only-child {
    grid-column: 1 / -1 !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .sticky-dimensions-grid > .sticky-dimension-field:only-child {
        max-width: 100% !important;
    }
}

/* Ensure the sticky button container has a lower z-index */
#sticky-button-container,
#sticky-button-desktop-container {
    z-index: 997 !important;
}

/* Ensure the sidebar has a higher z-index */
.shoptimizer-mini-cart-wrap {
    z-index: 1000 !important;
}

/* Ensure the sticky sidebar has a higher z-index */
.sticky-sidebar {
    z-index: 1001 !important;
}

/* SVG STYLES FOR STICKY CART SHAPE SELECTION */
.sticky-shape-content svg {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.sticky-shape-option input[type="radio"]:checked + .sticky-shape-content svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .sticky-shape-content svg {
        width: 32px;
        height: 32px;
        transform: scale(1);
    }
} 