/**
 * zCustomization - Front Office Styles
 */

/* Container */
.zcusto-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.zcusto-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

/* Accordion Panels */
.zcusto-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zcusto-panel {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zcusto-panel:hover {
    border-color: #000;
}

.zcusto-panel.active {
    border-color: #000;
    box-shadow: 0 2px 12px rgba(201, 160, 80, 0.15);
}

.zcusto-panel.completed {
    border-color: #28a745;
}

/* Panel Header */
.zcusto-panel-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s ease;
}

.zcusto-panel-header:hover {
    background: #f5f5f5;
}

.zcusto-panel.active .zcusto-panel-header {
    background: linear-gradient(135deg, #000 0%, #000 100%);
    color: #fff;
}

.zcusto-panel-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    margin-right: 1rem;
    color: #000;
}

.zcusto-panel.active .zcusto-panel-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.zcusto-panel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zcusto-panel-name {
    font-weight: 600;
    font-size: 1rem;
}

.zcusto-panel-price {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.zcusto-panel.active .zcusto-panel-price {
    color: rgba(255,255,255,0.9);
}

.zcusto-panel-price.zcusto-free {
    color: #28a745;
}

.zcusto-panel.active .zcusto-panel-price.zcusto-free {
    color: #90EE90;
}

.zcusto-panel-toggle {
    margin-left: 1rem;
}

.zcusto-panel-toggle .material-icons {
    transition: transform 0.3s ease;
}

.zcusto-panel.active .zcusto-panel-toggle .material-icons {
    transform: rotate(180deg);
}

.zcusto-panel-status {
    margin-left: 0.5rem;
}

.zcusto-status-icon {
    display: none;
}

.zcusto-panel.completed .zcusto-status-icon {
    display: block;
    color: #28a745;
}

.zcusto-panel.completed .zcusto-status-icon::before {
    content: 'check_circle';
}

/* Panel Content */
.zcusto-panel-content {
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.zcusto-panel-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Form Groups */
.zcusto-form .form-group {
    margin-bottom: 1.25rem;
}

.zcusto-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.zcusto-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease;
}

.zcusto-form .form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.15);
}

.zcusto-char-count {
    font-weight: 400;
    font-size: 0.85rem;
    color: #999;
}

/* Panel Actions */
.zcusto-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.zcusto-save-btn {
    background: linear-gradient(135deg, #000 0%, #000 100%);
    border: none;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zcusto-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 160, 80, 0.3);
}

.zcusto-clear-btn {
    color: #999;
}

/* Checkbox Labels */
.zcusto-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.zcusto-checkbox-label:hover {
    border-color: #000;
    background: #fafafa;
}

.zcusto-checkbox-label input:checked + .zcusto-checkbox-text {
    color: #000;
}

.zcusto-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: #000;
}

.zcusto-checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zcusto-extra-price {
    font-size: 0.85rem;
    color: #666;
}

/* Carousels */
.zcusto-chocolate-carousel,
.zcusto-card-carousel,
/* Carousel Wrapper with Navigation */
.zcusto-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.zcusto-carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.zcusto-carousel-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.1);
}

.zcusto-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

.zcusto-carousel-btn:disabled:hover {
    background: #f5f5f5;
    color: inherit;
    border-color: #e0e0e0;
    transform: none;
}

.zcusto-carousel-btn .material-icons {
    font-size: 24px;
}

.zcusto-picking-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #000 #f0f0f0;
}

.zcusto-chocolate-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #000 #f0f0f0;
}

.zcusto-chocolate-carousel::-webkit-scrollbar,
.zcusto-card-carousel::-webkit-scrollbar,
.zcusto-picking-carousel::-webkit-scrollbar {
    height: 6px;
}

.zcusto-chocolate-carousel::-webkit-scrollbar-track,
.zcusto-card-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.zcusto-chocolate-carousel::-webkit-scrollbar-thumb,
.zcusto-card-carousel::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 3px;
}

/* Chocolate Items */
.zcusto-chocolate-item {
    flex: 0 0 120px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.zcusto-chocolate-item:hover {
    border-color: #000;
}

.zcusto-chocolate-item[data-selected="true"] {
    border-color: #000;
    background: rgba(201, 160, 80, 0.1);
}

.zcusto-chocolate-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.zcusto-chocolate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zcusto-chocolate-name {
    font-size: 0.8rem;
    color: #333;
    display: block;
}

.zcusto-chocolate-check {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.zcusto-chocolate-item[data-selected="true"] .zcusto-chocolate-check {
    opacity: 1;
}

/* Selection Info */
.zcusto-selection-info {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.zcusto-selected-count {
    font-weight: 700;
    color: #000;
    font-size: 1.2rem;
}

/* Mode Selector */
.zcusto-mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.zcusto-mode-option {
    flex: 1;
    cursor: pointer;
}

.zcusto-mode-option input {
    display: none;
}

.zcusto-mode-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.zcusto-mode-option input:checked + .zcusto-mode-label {
    border-color: #000;
    background: rgba(201, 160, 80, 0.1);
    color: #000;
}

/* Tray Swap */
.zcusto-tray-swap-entry {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 6px;
}

.zcusto-swap-select {
    flex: 1;
}

.zcusto-swap-arrow {
    padding-bottom: 0.5rem;
    color: #999;
}

.zcusto-add-swap {
    margin-top: 0.5rem;
}

/* Accessories Grid */
.zcusto-accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.zcusto-accessory-item {
    cursor: pointer;
}

.zcusto-accessory-item input {
    display: none;
}

.zcusto-accessory-content {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.zcusto-accessory-item:hover .zcusto-accessory-content {
    border-color: #000;
}

.zcusto-accessory-item input:checked + .zcusto-accessory-content {
    border-color: #000;
    background: rgba(201, 160, 80, 0.1);
}

.zcusto-accessory-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zcusto-accessory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zcusto-accessory-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.zcusto-accessory-price {
    font-size: 0.9rem;
    color: #000;
}

.zcusto-accessory-check {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.zcusto-accessory-item input:checked + .zcusto-accessory-content .zcusto-accessory-check {
    opacity: 1;
}

/* Upload Zone */
.zcusto-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
}

.zcusto-upload-zone.dragover {
    border-color: #000;
    background: rgba(201, 160, 80, 0.1);
}

.zcusto-upload-placeholder .material-icons {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.zcusto-upload-preview {
    position: relative;
    display: inline-block;
}

.zcusto-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
}

.zcusto-remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Previews */
.zcusto-engraving-preview,
.zcusto-embroidery-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.zcusto-preview-box,
.zcusto-bag-preview {
    width: 200px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zcusto-preview-text,
.zcusto-embroidery-lines {
    color: #000;
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.zcusto-embroidery-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wax Seal Preview */
.zcusto-wax-preview {
    margin-top: 1rem;
    text-align: center;
}

.zcusto-wax-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: radial-gradient(circle, #8B0000 0%, #5C0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.zcusto-wax-initials {
    color: rgba(255,255,255,0.9);
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Summary */
.zcusto-summary {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f6f0 0%, #f0ebe0 100%);
    border-radius: 8px;
    border: 1px solid #e0d8c8;
}

.zcusto-summary h4 {
    margin-bottom: 1rem;
    color: #333;
}

.zcusto-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.zcusto-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0d8c8;
}

.zcusto-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    padding-top: 0.5rem;
}

.zcusto-total-price {
    color: #000;
    font-weight: 700;
}

/* Picking Mode */
.zcusto-picking-item {
    flex: 0 0 140px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.zcusto-picking-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.zcusto-picking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zcusto-picking-name {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.zcusto-picking-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.zcusto-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.zcusto-qty-btn:hover {
    border-color: #000;
    color: #000;
}

.zcusto-qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.25rem;
}

/* Card Carousel */
.zcusto-card-option {
    flex: 0 0 120px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zcusto-card-option:hover {
    border-color: #000;
}

.zcusto-card-option.selected {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.3);
}

.zcusto-card-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.zcusto-card-name {
    display: block;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    background: #f5f5f5;
}

/* Message Card Specific Styles */
.zcusto-mc-image-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.zcusto-mc-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.zcusto-mc-image-wrapper:hover {
    transform: scale(1.02);
}

.zcusto-mc-image-wrapper:hover .zcusto-mc-image-overlay {
    opacity: 1;
}

.zcusto-mc-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zcusto-mc-preview-image {
    max-width: 200px;
    max-height: 200px;
    display: block;
    object-fit: contain;
}

/* Image Selector Modal */
.zcusto-image-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.zcusto-image-selector-modal .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.zcusto-image-selector-modal .modal-dialog {
    position: relative;
    z-index: 10001;
    margin: 2rem auto;
    max-width: 900px;
    padding: 0 1rem;
}

.zcusto-image-selector-modal .modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.zcusto-image-selector-modal .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zcusto-image-selector-modal .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.zcusto-image-selector-modal .close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.zcusto-image-selector-modal .close:hover {
    opacity: 1;
}

.zcusto-image-selector-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.zcusto-mc-image-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.zcusto-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.zcusto-field-with-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zcusto-field-with-number input,
.zcusto-field-with-number textarea {
    flex: 1;
}

.zcusto-mc-recipient-group,
.zcusto-mc-message-group {
    margin-bottom: 1.5rem;
}

.zcusto-mc-message-group textarea {
    resize: vertical;
    min-height: 150px;
}

.zcusto-char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .zcusto-container {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .zcusto-mode-selector {
        flex-direction: column;
    }
    
    .zcusto-tray-swap-entry {
        flex-wrap: wrap;
    }
    
    .zcusto-swap-select {
        flex: 0 0 100%;
    }
    
    .zcusto-swap-arrow {
        display: none;
    }
    
    .zcusto-accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   PERSONALIZED ASSORTMENT - GRID 5x3
   ======================================== */

/* Selection Grid */
.zcusto-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.zcusto-grid-slot {
    aspect-ratio: 1;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.zcusto-grid-slot:hover {
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Empty slot state */
.zcusto-grid-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    transition: all 0.2s ease;
}

.zcusto-grid-slot-empty .material-icons {
    font-size: 32px;
    margin-bottom: 0.25rem;
}

.zcusto-grid-slot-empty span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zcusto-grid-slot:hover .zcusto-grid-slot-empty {
    color: #000;
}

/* Filled slot state */
.zcusto-grid-slot-filled {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
    position: relative;
}

.zcusto-grid-slot[data-chocolate-id]:not([data-chocolate-id=""]) {
    border-style: solid;
    border-color: #000;
    background: linear-gradient(135deg, rgba(201, 160, 80, 0.1) 0%, rgba(201, 160, 80, 0.05) 100%);
}

.zcusto-grid-slot[data-chocolate-id]:not([data-chocolate-id=""]):hover {
    background: linear-gradient(135deg, rgba(201, 160, 80, 0.2) 0%, rgba(201, 160, 80, 0.1) 100%);
}

.zcusto-grid-chocolate-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.zcusto-grid-chocolate-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.zcusto-grid-chocolate-name {
    font-size: 0.7rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
}

.zcusto-grid-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0;
}

.zcusto-grid-slot:hover .zcusto-grid-remove {
    opacity: 1;
}

.zcusto-grid-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.zcusto-grid-remove .material-icons {
    font-size: 16px;
}

/* Available chocolates section */
.zcusto-available-chocolates {
    margin-top: 2rem;
}

.zcusto-available-chocolates h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* Modify carousel items for "add" mode */
.zcusto-form-personalized-assortment .zcusto-chocolate-item {
    border-color: #e0e0e0;
    background: #fff;
}

.zcusto-form-personalized-assortment .zcusto-chocolate-item:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.zcusto-chocolate-add {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.zcusto-form-personalized-assortment .zcusto-chocolate-item:hover .zcusto-chocolate-add {
    opacity: 1;
}

/* Remove the old check indicator for this form */
.zcusto-form-personalized-assortment .zcusto-chocolate-check {
    display: none;
}

/* Responsive grid */
@media (max-width: 992px) {
    .zcusto-selection-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .zcusto-grid-chocolate-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .zcusto-selection-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .zcusto-selection-grid {
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .zcusto-grid-slot-empty .material-icons {
        font-size: 24px;
    }
    
    .zcusto-grid-slot-empty span {
        font-size: 0.65rem;
    }
}

/* ==========================================
   Upload & Dropzone Styles
   ========================================== */

.upload-container {
    padding: 1rem;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropzone:hover {
    border-color: #000;
    background: #f5f5f5;
}

.dropzone.dragover {
    border-color: #000;
    background: rgba(201, 160, 80, 0.1);
}

.file-input {
    display: none;
}

.dropzone-content .material-icons {
    font-size: 48px;
    color: #999;
    margin-bottom: 1rem;
}

.dropzone-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-requirements {
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.upload-requirements .material-icons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Upload Preview */
.upload-preview {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.preview-image {
    max-width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.preview-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-info {
    padding: 1rem;
    background: #fafafa;
    border-radius: 6px;
}

.preview-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.preview-info .filename {
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

/* Progress Bar */
#progress-message_card .progress,
#progress-image_on_box .progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

#progress-message_card .progress-bar,
#progress-image_on_box .progress-bar {
    background: linear-gradient(90deg, #000 0%, #C9A050 100%);
    transition: width 0.3s ease;
}

/* Image Selector - Personal Images Tab */
.personal-images .image-item {
    position: relative;
}

.personal-images .btn-delete-image {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.personal-images .image-item:hover .btn-delete-image {
    opacity: 1;
}

.personal-images .btn-delete-image:hover {
    background: #dc3545;
}

.personal-images .btn-delete-image .material-icons {
    font-size: 18px;
}

/* Selected Image Preview (below selector) */
.selected-image-preview {
    margin-top: 1rem;
}

.selected-image-preview .alert {
    border-radius: 8px;
    padding: 1rem;
}

.selected-thumbnail {
    border-radius: 6px;
    border: 2px solid #28a745;
}

.btn-remove-selection {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-selection .material-icons {
    font-size: 18px;
}

