.woo-perks-redemption {
    /*display: contents;*/
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 5px;
}
.woo-perks-redemption h3 {
    margin-top: 0;
}
.woo-perks-redemption input[type="number"] {
    width: 100px;
    padding: 5px;
    margin-right: 10px;
}
#woo_perks_message {
    margin-top: 10px;
    font-weight: bold;
}

/* Bonus Badge */
.woo-perks-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
    padding: .2em .6em;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8em;
    background-color: #4caf50;
    color: #fff;
}

/* Bonus Price (Product Page) */
.woo-perks-bonus-price {
    color: #4caf50;
    font-weight: 400;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
    vertical-align: middle;
    order: 10; /* Ensure it appears after price if in flex container */
    cursor: pointer;
}

/* Cart Bonus Total */
.woo-perks-cart-bonus {
    margin-bottom: 10px;
    color: #111111;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart_totals .woo-perks-cart-bonus {
    font-weight: 500;
    color: #e40549;
}

.woo-perks-cart-bonus > span {
    font-weight: 400;
    color: #4caf50;
}

.woo-perks-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    cursor: pointer;
}

/* Login Form Styling */
.woocommerce-form-login {
    max-width: 650px;
    margin-top: 15px;
}
.woocommerce-form-login p {
    margin-bottom: 15px;
}
.woocommerce-form-login .form-row {
    margin-bottom: 15px;
    display: block; /* Ensure rows stack */
}
.woocommerce-form-login .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.woocommerce-form-login .input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Fix width issues */
}
.woocommerce-form-login .button {
    width: 100%;
    margin-top: 10px;
}

.price {
    flex-wrap: wrap;
}

.shop-item .woocommerce-Price-amount.amount {
    font-size: 1rem;
    font-weight: 500;
}

.shop-item .shop-item__title {
    font-weight: 500;
}

.woocommerce-Tabs-panel.woocommerce-Tabs-panel--description {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Popup Styles */
.woo-perks-info-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.woo-perks-info-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 99999;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: inherit;
}

.woo-perks-info-popup.active,
.woo-perks-info-popup-overlay.active {
    display: block;
    animation: wooPerksFadeIn 0.3s ease;
}

@keyframes wooPerksFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.woo-perks-info-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.woo-perks-info-popup-close:hover {
    color: #333;
    background: #eee;
}

.woo-perks-info-popup-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.woo-perks-info-popup-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woo-perks-info-popup-content {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.woo-perks-info-popup-content h4 {
    margin: 15px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.woo-perks-info-popup-content p {
    margin-bottom: 10px;
}

.woo-perks-info-popup-content ul {
    margin: 0 0 15px 20px;
    padding: 0;
    list-style-type: disc;
}
