/* Custom Bouquet Builder - Frontend Styles */

.cbb-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Indicator */
.cbb-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.cbb-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.cbb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cbb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.cbb-progress-step.active .cbb-step-number {
    background: #000;
    color: #fff;
    border-color: #000;
}

.cbb-progress-step.completed .cbb-step-number {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}

.cbb-step-label {
    font-size: 12px;
    text-align: center;
    color: #6b7280;
}

.cbb-progress-step.active .cbb-step-label {
    color: #000;
    font-weight: 600;
}

/* Form Steps */
.cbb-step {
    min-height: 400px;
    padding-bottom: 100px;
}

.cbb-step h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #000;
}

.cbb-step-hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f9fafb;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

/* Products Grid */
.cbb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cbb-product-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #fff;
}

.cbb-product-card:hover {
    border-color: #000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cbb-product-card.selected {
    border-color: #10B981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cbb-product-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #10B981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

.cbb-product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.cbb-product-card.loading .cbb-product-image {
    opacity: 0.5;
}

.cbb-product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cbb-product-price {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.cbb-stock-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cbb-stock-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.cbb-stock-badge.on_request {
    background: #fef3c7;
    color: #92400e;
}

.cbb-stock-badge.out_of_season {
    background: #fee2e2;
    color: #991b1b;
}

/* Inline Controls */
.cbb-inline-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbb-color-row,
.cbb-card-color-row,
.cbb-quantity-row {
    margin-bottom: 12px;
}

.cbb-card-color-row {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.cbb-more-colors-btn {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 8px;
    width: 100%;
}

.cbb-more-colors-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.cbb-more-colors-btn.active {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
    border-style: solid;
}

.cbb-card-color-swatches-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.cbb-color-row label,
.cbb-card-color-row label,
.cbb-quantity-row label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #374151;
}

/* Color Swatches */
.cbb-color-swatches,
.cbb-card-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbb-color-swatch,
.cbb-card-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 6px;
    border: 2px solid transparent;
}

.cbb-color-swatch:hover,
.cbb-card-color-swatch:hover {
    transform: translateY(-2px);
}

.cbb-color-swatch.selected,
.cbb-card-color-swatch.selected {
    border-color: #10B981;
    background: #f0fdf4;
}

.cbb-swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
}

.cbb-color-swatch:hover .cbb-swatch-color,
.cbb-card-color-swatch:hover .cbb-swatch-color {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cbb-color-swatch.selected .cbb-swatch-color,
.cbb-card-color-swatch.selected .cbb-swatch-color {
    border-color: #10B981;
    border-width: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10B981;
}

.cbb-color-swatch.selected .cbb-swatch-color::after,
.cbb-card-color-swatch.selected .cbb-swatch-color::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cbb-swatch-label {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cbb-color-swatch.selected .cbb-swatch-label,
.cbb-card-color-swatch.selected .cbb-swatch-label {
    color: #10B981;
    font-weight: 600;
}

.cbb-item-subtotal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbb-subtotal-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.cbb-subtotal-value {
    font-size: 16px;
    font-weight: 700;
    color: #10B981;
}

/* Flower Selections */
#cbb-flower-selections {
    margin-bottom: 20px;
}

.cbb-flower-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: all 0.3s;
}

.cbb-flower-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cbb-flower-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cbb-flower-details {
    flex: 1;
}

.cbb-flower-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.cbb-flower-price-per {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.cbb-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cbb-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cbb-qty-btn:hover {
    background: #333;
    border-color: #333;
    transform: scale(1.05);
}

.cbb-qty-btn:active {
    transform: scale(0.95);
}

.cbb-quantity-controls input {
    width: 60px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #f9fafb;
}

.cbb-flower-subtotal {
    font-weight: 700;
    font-size: 18px;
    color: #000;
    margin-left: auto;
}

.cbb-remove-flower {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    width: auto;
    height: auto;
}

.cbb-remove-flower:hover {
    color: #000;
    transform: scale(1.2);
}

.cbb-price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: right;
    font-size: 18px;
    color: #fff;
    position: sticky;
    top: 20px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.cbb-price-summary strong {
    color: #fff;
}

#cbb-total-price {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Wrapping Options */
.cbb-wrapping-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cbb-wrapping-option input[type="radio"] {
    display: none;
}

.cbb-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cbb-wrapping-option input:checked + .cbb-option-card {
    border-color: #000;
    background: #f9fafb;
}

.cbb-option-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.cbb-option-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cbb-option-name-ar {
    color: #6b7280;
    font-size: 14px;
}

.cbb-free-label {
    color: #10B981;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Message Options */
.cbb-message-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cbb-message-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cbb-message-option {
    margin-top: 20px;
}

.cbb-message-option select,
.cbb-message-option textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
}

.cbb-file-drop-zone {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cbb-file-drop-zone:hover {
    border-color: #000;
    background: #f9fafb;
}

.cbb-file-info {
    color: #6b7280;
    font-size: 14px;
    margin-top: 10px;
}

/* Media Link Fields */
.cbb-media-fields {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cbb-media-fields .cbb-form-row {
    margin-bottom: 20px;
}

.cbb-media-fields .cbb-form-row:last-child {
    margin-bottom: 0;
}

.cbb-media-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.cbb-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
    border-radius: 4px;
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.5;
}

.cbb-hint-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Form Sections */
.cbb-form-section {
    margin-bottom: 30px;
}

.cbb-form-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
}

.cbb-form-row {
    margin-bottom: 15px;
}

.cbb-form-row input,
.cbb-form-row select,
.cbb-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.cbb-form-row input:focus,
.cbb-form-row select:focus,
.cbb-form-row textarea:focus {
    outline: none;
    border-color: #000;
}

/* Order Summary */
.cbb-order-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.cbb-order-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Navigation Buttons - Fixed */
.cbb-form-navigation {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 999999;
    border-top: 1px solid #e5e7eb;
    visibility: visible !important;
}

.cbb-submit-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.cbb-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
    white-space: nowrap;
}

.cbb-btn-primary {
    background: #000;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cbb-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cbb-btn-primary:active {
    transform: translateY(0);
}

.cbb-btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.cbb-btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

.cbb-btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 2px 4px rgba(37,211,102,0.3);
}

.cbb-btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37,211,102,0.4);
}

.cbb-btn-whatsapp:active {
    transform: translateY(0);
}

.cbb-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Loading Animation */
.cbb-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.cbb-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Empty State */
.cbb-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.cbb-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Success Animation */
@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cbb-success-message {
    background: #10B981;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    animation: success-bounce 0.5s ease;
}

/* Smooth Transitions */
.cbb-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tooltip for buttons */
.cbb-btn {
    position: relative;
}

.cbb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .cbb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .cbb-product-card {
        padding: 12px;
    }
    
    .cbb-product-image {
        height: 120px;
    }
    
    .cbb-product-name {
        font-size: 14px;
    }
    
    .cbb-product-price {
        font-size: 13px;
    }
    
    .cbb-inline-controls {
        padding-top: 12px;
        margin-top: 12px;
    }
    
    .cbb-color-swatches {
        gap: 6px;
    }
    
    .cbb-color-swatch {
        padding: 3px;
    }
    
    .cbb-swatch-color {
        width: 32px;
        height: 32px;
    }
    
    .cbb-swatch-label {
        font-size: 10px;
        max-width: 50px;
    }
    
    .cbb-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .cbb-quantity-controls input {
        width: 50px;
        font-size: 14px;
        padding: 6px;
    }
    
    .cbb-item-subtotal {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .cbb-subtotal-label {
        font-size: 12px;
    }
    
    .cbb-subtotal-value {
        font-size: 14px;
    }
    
    .cbb-progress {
        flex-wrap: wrap;
    }
    
    .cbb-step-label {
        display: none;
    }
    
    .cbb-form-wrapper {
        padding: 15px;
        padding-bottom: 120px;
    }
    
    .cbb-form-navigation {
        display: flex !important;
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
        left: 0;
        transform: none;
        width: 100%;
        visibility: visible !important;
        position: fixed !important;
        bottom: 0 !important;
    }
    
    .cbb-submit-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .cbb-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        flex: 1;
    }
    
    .cbb-flower-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .cbb-flower-item img {
        width: 60px;
        height: 60px;
    }
    
    .cbb-quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cbb-flower-subtotal {
        margin-left: 0;
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
    
    .cbb-price-summary {
        position: static;
        margin-bottom: 20px;
    }
    
    #cbb-total-price {
        font-size: 24px;
    }
}


/* Messages Modal */
.cbb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cbb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cbb-modal-header {
    padding: 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbb-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #000;
}

.cbb-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cbb-modal-close:hover {
    background: #f3f4f6;
    color: #000;
    transform: rotate(90deg);
}

.cbb-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cbb-modal-footer {
    padding: 24px;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* Occasions Tabs */
.cbb-occasions-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    scrollbar-width: thin;
}

.cbb-occasions-tabs::-webkit-scrollbar {
    height: 6px;
}

.cbb-occasions-tabs::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.cbb-occasions-tabs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.cbb-occasion-tab {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbb-occasion-tab:hover {
    border-color: #10B981;
    color: #10B981;
    transform: translateY(-2px);
}

.cbb-occasion-tab.active {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.cbb-occasion-icon {
    font-size: 18px;
}

/* Messages List */
.cbb-messages-list {
    display: grid;
    gap: 16px;
}

.cbb-message-item {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.cbb-message-item:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.cbb-message-item.selected {
    border-color: #10B981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cbb-message-item.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #10B981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.cbb-message-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* Card Preview */
.cbb-card-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cbb-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: cardShine 3s ease-in-out infinite;
}

@keyframes cardShine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.cbb-card-occasion {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.cbb-card-message {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cbb-card-brand {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Message Preview in Step */
.cbb-message-preview-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.cbb-message-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cbb-message-occasion {
    font-weight: 700;
    color: #10B981;
    font-size: 16px;
}

.cbb-change-message-btn {
    background: none;
    border: 2px solid #10B981;
    color: #10B981;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.cbb-change-message-btn:hover {
    background: #10B981;
    color: #fff;
}

.cbb-message-preview-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .cbb-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cbb-modal-header,
    .cbb-modal-body,
    .cbb-modal-footer {
        padding: 16px;
    }
    
    .cbb-occasions-tabs {
        gap: 6px;
    }
    
    .cbb-occasion-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cbb-card-preview {
        padding: 24px;
        min-height: 250px;
    }
    
    .cbb-card-occasion {
        font-size: 18px;
    }
    
    .cbb-card-message {
        font-size: 16px;
    }
}


/* WooCommerce Cart Customization */
.woocommerce-cart-form__cart-item .product-thumbnail img {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.woocommerce-cart-form__cart-item dl.variation {
    margin-top: 8px;
}

.woocommerce-cart-form__cart-item dl.variation dt {
    font-weight: 600;
    color: #374151;
    float: left;
    clear: left;
    margin-right: 8px;
}

.woocommerce-cart-form__cart-item dl.variation dd {
    margin: 0 0 8px 0;
    color: #6b7280;
}

.woocommerce-cart-form__cart-item dl.variation dd p {
    margin: 0;
    line-height: 1.6;
}


/* New Wrapping Options with Card Colors */
.cbb-wrapping-option-new {
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.cbb-wrapping-option-new:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.cbb-wrapping-option-new.selected {
    border-color: #10B981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cbb-wrapping-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cbb-wrapping-icon {
    font-size: 48px;
    line-height: 1;
}

.cbb-wrapping-info {
    flex: 1;
}

.cbb-wrapping-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.cbb-wrapping-price {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

.cbb-wrapping-colors {
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.cbb-wrapping-colors label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: #374151;
}

.cbb-wrapping-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cbb-wrapping-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.cbb-wrapping-color-swatch:hover {
    transform: translateY(-2px);
}

.cbb-wrapping-color-swatch.selected {
    border-color: #10B981;
    background: #f0fdf4;
}

.cbb-wrapping-color-swatch .cbb-swatch-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
}

.cbb-wrapping-color-swatch:hover .cbb-swatch-color {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cbb-wrapping-color-swatch.selected .cbb-swatch-color {
    border-color: #10B981;
    border-width: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10B981;
}

.cbb-wrapping-color-swatch.selected .cbb-swatch-color::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cbb-wrapping-color-swatch .cbb-swatch-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.cbb-wrapping-color-swatch.selected .cbb-swatch-label {
    color: #10B981;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .cbb-wrapping-option-new {
        padding: 16px;
    }
    
    .cbb-wrapping-icon {
        font-size: 36px;
    }
    
    .cbb-wrapping-name {
        font-size: 16px;
    }
    
    .cbb-wrapping-color-swatch .cbb-swatch-color {
        width: 36px;
        height: 36px;
    }
}
