/**
 * Elex Custom Variations CSS
 */

/* Container for variations */
.elex-variations-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Variation options */
.elex-variation-option {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #fff;
    box-shadow: 0 2px 0 #fff;
}

.elex-variation-option:hover {
    border-color: #ccc;
    box-shadow: 0 2px 0 #ccc;
    border: 1px solid #ccc;
}

.elex-variation-option.selected {
    border-color: #333;
    background-color: #f7f9ff;
    box-shadow: 0 2px 0 #333;
    border: 1px solid #333;
}

.elex-variation-option label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.elex-variation-option input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.elex-variation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.elex-variation-name {
    font-weight: 600;
    font-size: 15px;
}

.elex-variation-price {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.elex-variation-option.selected .elex-variation-price {
    color: #0277c2;
}

.elex-regular-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 5px;
    font-weight: normal;
}

.elex-one-time {
    display: inline-block;
    font-size: 11px;
    background-color: #f5f5f5;
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

/* Add to cart button */
.elex-add-to-cart-wrap {
    margin-top: 20px;
    text-align: center;
}

.elex-add-to-cart-button {
    background-color: #0277c2;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 100px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.18px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 0 #01619b;
}

.elex-add-to-cart-button:hover {
    background-color: #00619a;
}

.elex-add-to-cart-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* Aurora option styles - keep the same as regular options but with animated text */
.elex-aurora-option .title,
.elex-aurora-option .elex-variation-price {
    position: relative;
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    background-image: linear-gradient(
        90deg,
        #0077C2,
        #59a5f5,
        #00BFFF,
        #00619a,
        #0077C2,
        #c8ffff
    );
    background-size: 400% 100%;
    animation: text-gradient 6s linear infinite; /* Slowed down to 12s */
}

/* Ensure the .elex-one-time tag remains visible with its original styling */
.elex-aurora-option .elex-one-time {
    background-color: #59a5f5;
    color: #c8ffff;
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-shadow: none;
    animation: none;
}

/* Update the hover effect for better visibility
.elex-aurora-option:hover .title,
.elex-aurora-option:hover .elex-variation-price {
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
} */

/* Apply the same animation phase to both elements to create a single visual effect */
.elex-aurora-option {
    position: relative;
    overflow: hidden;
}

/* Create a subtle background animation as well */
.elex-aurora-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 119, 194, 0.03),
        rgba(89, 165, 245, 0.03),
        rgba(0, 191, 255, 0.05),
        rgba(200, 255, 255, 0.03),
        rgba(0, 97, 154, 0.03)
    );
    background-size: 400% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: text-gradient 12s linear infinite; /* Same timing as text */
    z-index: -1;
    border-radius: 15px;
}

.elex-aurora-option:hover::before {
    opacity: 1;
}

/* Slow down the animation */
@keyframes text-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .elex-variation-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .elex-variation-price {
        margin-top: 5px;
    }
} 