@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.sdc-calculator-wrapper,
.sdc-calculator-wrapper * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sdc-calculator-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.sdc-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sdc-price-field {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
    align-items: stretch;
    justify-content: center;
}

.sdc-currency {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #003B65;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.sdc-price-input {
    flex: 2;
    padding: 0.9rem 0.9rem 0.9rem 2.5rem !important;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 60px 0 0 60px;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif !important;
    height: auto;
    box-sizing: border-box;
}

.sdc-price-input:focus {
    border-color: #003B65;
    box-shadow: 0 0 0 3px rgba(0, 59, 101, 0.1);
    z-index: 1;
    position: relative;
}

.sdc-calculate-btn {
    background: #f0bd2d;
    color: #003B65;
    border: 2px solid #e2e8f0;
    border-left: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0 60px 60px 0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    box-sizing: border-box;
}

.sdc-calculate-btn:hover {
    background: #e0aa1c;
    transform: translateY(-1px);
}

.sdc-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sdc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #003B65 !important;
    border-radius: 60px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2c3c;
    font-family: 'Inter', sans-serif !important;
}

.sdc-checkbox-label.active {
    background: #003B65;
    border-color: #003B65;
    color: white;
}

.sdc-checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.sdc-checkbox-label.active input {
    accent-color: white;
}

.sdc-results-section {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.sdc-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid #eef2f8;
}

.sdc-stat {
    flex: 1;
}

.sdc-stat-center {
    text-align: center;
    flex: 0 0 auto;
    width: 100%;
}

.sdc-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #5b6f86;
    font-family: 'Inter', sans-serif !important;
}

.sdc-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #003B65;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif !important;
}

.sdc-stat-sub {
    font-size: 0.75rem;
    color: #2c4b6e;
    font-family: 'Inter', sans-serif !important;
}

.sdc-full-calculation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9edf2;
}

.sdc-effective-rate {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #003B65;
    margin-bottom: 1rem;
}

.sdc-table-title {
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    color: #003B65;
    font-family: 'Inter', sans-serif !important;
}

/* Table wrapper for horizontal scroll on mobile */
.sdc-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
}

/* Custom scrollbar styling */
.sdc-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.sdc-table-wrapper::-webkit-scrollbar-track {
    background: #eef2f9;
    border-radius: 4px;
}

.sdc-table-wrapper::-webkit-scrollbar-thumb {
    background: #003B65;
    border-radius: 4px;
}

.sdc-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #002a4a;
}

/* Firefox scrollbar styling */
.sdc-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #003B65 #eef2f9;
}

.sdc-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
}

.sdc-table th,
.sdc-table td {
    padding: 10px 8px;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
}

.sdc-table th {
    background: #eef2f9;
    color: #003B65;
    font-weight: 600;
}

.sdc-table td {
    border-bottom: 1px solid #e9edf2;
}

.sdc-table th:first-child,
.sdc-table td:first-child {
    text-align: center !important;
}

.sdc-footnote {
    font-size: 0.8rem;
    color: #555;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0f4f9;
    border-radius: 8px;
    border-left: 3px solid #f0bd2d;
}

.sdc-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.sdc-action-buttons button {
    padding: 0.6rem 1.5rem;
    border: 2px solid #003B65;
    border-radius: 60px;
    background: transparent;
    color: #003B65;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif !important;
}

.sdc-action-buttons button:hover {
    background: #003B65;
    color: white;
}

.sdc-action-buttons .sdc-toggle-btn {
    background: #003B65;
    color: white;
}

.sdc-action-buttons .sdc-toggle-btn:hover {
    background: #002a4a;
}

.sdc-loading {
    text-align: center;
    padding: 2rem;
    color: #7e8c9e;
    font-family: 'Inter', sans-serif !important;
}

/* Mobile Styles */
@media (max-width: 640px) {
    .sdc-container {
        padding: 1.5rem;
    }
    
    .sdc-price-field {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .sdc-currency {
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .sdc-price-input {
        padding: 0.9rem 0.9rem 0.9rem 2.5rem !important;
        border-radius: 60px;
        border-right: 2px solid #e2e8f0;
        margin-bottom: 0;
    }
    
    .sdc-calculate-btn {
        border-radius: 60px;
        border-left: 2px solid #e2e8f0;
        padding: 0.9rem 2rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .sdc-checkbox-label {
        line-height: 1.3em;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .sdc-stat-number {
        font-size: 1.6rem;
    }
    
    .sdc-summary {
        padding: 1rem;
    }
    
    .sdc-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sdc-table {
        min-width: 500px;
    }
    
    .sdc-table th,
    .sdc-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .sdc-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .sdc-action-buttons button {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .sdc-table th {
        background-color: #003B65 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}