#simple-debit-finder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.finder-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

.filter-section {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #1F6A95;
    background: white;
    color: #1F6A95;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1F6A95;
    color: white;
}

.results-section {
    padding: 24px;
    width: 100%;
}

.results-section h2 {
    margin: 0 0 16px 0;
    color: #1e293b;
}

.results-count {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.cards-grid {
    width: 100%;
}

/* Card Structure */
.card-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    transition: all 0.2s;
    overflow: hidden;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    clear: both;
    position: relative;
}

.card-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.card-item.recommended {
    border-color: #1F6A95;
    position: relative;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.card-logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.bonus-text {
    font-size: 11px;
    color: #1F6A95;
    font-weight: 600;
    white-space: nowrap;
}

.recommended-badge {
    background: #1F6A95;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}


/* Main card content wrapper */
.card-top-section {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 8px; /* Add padding here */
}

.card-left {
    position: relative;
    padding: 8px;
    flex: 0 0 30%; /* Changed to 30% to give more room to right section */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Back to center for vertical centering */
    gap: 8px;
    background: white;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-info h3 {
    margin: 0 0 2px 0;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.2;
}

.card-provider {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}

.card-fca {
    color: #9ca3af;
    font-size: 11px;
    margin-top: 8px;
}

.card-main-wrapper {
    flex: 0 0 70%;
    background: #E4EDF0 !important;
    border-radius: 8px;
    margin: 0; /* Remove margin that causes overflow */
    overflow: hidden;
}

.card-main {
    flex: 1;
    display: flex;
    background: transparent !important;
    align-items: center; /* Vertically center the content inside */
}

.card-metrics-horizontal {
    flex: 1;
    display: flex;
}

.metric-horizontal {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-horizontal:last-child {
    border-right: none;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.points-explanation {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.card-actions-horizontal {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 20px;
    justify-content: center;
    gap: 8px;
}

.terms-note {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.reward-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.reward-type-cash {
    background: #dcfce7;
    color: #166534;
}

.reward-type-points {
    background: #fef3c7;
    color: #92400e;
}

.rating-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-left: 8px;
}

/* Benefits box - clean minimal style */
.card-benefits {
    background: transparent !important; /* Remove blue background */
    border: none; /* Remove left border */
     padding: 4px 20px 16px 20px;
    margin: 0;
}

.benefits-text {
    margin: 0 0 8px 0;
    color: #1e293b; /* Change to regular text color */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3; /* Tighter line spacing */
}

.important-notes {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-style: italic;
    line-height: 1.3; /* Tighter line spacing */
}
/* Disclaimer */
.disclaimer {
    width: 100%;
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.disclaimer p {
    margin: 0;
}

/* Buttons */
.btn-more-info {
    background: #1F6A95 !important;
    color: white !important;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    font-size: 14px;
}

.btn-more-info:hover {
    background: #034063 !important;
}

.btn-provider {
    background: #1F6A95 !important;
    color: white !important;
    border: 2px solid #1F6A95;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    display: inline-block;
    font-size: 14px;
}

.btn-provider:hover {
    background: #034063 !important;
    border-color: #034063;
    text-decoration: none;
    color: white !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

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

.modal-content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-header h3 {
    margin: 0;
    color: #1F6A95;
}

.instructions-list {
    margin: 15px 0;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.bonus-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #059669;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.modal-btn.primary {
    background: #1F6A95;
    color: white;
}

.modal-btn.primary:hover {
    background: #034063;
    color: white;
    text-decoration: none;
}

.modal-btn.secondary {
    background: #6b7280;
    color: white;
}

.modal-btn.secondary:hover {
    background: #4b5563;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-logo {
        width: 40px;
        height: 40px;
    }

    .card-item {
        flex-direction: column;
    }
    .card-logo-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex-shrink: 0; /* Prevent logo section from shrinking */
    }

    .bonus-text {
        font-size: 13px; /* Larger than the 11px desktop size */
        color: #1F6A95;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }
    .card-top-section {
        flex-direction: column;
        width: 100%;
    }


    .card-left {
        min-width: auto;
        flex-direction: row;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        gap: 12px; /* Add spacing between logo section and card info */
    }

    .card-main-wrapper {
        border-radius: 6px;
        margin: 4px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .card-main {
        flex-direction: column;
    }

    .card-metrics-horizontal {
        display: block;
        width: 100%; /* Ensure metrics take full width */
    }

    .metric-horizontal {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 16px;
    }

    .metric-horizontal:last-child {
        border-bottom: none;
    }

    .card-actions-horizontal {
        min-width: auto;
        padding: 16px;
        width: 100%; /* Make actions full width */
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    /* Reduce main container padding */
    .results-section {
        padding: 16px 12px;
    }

    /* Reduce filter section padding */
    .filter-section {
        padding: 16px 12px;
    }

    /* Reduce card internal padding */
    .card-left {
        padding: 12px;
    }

    .card-actions-horizontal {
        padding: 12px;
    }

    .metric-horizontal {
        padding: 10px 12px;
    }

    /* Reduce benefits section padding */
    .card-benefits {
        padding: 12px 16px;
    }

    /* Reduce disclaimer padding */
    .disclaimer {
        padding: 10px 16px;
    }

    /* Reduce card spacing between cards */
    .card-item {
        margin-bottom: 16px;
    }

    /* Reduce modal padding on mobile */
    .modal-content {
        padding: 16px;
    }

    .recommended-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background: #1F6A95;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        z-index: 2;
        max-width: 120px;
        text-align: center;
        line-height: 1.2;
    }
}