/**
 * Utopia Bundle for Fast Checkout - Styles
 */

/* ============================================
   BUNDLE SELECTOR CONTAINER
   ============================================ */
#ubfc-bundle-selector {
    background: #fff;
    border: 2px dashed #e91e63;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.ubfc-section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* ============================================
   GENRE SELECTION (FEMME / FILLE)
   ============================================ */
.ubfc-genre-section {
    margin-bottom: 15px;
}

.ubfc-genre-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ubfc-genre-label {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

/* Hide the native checkbox completely */
.ubfc-genre-input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
}

.ubfc-genre-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.ubfc-genre-box:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.ubfc-genre-input:checked + .ubfc-genre-box {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* Checkmark circle */
.ubfc-genre-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s ease;
}

.ubfc-genre-input:checked + .ubfc-genre-box .ubfc-genre-check {
    background: #e91e63;
    color: #fff;
}

.ubfc-genre-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ubfc-genre-price {
    font-size: 12px;
    color: #666;
}

/* Fille specific color */
.ubfc-fille-label .ubfc-genre-box:hover {
    border-color: #9c27b0;
    background: #f3e5f5;
}

.ubfc-fille-label .ubfc-genre-input:checked + .ubfc-genre-box {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.ubfc-fille-label .ubfc-genre-input:checked + .ubfc-genre-box .ubfc-genre-check {
    background: #9c27b0;
}

/* ============================================
   DISCOUNT INFO
   ============================================ */
.ubfc-discount-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}

/* ============================================
   OPTIONS SECTIONS
   ============================================ */
.ubfc-options-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ubfc-femme-options {
    border-top-color: #f8bbd9;
}

.ubfc-fille-options {
    border-top-color: #e1bee7;
}

/* ============================================
   ATTRIBUTE GROUPS
   ============================================ */
.ubfc-attr-group {
    margin-bottom: 15px;
}

.ubfc-attr-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.ubfc-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   ATTRIBUTE BUTTONS
   ============================================ */
.ubfc-attr-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.ubfc-attr-btn:hover {
    border-color: #333;
    background: #f5f5f5;
}

.ubfc-attr-btn.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Color swatches */
.ubfc-color-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border-width: 2px;
}

.ubfc-color-btn.selected {
    box-shadow: 0 0 0 3px #333;
    transform: scale(1.1);
}

/* White color special case */
.ubfc-color-btn[style*="background-color: #ffffff"],
.ubfc-color-btn[style*="background-color: white"] {
    border-color: #ccc;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.ubfc-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

/* ============================================
   FAST CHECKOUT MODIFICATIONS
   ============================================ */
.ubfc-bundle-active #utopia-fast-checkout {
    border-color: #e91e63;
}

.ubfc-bundle-active #utopia-fast-checkout h3 {
    color: #e91e63;
}

/* Bundle order lines */
.ubfc-line-femme .label strong,
.ubfc-line-fille .label strong {
    color: #333;
}

.ubfc-line-discount {
    background: #e8f5e9;
    margin: 8px -10px;
    padding: 6px 10px;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    #ubfc-bundle-selector {
        padding: 15px;
    }
    
    .ubfc-genre-options {
        flex-direction: column;
    }
    
    .ubfc-genre-label {
        min-width: 100%;
    }
    
    .ubfc-genre-box {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 12px 15px;
    }
    
    .ubfc-genre-check {
        position: static;
        order: -1;
    }
    
    .ubfc-genre-name,
    .ubfc-genre-price {
        text-align: left;
    }
    
    .ubfc-attr-options {
        gap: 6px;
    }
    
    .ubfc-attr-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ubfc-color-btn {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes ubfcFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ubfc-options-section {
    animation: ubfcFadeIn 0.3s ease;
}

/* ============================================
   SUCCESS/ERROR STATES
   ============================================ */
.ubfc-bundle-active .fast-checkout-message .success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.ubfc-bundle-active .fast-checkout-message .error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
