.bpp-calculator-wrapper {
    margin-top: 10px;
}

.bpp-calculator-button {
    display: inline-block;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.bpp-calculator-button:hover {
    border-color: #999;
    color: #000;
}

.bpp-calculator-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.bpp-calculator-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    font-size: 14px;
    color: #666;
}

.bpp-calculator-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: bpp-calculator-spin 0.8s linear infinite;
}

@keyframes bpp-calculator-spin {
    to { transform: rotate(360deg); }
}

/* Selectors */
.bpp-calculator-selectors {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bpp-calculator-select-group {
    flex: 1;
}

.bpp-calculator-select-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

/* Custom dropdown */
.bpp-calculator-dropdown {
    position: relative;
    width: 100%;
}

.bpp-calculator-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.bpp-calculator-dropdown-trigger:hover {
    border-color: #999;
}

.bpp-calculator-dropdown-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bpp-calculator-dropdown-chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    flex-shrink: 0;
}

.bpp-calculator-dropdown.is-open .bpp-calculator-dropdown-chevron {
    border-top: none;
    border-bottom: 5px solid #666;
}

.bpp-calculator-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.bpp-calculator-dropdown.is-open .bpp-calculator-dropdown-list {
    display: block;
}

.bpp-calculator-dropdown-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.bpp-calculator-dropdown-list li:hover {
    background: #f5f5f5;
}

.bpp-calculator-dropdown-list li.is-selected {
    background: #eef2ff;
    font-weight: 600;
}

.bpp-calculator-dropdown-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.bpp-calculator-dropdown[data-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.bpp-calculator-dropdown[data-disabled="true"] .bpp-calculator-dropdown-trigger {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Table */
.bpp-calculator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bpp-calculator-table thead th {
    background: #f5f5f5;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.bpp-calculator-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.bpp-calculator-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.bpp-calculator-no-plans {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* Modal popup overrides */
.bpp-calculator-modal-popup .modal-inner-wrap {
    max-width: 700px;
    overflow: visible;
}

.bpp-calculator-modal-popup .modal-content {
    overflow: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .bpp-calculator-selectors {
        flex-direction: column;
    }

    .bpp-calculator-table thead {
        display: none;
    }

    .bpp-calculator-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 8px;
    }

    .bpp-calculator-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    .bpp-calculator-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        margin-right: 10px;
    }

    .bpp-calculator-table tbody td:last-child {
        border-bottom: none;
    }

    .bpp-calculator-modal-popup .modal-inner-wrap {
        max-width: 100%;
        margin: 0 10px;
    }
}
