/* BumpQ2 Frontend Styles - Cores Amarelas */

.bumpq2-checkout-container {
    margin: 30px 0;
}

.bumpq2-offer-box {
    position: relative;
    background: #fff;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bumpq2-offer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #FFBD00 0%, #FBF535 100%);
}

.bumpq2-offer-box:hover {
    border-color: #FFBD00;
    box-shadow: 0 8px 24px rgba(255, 189, 0, 0.2);
    transform: translateY(-2px);
}

.bumpq2-offer-box.bumpq2-checked {
    border-color: #4CAF50;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fff4 100%);
}

.bumpq2-offer-box.bumpq2-checked::before {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Badge */
.bumpq2-offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.bumpq2-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFBD00 0%, #FBF535 100%);
    color: #1d2327;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 189, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Offer Inner */
.bumpq2-offer-inner {
    display: grid;
    grid-template-columns: auto 100px 1fr;
    gap: 20px;
    align-items: center;
}

/* Checkbox */
.bumpq2-offer-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bumpq2-checkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.bumpq2-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.bumpq2-checkmark {
    display: block;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bumpq2-checkbox-container:hover .bumpq2-checkmark {
    border-color: #FFBD00;
}

.bumpq2-checkbox-container input:checked ~ .bumpq2-checkmark {
    background: linear-gradient(135deg, #FFBD00 0%, #FBF535 100%);
    border-color: #FFBD00;
}

.bumpq2-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 10px;
    top: 5px;
    width: 8px;
    height: 14px;
    border: solid #1d2327;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.bumpq2-checkbox-container input:checked ~ .bumpq2-checkmark::after {
    display: block;
}

/* Image */
.bumpq2-offer-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #f5f5f5;
}

.bumpq2-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bumpq2-offer-box:hover .bumpq2-offer-image img {
    transform: scale(1.1);
}

/* Details */
.bumpq2-offer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bumpq2-offer-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bumpq2-offer-label {
    display: inline-block;
    background: linear-gradient(135deg, #FFBD00 0%, #FBF535 100%);
    color: #1d2327;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(255, 189, 0, 0.2);
}

.bumpq2-offer-title h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}

/* Pricing */
.bumpq2-offer-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bumpq2-original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.bumpq2-discounted-price {
    font-size: 28px;
    font-weight: 700;
    color: #FFBD00;
}

.bumpq2-savings {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* CTA */
.bumpq2-offer-cta {
    margin-top: 5px;
}

.bumpq2-cta-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d2327;
    font-weight: 700;
    font-size: 16px;
}

.bumpq2-cta-text .dashicons {
    color: #FFBD00;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Loading State */
.bumpq2-offer-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    color: #FFBD00;
    border-radius: 12px;
}

.bumpq2-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFBD00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bumpq2-offer-inner {
        grid-template-columns: auto 80px 1fr;
        gap: 15px;
    }

    .bumpq2-offer-image {
        width: 80px;
        height: 80px;
    }

    .bumpq2-offer-title h4 {
        font-size: 18px;
    }

    .bumpq2-discounted-price {
        font-size: 24px;
    }

    .bumpq2-discount-badge {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .bumpq2-offer-box {
        padding: 15px;
    }

    .bumpq2-offer-inner {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .bumpq2-offer-checkbox-wrapper {
        order: 3;
    }

    .bumpq2-offer-image {
        margin: 0 auto;
    }

    .bumpq2-offer-badge {
        top: 10px;
        right: 10px;
    }

    .bumpq2-offer-label,
    .bumpq2-offer-pricing,
    .bumpq2-cta-text {
        justify-content: center;
    }

    .bumpq2-offer-label {
        margin: 0 auto;
    }
}

/* Additional Cart Styles */
.bumpq2-cart-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bumpq2-cart-label {
    animation: fadeIn 0.5s ease;
    background: linear-gradient(135deg, #FFBD00 0%, #FBF535 100%);
}

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

/* Melhoria visual geral */
.bumpq2-offer-box {
    background: linear-gradient(to bottom, #ffffff 0%, #fffef8 100%);
}

.bumpq2-offer-box:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #fffef8 100%);
}
