/* Container */
.cart-goal-booster-container {
    /* Sticky ensures it stays visible but doesn't break layout flow */
    position: sticky; 
    z-index: 99999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 12px 0;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

/* Positions */
.cart-goal-booster-top {
    top: 0;
    position: sticky; 
}

.cart-goal-booster-bottom {
    /* Bottom bar must remain fixed to stay visible */
    position: fixed;
    bottom: 0;
    top: auto; 
}

/* Inner Layout */
.cart-goal-booster-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Message Text */
.cart-goal-booster-message {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Progress Bar Background */
.cart-goal-booster-progress-bg {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

/* Progress Bar Fill */
.cart-goal-booster-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2563eb;
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Subtle stripe pattern */
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

/* Admin Bar Adjustment (Prevents bar from hiding under WP Admin Bar) */
body.admin-bar .cart-goal-booster-top {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .cart-goal-booster-top {
        top: 46px;
    }
}