/* --- Custom Tab Buttons (Modern, Soft, Shadowed) --- */
.custom-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.custom-tab-btn {
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 0.8rem;
  min-width: 100px;
  /* width: 120px; */
  text-align: start;
  font-weight: light;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  margin-bottom: 0;
  margin-top: 0;
  letter-spacing: 0.01em;
  padding-left: 8px;
  padding-right: 48px;
}
.custom-tab-btn:not(.active) {
  background: #fff;
  color: #181c2a;
  border: 1.5px solid #e3e6ee;
}
.custom-tab-btn.active {
  background: #000000;
  color: #fff;
  /* font-weight: 500; */
  border: none;
}
.custom-tab-btn:not(.active):hover,
.custom-tab-btn:not(.active):focus {
  background: #f5f7fa;
  color: #000000;
  border: 1.5px solid #bfc6d6;
}
/* Responsive for smaller screens */
@media (max-width: 600px) {
  .custom-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .custom-tab-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 8px;
    /* text-align: center; */
    min-width: 0;
    /* padding-right: 8px; */
  }
}
/* Matboard subtabs styling */
.matboard-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.matboard-subtab-button {
  background: #f7f7f7;
  border: 1px solid #d0d0d0;
  border-radius:6px; 
  padding: 8px 22px;
  font-size: 1rem;
  color: #444;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: relative;
  top: 2px;
}
.matboard-subtab-button.active {
  background: #fff;
  /* color: #0078d4; */
  /* color: #000; */
  /* border-bottom: 2px solid #fff; */
  font-weight: 600;
  z-index: 2;
}
.matboard-subtab-button:not(.active):hover {
  background: #ececec;
  color: #0078d4;
  border-color: #b0b0b0;
}
@import url('./slip-ui.css');

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    /* padding: 20px;
    background-color: #f5f5f5; */
}

.container, .frame-app-container {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    /* overflow-x: hidden; */
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.image-input,
.real-height-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;

}

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

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Real height input container with button */
.real-height-input-container {
    position: relative;
    display: inline-block;
    width: 100px;
}

.real-height-input-container .real-height-input {
    width: 100%;
    padding-right: 35px; /* Make room for button */
    box-sizing: border-box;
}

.real-height-confirm-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #0e6c3b;
    color: white;
    border: none;
    border-radius: 3px;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.real-height-confirm-btn:hover {
    background: #333;
}

.real-height-confirm-btn:active {
    background: #555;
    transform: translateY(-50%) scale(0.95);
}

.real-height-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.real-height-confirm-btn:disabled:hover {
    background: #ccc;
}

/* Hide the default file input */
.controls .image-input {
    display: none;
}

/* Custom upload button */
.controls .upload-label {
    min-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0 18px;
    gap: 8px;
    background: #000000;
    color: #fff;
    /* font-weight: 600; */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}
.controls .upload-label:hover, .controls .upload-label:focus {
    background: #464646;
    box-shadow: 0 4px 16px rgba(0,115,170,0.10);
}

/* Filename display styling */
.controls .filename {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: #444;
    font-size: 0.95em;
    margin-top: 4px;
    word-break: break-all;
}

/* Divider between controls and tabs */
.controls-tabs-divider {
    border-bottom: 1px solid #e0e0e0;
}

.frame-selector {
    /* margin: 20px 0; */
    width: 100%;
    box-sizing: border-box;
}

.tabs {
    width: 100%;
    box-sizing: border-box;
    /* background: #fff; */
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button.active {
    background: #f8f8f8;
    color: #000;
}

.tab-content {
    display: none;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

.tab-content.active {
    display: block;
}

.frame-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Material filter buttons */
.frame-material-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.material-filter-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.material-filter-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.material-filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.frame-item {
    position: relative;
    font-size: 0;
}

.frame-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.frame-label {
    display: block;
    cursor: pointer;
}

.frame-thumb {
    display: block;
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    /* background: #f3f3f3; */
}

.frame-thumb-no-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    border: 1px solid #ccc;
}

/* Priority-based loading states */
.frame-thumb.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.frame-thumb.placeholder {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.frame-thumb.error {
    /* background: #f8d7da; */
    border: 1px solid #f5c6cb;
}

.frame-placeholder,
.frame-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    padding: 4px;
}

.frame-error {
    color: #721c24;
}

/* Critical priority loading indicator */
.frame-thumb.loading.critical::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* High priority loading indicator */
.frame-thumb.loading.high::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 4px;
    height: 4px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.frame-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

/* Loading state for frame thumbnails */
.frame-thumb.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fallback for browsers without :has() support */
/* .frame-thumb[data-image-url] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
} */

/* Ensure smooth loading */
.frame-thumb img[style*="opacity: 0"] {
    opacity: 0 !important;
}

/* Matboard skeleton loading states */
.matboard-image-thumb.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.matboard-image-thumb.placeholder {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6c757d;
}

.matboard-image-thumb.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #721c24;
}

.frame-radio:checked + .frame-label .frame-thumb {
    border-color: #000000;
    background-color: #f0f7ff;
}

#canvas, .frame-canvas {
    max-width: 100%;
    height: var(--canvas-height, 60vh);
    max-height: 60vh;
    display: block;
    position: sticky;
    top: var(--canvas-top-margin, calc((100vh - var(--canvas-height, 60vh)) / 2));
    z-index: 10;
    /* Debug: Add background to see if element is there */
    object-fit: contain;
    /* margin: 0 auto; */
    /* cursor: pointer; */

    transition: opacity 0.2s ease;
}

/* #canvas:hover, .frame-canvas:hover {
    opacity: 0.9;
} */

.canvas-clickable {
    cursor: pointer !important;
}

.canvas-clickable:hover {
    opacity: 0.85 !important;
    transform: scale(1.01);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.frame-app-container.dragover,
.frame-app-container .frame-canvas.dragover {
    outline: 2px dashed #262626;
    background: rgba(0, 0, 0, 0.07);
}

.frame-app-container {
    /* display: flex; */
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.frame-app-left {
    flex: 0 0 50%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

.frame-app-right {
    flex: 1 1 50%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.frame-app-container .frame-canvas {
    width: 100%;
    max-width: 100%;
    height: var(--canvas-height, 60vh);
    max-height: 60vh;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

/* .frame-app-container .frame-canvas:hover {
    opacity: 0.9;
} */

.frame-app-container .frame-canvas.canvas-clickable:hover {
    opacity: 0.85 !important;
    transform: scale(1.01);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Canvas wrapper to group canvas and dimensions */
.canvas-wrapper {
    position: sticky;
    top: var(--canvas-top-margin, calc((100vh - var(--canvas-height, 60vh)) / 2));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dimensions text that moves with canvas */
.canvas-dimensions {
    font-size: 10px !important;
    color: #666 !important;
    text-align: center !important;
    margin-top: 5px !important;
    opacity: 0.8 !important;
    line-height: 1.2 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.image-preview-thumb img {
    height: 40px;
    max-width: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    object-fit: cover;
    vertical-align: middle;
    display: inline-block;
}

.controls > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matboard-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.matboard-color-item {
    display: flex;
    font-size: 0;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 2px 2px 2px 2px;
    transition: border 0.2s, box-shadow 0.2s;
}
.matboard-color-item.selected {
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    background: #f3faff;
}
.matboard-color-item:focus {
    outline: none;
    border: 2px solid #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}
.matboard-color-item.selected:focus {
    border: 2px solid #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.10);
}
.matboard-color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    border: 2px solid #ccc;
    transition: border 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.matboard-color-item.selected .matboard-color-swatch {
    border: 2px solid #000000;
    box-shadow: none;
}
.matboard-color-name {
    font-size: 0.75rem;
    color: #333;
    text-align: left;
    max-width: 80px;
    word-break: break-word;
    margin: 0;
    padding: 0;
}

.matboard-width-input {
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
    font-size: 1rem;
}
.inner-matboard-width-input {
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
    font-size: 1rem;
}

.matboard-image-thumb {

    pointer-events: none;
    user-select: none;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container, .frame-app-container {
        padding: 10px;
        flex-direction: column;
        display: flex;
    }

    .frame-app-left,
    .frame-app-right {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }

    .frame-app-left {
        padding: 0 !important;
        justify-content: flex-start;
        min-height: auto;
    }

    canvas {
        width: 100%;
        height: auto !important;
        max-height: none !important;
        position: static !important;
        top: auto !important;
    }

    .controls {
        /* gap: 12px; */
        width: 100%;
        flex-direction: column;
    }

    .controls .upload-label {
        width: 100%;
        justify-content: center;
        padding: 0px;
        min-height: 48px; /* Larger touch target */
    }

    .frame-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        width: 100%;
    }

    .frame-item {
        width: 100%;
        display: flex;
        justify-content: center;
        font-size: 0;
    }

    .frame-thumb {
        position: relative;
        max-width: 70px; /* Prevents them from getting too large on bigger mobile screens */
        border: 2px solid transparent !important;
        border-radius: 4px !important;
        transition: all 0.2s;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f3f3f3 !important; /* Default background for "No Frame" */
    }

    /* For browsers that support aspect-ratio */
    @supports (aspect-ratio: 1) {
        .frame-thumb {
        }
    }


    .frame-thumb-no-frame {
        border: 2px solid #e2e2e2 !important;
    }

    .frame-thumb img {
        position: absolute;
        top: 2px; /* Account for border */
        left: 2px;
        right: 2px;
        bottom: 2px;
        width: calc(100% - 4px);
        height: calc(100% - 4px);
        object-fit: cover;
        border-radius: 2px;
    }

    /* Reset background for frame thumbs with images */
    .frame-thumb:has(img) {
        background: transparent !important;
    }

    /* Fallback for browsers without :has() support */
    .frame-item:not(:first-child) .frame-thumb {
        background: transparent !important;
        font-size: 0;
    }

    /* Ensure selected state works properly */
    .frame-radio:checked + .frame-label .frame-thumb {
        border-color: #000000 !important;
        background-color: #f0f7ff !important;
    }

    /* For browsers with aspect-ratio support */
    @supports (aspect-ratio: 1) {
        .frame-thumb img {
            position: static;
            width: 100%;
            height: 100%;
            top: auto;
            left: auto;
            right: auto;
            bottom: auto;
        }
    }

    .frame-material-filters {
        flex-wrap: wrap;
        gap: 6px;
    }

    .material-filter-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .matboard-subtabs {
        flex-wrap: wrap;
    }

    .matboard-subtab-button {
        flex: 1;
        min-width: calc(50% - 10px);
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }

    .matboard-color-list {
        /* justify-content: stretch; */
        /* padding: 8px; */
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .matboard-color-item {
        /* flex: 1; */
        /* min-width: calc(33.33% - 12px); */
        /* max-width: calc(50% - 12px); */
        max-width: fit-content;
        /* justify-content: center; */
        padding: 3px 3px;
    }

    .matboard-width-input {
        width: 100%;
        box-sizing: border-box;
    }

    .inner-matboard-width-input {
        width: 100%;
        box-sizing: border-box;
    }

    .custom-tab-btn {
        padding: 8px 12px;
        width: 100%;
        /* text-align: center; */
        font-size: 0.9rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 601px) and (max-width: 900px) {
    .frame-app-container {
        padding: 15px;
    }

    .matboard-color-item {
        flex: 1;
        min-width: calc(25% - 12px);
        max-width: calc(33.33% - 12px);
    }

    .frame-list {
        justify-content: flex-start;
    }

    .custom-tab-btn {
        min-width: calc(33.33% - 12px);
    }
}

/* General improvements for touch devices */
@media (hover: none) {
    .custom-tab-btn,
    .matboard-subtab-button,
    .frame-thumb,
    .matboard-color-item {
        cursor: default;
    }

    .custom-tab-btn:active,
    .matboard-subtab-button:active {
        transform: scale(0.98);
    }

    .controls .upload-label:active {
        transform: translateY(1px);
    }
}

/* Slip UI Styles - Vertical Radio List */

#slipList .slip-radio-item {
    display: flex !important;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 10px;
}

#slipList .slip-radio-item:hover {
    background: #f8f9fa;
    border-color: #e3e6ee;
}


#slipList .slip-radio-item:has(.slip-radio:checked) {
    background: #f0f7ff !important;
    border-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}



#slipList .slip-radio {
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000000;
    width: 16px;
    height: 16px;
}

#slipList .slip-radio:focus {
    outline: none;
}

#slipList .slip-radio-label {
    cursor: pointer;
    font-size: 0.9rem !important;
    color: #333;
    font-weight: 400;
    flex: 1;
    margin: 0;
    line-height: 1.4;
    display: block;
    padding: 12px 0px;
}

#slipList .slip-radio-item:has(.slip-radio:checked) .slip-radio-label {
    color: #000000 !important;
    font-weight: 500;
}

/* Extra UI Styles - Vertical Radio List */
#extraList .extra-radio-item {
    display: flex !important;
    align-items: center;
    padding: 0px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

#extraList .extra-radio-item:hover {
    background: #f8f9fa;
    border-color: #e3e6ee;
}

#extraList .extra-radio-item:has(.extra-radio:checked) {
    background: #f0f7ff !important;
    border-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

#extraList .extra-radio {
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000000;
    width: 16px;
    height: 16px;
}

#extraList .extra-radio:focus {
    outline: none;
}

#extraList .extra-radio-label {
    cursor: pointer;
    font-size: 0.9rem !important;
    color: #333;
    font-weight: 400;
    flex: 1;
    margin: 0;
    line-height: 1.4;
    display: block;
    padding: 12px 0px;
}

#extraList .extra-radio-item:has(.extra-radio:checked) .extra-radio-label {
    color: #000000 !important;
    font-weight: 500;
}

/* Glass UI Styles - Vertical Radio List */
#glassList .glass-radio-item {
    display: flex !important;
    align-items: center;
    padding: 0px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

#glassList .glass-radio-item:hover {
    background: #f8f9fa;
    border-color: #e3e6ee;
}

#glassList .glass-radio-item:has(.glass-radio:checked) {
    background: #f0f7ff !important;
    border-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

#glassList .glass-radio {
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000000;
    width: 16px;
    height: 16px;
}

#glassList .glass-radio:focus {
    outline: none;
}

#glassList .glass-radio-label {
    cursor: pointer;
    font-size: 0.9rem !important;
    color: #333;
    font-weight: 400;
    flex: 1;
    margin: 0;
    line-height: 1.4;
    display: block;
    padding: 12px 0px;
}

#glassList .glass-radio-item:has(.glass-radio:checked) .glass-radio-label {
    color: #000000 !important;
    font-weight: 500;
}

/* End of styles */

/* Order Form Styles */
.order-form {
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.order-summary {
    background: #f8f9fa;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-summary h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.order-summary ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
}

.order-summary li {
    padding: 8px 0;
    border-bottom: 1px solid #e3e6ee;
}

.order-summary li:last-child {
    border-bottom: none;
}

.price-breakdown {
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.price-breakdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-breakdown li {
    padding: 6px 0;
    color: #666;
    font-size: 0.95rem;
}

.total-price {
    margin-top: 12px;
    padding-top: 12px;
    /* border-top: 2px solid #333; */
    font-size: 1.2rem;
    color: #333;
}

.customer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.create-order-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.create-order-btn:hover:not(:disabled) {
    background: #1c1c1c;
}

.create-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.order-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 6px;
    display: none;
}

.order-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 16px;
    border-radius: 6px;
    font-size: 1rem;
}

.order-success h3 {
    margin: 0 0 12px 0;
    color: #2e7d32;
}

.order-error {
    background: #ffeaea;
    border: 1px solid #f44336;
    color: #c62828;
}

.order-error h3 {
    margin: 0 0 12px 0;
    color: #c62828;
}

/* Responsive design for order form */
@media (max-width: 768px) {
    .customer-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .order-form {
        padding: 16px;
    }
    
    .order-summary {
        padding: 16px;
    }
}
