/**
 * Dusit Gold Member Discount Styles
 */

/* Gold member price display */
.offer-item .gold-member-price {
    display: inline-block;
}

.offer-item .gold-member-price .original-price {
    color: #999;
    font-size: 0.85em;
    margin-right: 5px;
}

.offer-item .gold-member-price .discounted-price {
    color: #c4a035;
    font-weight: 600;
}

.offer-item .gold-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c4a035 0%, #d4af37 100%);
    color: #fff;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 500;
}

/* Gold member active state */
.offer-item.gold-member-active {
    border-color: #c4a035;
    box-shadow: 0 0 0 1px rgba(196, 160, 53, 0.3);
}

.offer-item.gold-member-active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 30px solid #c4a035;
    border-left: 30px solid transparent;
}

/* Gold total styling */
.offer-item .gold-total {
    color: #c4a035;
    font-weight: 600;
}

/* Login prompt for non-members */
.offer-item .gold-login-prompt {
    margin: 8px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f9f4e6 0%, #fff8e1 100%);
    border: 1px solid #c4a035;
    border-radius: 4px;
    text-align: center;
}

.offer-item .gold-login-prompt small {
    color: #8b6914;
    font-size: 0.85em;
}

.offer-item .gold-login-prompt a {
    color: #c4a035;
    text-decoration: underline;
    font-weight: 500;
}

.offer-item .gold-login-prompt a:hover {
    color: #8b6914;
}

/* Discount info display */
.offer-item .gold-discount-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f9f4e6 0%, #fff8e1 100%);
    border: 1px solid #c4a035;
    border-radius: 4px;
    font-size: 0.85em;
}

.offer-item .gold-discount-info .discount-icon {
    font-size: 1.1em;
}

.offer-item .gold-discount-info .discount-text {
    color: #8b6914;
}

.offer-item .gold-discount-info .discount-text strong {
    color: #c4a035;
    font-weight: 600;
}

/* Animation for discount reveal */
.offer-item .gold-member-price {
    animation: goldReveal 0.3s ease-in-out;
}

@keyframes goldReveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offer-item .gold-member-price {
        display: block;
        margin-top: 5px;
    }

    .offer-item .gold-badge {
        display: block;
        margin-top: 3px;
        margin-left: 0;
        text-align: center;
    }

    .offer-item.has-gold-discount .offer-name::after {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}
