.auction-fee-calculator {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
    color: inherit;
}

.afc-form-group {
    margin-bottom: 15px;
}

.afc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.afc-input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    height: auto !important;
}

.afc-select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    height: auto !important;
}

.afc-total-heading {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    color: inherit;
}

#afc-total-amount {
    font-weight: 700;
    color: #0073aa;
    font-size: 22px;
}

.afc-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.afc-result-breakdown {
    display: flex;
    margin-top: 15px;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
}

.afc-breakdown-column {
    flex: 1;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afc-breakdown-column:first-child {
    border-right: 1px solid #eaeaea;
}

.afc-breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afc-breakdown-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.afc-breakdown-value {
    font-size: 18px;
    font-weight: 600;
}

/* Modal specific overrides */
.modal-content .auction-fee-calculator {
    padding: 0;
}

.modal-content .afc-input,
.modal-content .afc-select {
    background-color: #fff !important;
    color: #333 !important;
}

/* Bootstrap Modal Compatibility */
.modal-body .auction-fee-calculator {
    max-width: 100%;
}

/* Select2 Compatibility (if using in modal) */
.modal-body .select2-container {
    width: 100% !important;
    z-index: 9999;
}

/* Override any potential theme conflicts */
.auction-fee-calculator input[type="number"],
.modal-body .auction-fee-calculator input[type="number"] {
    width: 100% !important;
    padding: 10px !important;
    height: auto !important;
    min-height: 40px !important;
    line-height: 1.5 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .afc-result-breakdown {
        flex-direction: column;
    }
    
    .afc-breakdown-column {
        padding: 10px 0;
    }
    
    .afc-breakdown-column:first-child {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
}