/* Gamification Styles */
.cybeem-gamification-progress {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cybeem-gamification-progress h3 {
    margin:0px;
    color: #333;
}

.cybeem-gamification-progress p {
    margin: 0.2em 0; /* Adjust this value as needed */
}

.cybeem-progress-bar {
    background: #eee;
    border-radius: 10px;
    height: 20px;
    margin: 5px 0;
    overflow: hidden;
}

.cybeem-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.cybeem-gifts {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.cybeem-gift {
    text-align: center;
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
}

.cybeem-gift.unlocked {
    background: #e8f5e8;
    border-color: #4CAF50;
    cursor: pointer;
}

.cybeem-gift.claimed {
    background: #d4edda;
    border-color: #28a745;
    position: relative;
}

.cybeem-gift.claimed::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cybeem-gift.unlocked:hover {
    background: #d4edda;
    border-color: #28a745;
}

.cybeem-gift.locked {
    opacity: 0.5;
    position: relative;
}

.cybeem-gift .lock-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #cdcdcd;
    color: #666;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cybeem-gift h4 {
    margin: 0px;
    font-size: 14px;
}

.cybeem-gift p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Mini-cart specific styles */
#cybeem-gamification-progress-mini .cybeem-gamification-progress {
    margin: 10px 0;
    padding: 10px;
    font-size: 12px;
}

#cybeem-gamification-progress-mini .cybeem-progress-bar {
    height: 15px;
}

#cybeem-gamification-progress-mini .cybeem-gifts {
    flex-wrap: wrap;
}

#cybeem-gamification-progress-mini .cybeem-gift {
    flex: 1 1 30%;
    padding: 5px;
    margin: 2px;
}

#cybeem-gamification-progress-mini .cybeem-gift h4 {
    font-size: 12px;
}

#cybeem-gamification-progress-mini .cybeem-gift.claimed::after {
    width: 15px;
    height: 15px;
    font-size: 10px;
    top: 2px;
    right: 2px;
}

/* Modal Styles */
.cybeem-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.cybeem-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    max-width: 500px;
    border-radius: 8px;
    box-sizing: border-box;
}

.cybeem-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cybeem-modal-close:hover {
    color: black;
}

@media (max-width: 480px) {
    .cybeem-modal-content {
        width: calc(100% - 20px);
        max-width: none;
        margin: 0 10px;
        padding: 16px;
        border-radius: 6px;
        box-sizing: border-box;
    }
}

.cybeem-gift-options {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.cybeem-gift-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    min-height: 100px;
}

.cybeem-gift-option:hover {
    background: #f5f5f5;
}

.cybeem-gift-option input[type="radio"] {
    margin-right: 10px;
}

.cybeem-gift-option img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.cybeem-gift-option .details {
    flex: 1;
}

.cybeem-gift-option .name {
    font-weight: bold;
}

.cybeem-gift-option.in-cart {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.cybeem-gift-option.out-of-stock {
    opacity: 0.6;
    background: #f8f8f8;
    border-color: #ccc;
}

.cybeem-gift-option.out-of-stock input[type="radio"] {
    cursor: not-allowed;
}

.cybeem-in-cart-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-top: 4px;
}

.cybeem-out-of-stock-badge {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-top: 4px;
}

/* Label appended to free gift items */
.cybeem-gift-label {
    font-size: 0.9em;
    /* color: #d9534f; */
    font-weight: bold;
    margin-left: 0px;
}
.cybeem-gift-label s {
    text-decoration: line-through;
    /* color: #999; */
    margin-right: 4px;
}

/* Disable quantity inputs for gift items */
.cybeem-free-gift-item .qty {
    background-color: #f5f5f5 !important;
    border-color: #ddd !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

.cybeem-free-gift-item .product-name {
}

.cybeem-free-gift-item .qty::-webkit-outer-spin-button,
.cybeem-free-gift-item .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.cybeem-free-gift-item .qty[type=number] {
    -moz-appearance: textfield !important;
}

/* Compact Skin Styles */
.cybeem-gamification-progress.compact {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px 0;
    padding: 40px;
    border: none;
    border-radius: 20px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.compact h3 {
    margin: 0px;
    color: #333;
    text-align: center;
}

.compact p {
    margin: 0.2em 0;
    text-align: center;
}

.compact .progress-bar {
    position: relative;
    width: 100%;
    height: 80px;
    background: #e2e8f0;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 50%, #2f855a 100%);
    border-radius: 40px;
    transition: width 0.5s ease;
}

.compact .circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid #4caf50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    margin-left: -30px;
}

.compact .circle.locked {
    border-color: #cdcdcd;
    background: #cdcdcd;
    cursor: not-allowed;
}

.compact .claim-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compact .lock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #cdcdcd;
    color: #666;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compact .circle.claimed {
    border-color: #48bb78;
    background: #f0fff4;
}

.compact .circle.claimed .title {
    color: #000;
}

/* Removed specific circle-1,2,3 as positioning is now dynamic */

.compact .circle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compact .gift-icon {
    font-size: 20px;
    margin-bottom: -2px;
    display: block;
}

.compact .title {
    font-size: 10px;
    font-weight: bold;
    color: #4a5568;
}

/* Responsive for compact */
@media (max-width: 768px) {
    .compact .cybeem-gamification-progress {
        padding: 20px;
    }


    .compact .progress-bar {
        height: 60px;
    }

    .compact .circle {
        width: 50px;
        height: 50px;
        margin-left: -25px;
    }

    .compact .gift-icon {
        font-size: 20px;
    }

    .compact .title {
        font-size: 7px;
    }

    .compact .claim-badge,
    .compact .lock-badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .cybeem-gift .lock-badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
}