/* Roket Discounts Plugin Styles */
.roket-discounts-container {
    margin: 0 !important;
    padding: 8px 0;
}

.roket-discounts-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #e2e2e6;
    border-bottom: 1px solid #e2e2e6;
}

.roket-discounts-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    background: #F1F0F2;
    padding: 32px;
    border-right: 1px solid #e2e2e6;
}

.roket-discounts-text h3 {
    margin: 0 0 12px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.78px;
    color: #111017;
}

.roket-discounts-minimum {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.28px;
    color: #302f3d;
}

.roket-discounts-progress {
    width: 50%;
    background: #F1F0F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #e2e2e6;
}

.roket-discounts-bubbles {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 24px 32px;
}

.roket-discounts-bubbles::before {
    display: none;
}

.roket-discounts-bubble::before,
.roket-discounts-bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    height: 1px;
    background: #e2e2e6;
    z-index: 1;
    transform: translateY(-50%);
    width: calc(50% - 16px);
}

/* First bubble - line to the right only */
.roket-discounts-bubble:first-child::after {
    right: 0;
}

.roket-discounts-bubble:first-child::before {
    display: none;
}

/* Middle bubble(s) - lines on both sides */
.roket-discounts-bubble:not(:first-child):not(:last-child)::before {
    left: 0;
}

.roket-discounts-bubble:not(:first-child):not(:last-child)::after {
    right: 0;
}

/* Last bubble - line to the left only */
.roket-discounts-bubble:last-child::before {
    left: 0;
}

.roket-discounts-bubble:last-child::after {
    display: none;
}

.roket-discounts-bubble {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
}

.roket-discounts-bubble .bubble-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    display: block;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: none;
}

.roket-discounts-bubble.filled .bubble-dot {
    background: #4caf50;
}

.roket-discounts-bubble:last-child .bubble-dot {
    background: #e0e0e0;
}

.roket-discounts-bubble:last-child.filled .bubble-dot {
    background: #ff9800;
}

.roket-discounts-bubble .bubble-label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #111017;
    text-align: center;
}

/* .roket-discounts-bubble:last-child .bubble-label {
    font-weight: 600;
    color: #ff7043;
} */

.roket-discounts-progress-text {
    text-align: center;
    padding: 24px 32px;
    width: 100%;
    border-top: 1px solid #e2e2e6;
}

.roket-discounts-progress-text p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    color: #111017;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .roket-discounts-text {
        display: none;
    }
    .roket-discounts-progress {
        width: 100%;
        border-left: 0;
    }
    .roket-discounts-bubbles,
    .roket-discounts-progress-text {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .roket-discounts-bubbles,
    .roket-discounts-progress-text {
        padding: 16px;
    }
}

/* Animation for bubble state changes */
.roket-discounts-bubble .bubble-dot {
    animation: bubble-pulse 0.6s ease-out;
}

@keyframes bubble-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Success state styling */
.roket-discounts-container.discount-achieved {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #4caf50;
}

.roket-discounts-container.discount-achieved .roket-discounts-progress-text p {
    color: #2e7d32;
    font-weight: 600;
}

/* Cart and Checkout Notice Styling */
.roket-discount-notice {
    margin-bottom: 20px !important;
    padding: 15px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.roket-discount-notice.woocommerce-info {
    background-color: #e7f3ff !important;
    border-left: 4px solid #2196f3 !important;
    color: #1565c0 !important;
}

.roket-discount-notice.woocommerce-message {
    background-color: #e8f5e8 !important;
    border-left: 4px solid #4caf50 !important;
    color: #2e7d32 !important;
}
