/* Benefits Container */
.wolve-loyalty-benefits-container {
    margin: 15px 0;
}

.wolve-loyalty-benefits-container h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Benefit Item Card */
.wolve-loyalty-benefit-item {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: var(--tile-bg, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--tile-border, #e2e8f0);
}

.wolve-loyalty-benefit-item:hover {
    filter: brightness(0.97);
}

/* Hide radio button visually but keep it accessible */
.wolve-loyalty-benefit-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selection indicator - checkmark circle */
.wolve-loyalty-benefit-item::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.2s ease;
    background-color: #fff;
}

/* Selected state */
.wolve-loyalty-benefit-item:has(input[type="radio"]:checked) {
    border-color: var(--tile-accent, #5bcfde);
    background-color: var(--tile-selected-bg, #f0fbfa);
}

.wolve-loyalty-benefit-item:has(input[type="radio"]:checked)::before {
    border-color: var(--tile-accent, #5bcfde);
    background-color: var(--tile-accent, #5bcfde);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Benefit details */
.wolve-loyalty-benefit-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2px;
}

.wolve-loyalty-benefit-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--tile-text, inherit);
}

.wolve-loyalty-benefit-details span:not(.wolve-loyalty-benefit-title) {
    font-size: 0.95em;
    color: var(--tile-text-secondary, inherit);
}

/* Expired state */
.wolve-loyalty-expired {
    opacity: 0.6;
}

.wolve-loyalty-expired .wolve-loyalty-benefit-title,
.wolve-loyalty-expired .wolve-loyalty-benefit-details span {
    text-decoration: line-through;
}

.wolve-loyalty-benefit-use {
    margin-left: 10px;
}

.disable-pointer-events {
    pointer-events: none;
}

/* Tier Card Styles */
.wolve-loyalty-tier-card {
    padding: 20px 25px;
    background: var(--tile-bg, #ffffff);
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid var(--tile-border, #e2e8f0);
}

.wolve-loyalty-tier-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 2px;
    color: var(--tile-text, inherit);
}

.wolve-loyalty-tier-points {
    font-size: 1.1em;
    margin-bottom: 2px;
    color: var(--tile-text, inherit);
}

.wolve-loyalty-tier-next-level {
    font-size: 0.9em;
    margin-bottom: 2px;
    color: var(--tile-text-secondary, inherit);
}

.wolve-loyalty-tier-remaining {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: var(--tile-text-secondary, inherit);
}

/* Tier Progress Bar Styles */
.wolve-tier-progress-container {
    margin-top: 15px;
    width: 100%;
}

.wolve-tier-progress-bar {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
}

.wolve-tier-progress-fill {
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease;
    display: block;
    box-sizing: border-box;
}

/* Progress text */
.wolve-tier-progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

/* Style variations */
.wolve-tier-progress-container.minimal .wolve-tier-progress-bar {
    height: 8px;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.wolve-tier-progress-container.minimal .wolve-tier-progress-text {
    font-size: 11px;
}

/* Gradient style - background will be set inline based on admin color selection */
.wolve-tier-progress-container.gradient .wolve-tier-progress-fill {
    /* Gradient applied via inline styles for dynamic colors */
}

/* Responsive design */
@media (max-width: 768px) {
    .wolve-loyalty-benefit-item {
        padding: 12px 15px;
    }

    .wolve-loyalty-benefit-item::before {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 12px;
    }

    .wolve-loyalty-benefit-title {
        font-size: 1em;
    }

    .wolve-loyalty-tier-card {
        padding: 15px 18px;
    }

    .wolve-loyalty-tier-title {
        font-size: 1.15em;
    }

    .wolve-loyalty-tier-points {
        font-size: 1em;
    }

    .wolve-tier-progress-bar {
        height: 16px;
    }

    .wolve-tier-progress-container.minimal .wolve-tier-progress-bar {
        height: 6px;
    }

    .wolve-tier-progress-text {
        font-size: 11px;
    }
}

/* Hover effect */
.wolve-tier-progress-container:hover .wolve-tier-progress-fill {
    opacity: 0.95;
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wolve-tier-progress-fill {
        transition: none !important;
    }
}

