/* WooCommerce Checkout Promotions Styles */

.wc-checkout-promotions-wrapper {
    margin-bottom: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e2e8f0;
}

.wc-checkout-promotions-wrapper h3 {
    margin-bottom: 0.25em;
    font-size: 1.25rem;
    font-weight: 600;
}

.wc-checkout-promotions-wrapper > p {
    color: #64748b;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
}

/* Modality Selectors */
.wccp-modality-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.5em;
    width: 100%;
    box-sizing: border-box;
}

.wccp-modality-option {
    display: flex !important;
    align-items: flex-start !important;
    padding: 1.25em !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    flex: 1 1 calc(33.333% - 0.67em) !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.wccp-modality-option:hover {
    border-color: #cbd5e1;
}

.wccp-modality-option.active {
    border-color: #ef4444; /* Red color from reference */
    background-color: #fef2f2;
}

.wccp-modality-option input[type="radio"] {
    margin-top: 0.25em !important;
    margin-right: 1em !important;
    accent-color: #ef4444 !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    float: none !important;
    clip: auto !important;
}

.wccp-option-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.wccp-option-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    margin-bottom: 0.75em !important;
}

.wccp-option-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wccp-icon {
    font-size: 1.2rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.wccp-badge {
    font-size: 0.75rem !important;
    padding: 0.25em 0.75em !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.wccp-badge-recommended {
    background-color: #dcfce7;
    color: #166534;
}

.wccp-badge-exclusive {
    background-color: #dcfce7;
    color: #166534;
}

.wccp-option-benefits {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.wccp-option-benefits li {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 0.25em !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: left !important;
}

.wccp-option-benefits li:last-child {
    margin-bottom: 0;
}

/* Notice */
.wccp-modality-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    background-color: #f0fdf4;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 2em;
}

.wccp-modality-notice p {
    margin: 0;
    color: #166534;
    font-size: 0.9rem;
}

/* Promotions Section */
.wccp-promotions-section {
    background-color: #fff;
}

.wccp-promotions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25em;
}

.wccp-how-it-works {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}

.wccp-how-it-works:hover {
    color: #334155;
}

/* Carousel */
.wccp-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1em;
}

.wccp-carousel-track {
    display: flex;
    gap: 1em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5em 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    flex: 1;
}

.wccp-carousel-track::-webkit-scrollbar {
    display: none;
}

.wccp-carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0 0.25em;
    line-height: 1;
}

.wccp-carousel-btn:hover {
    color: #0f172a;
}

/* Promo Cards */
.wccp-promo-card {
    flex: 0 0 calc(33.333% - 0.67em); /* Show 3 cards */
    min-width: 200px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wccp-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.wccp-promo-main {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}

.wccp-bank-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.wccp-promo-details {
    flex: 1;
}

.wccp-promo-installments {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
    display: block;
}

.wccp-promo-footer {
    display: flex;
    justify-content: flex-start;
}

.wccp-promo-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-weight: 600;
}

.wccp-badge-online {
    background-color: #f1f5f9;
    color: #475569;
}

.wccp-badge-branch {
    background-color: #dcfce7;
    color: #166534;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wccp-modality-selectors {
        grid-template-columns: 1fr;
    }
    
    .wccp-promo-card {
        flex: 0 0 calc(50% - 0.5em);
    }
}

@media (max-width: 480px) {
    .wccp-promo-card {
        flex: 0 0 80%;
    }
}
