.littlebill-redeem-section {
    background: #f3fbf6;
    border: 1px solid #cdeeda;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.littlebill-redeem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.littlebill-redeem-header h3 {
    margin: 0;
    color: #1e7e34;
}

.littlebill-redeem-points-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.lb-offers-redeem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.littlebill-checkout-offers {
    margin: 24px 0;
}

.littlebill-checkout-offers__title {
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
    color: #28712f;
}

.littlebill-checkout-offers .lb-offers-redeem-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.littlebill-checkout-offers .lb-offer-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 150px;
    scroll-snap-align: start;
}

.littlebill-checkout-offers .lb-offers-redeem-grid::-webkit-scrollbar {
    height: 8px;
}

.littlebill-checkout-offers .lb-offers-redeem-grid::-webkit-scrollbar-thumb {
    background: #cdeeda;
    border-radius: 999px;
}

.littlebill-checkout-offers .lb-offers-redeem-grid::-webkit-scrollbar-thumb:hover {
    background: #28a745;
}

.lb-offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lb-offer-card--ready {
    border: 2px solid #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, .15);
}

.lb-offer-card--ready:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, .25);
}

.lb-offer-card--locked {
    opacity: .65;
}

.lb-offer-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
}

.lb-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-offer-card__lock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-offer-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.lb-offer-card__desc {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.lb-offer-card__cost {
    margin: 0;
    color: #1e7e34;
    font-weight: 700;
}

.lb-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
}

.lb-progress-fill {
    height: 100%;
    background: #28a745;
    border-radius: 999px;
    transition: width .4s ease;
}

.lb-progress-label {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.lb-redeem-btn {
    margin-top: auto;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.lb-redeem-btn:hover {
    background: #218838;
}

.lb-redeem-btn:active {
    background: #1e7e34;
}

.lb-redeem-btn--locked,
.lb-redeem-btn:disabled {
    background: #c8c8c8;
    color: #666;
    cursor: not-allowed;
}

.lb-modal-btn-secondary {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 15px;
    cursor: pointer;
}

.lb-modal-btn-secondary:hover {
    background: #f0f0f0;
}

.lb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.lb-modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    animation: lb-modal-in .2s ease;
}

@keyframes lb-modal-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lb-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.lb-modal-close:hover {
    color: #333;
}

.lb-modal-title {
    margin: 0 0 12px;
    color: #1e7e34;
}

.lb-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.lb-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 4px solid #e0e0e0;
    border-top-color: #28a745;
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

.littlebill-applied-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.littlebill-applied-offer__label {
    font-weight: 600;
}

.littlebill-applied-offer__remove {
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .lb-offers-redeem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .lb-offers-redeem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .littlebill-checkout-offers .lb-offer-card {
        flex: 0 0 70%;
    }
}
