.ghl-calc-container {
    --primary-color: #2e7d32;
    --secondary-color: #81c784;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ghl-calc-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.ghl-calc-header h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.ghl-calc-body {
    display: flex;
    flex-wrap: wrap;
}

.ghl-calc-form, .ghl-calc-results {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.ghl-calc-results {
    background-color: var(--light-color);
}

.ghl-form-group {
    margin-bottom: 15px;
}

.ghl-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.ghl-form-group label.required:after {
    content: " *";
    color: #e53935;
}

.ghl-form-group select, 
.ghl-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.ghl-unit-toggle {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px;
    width: 100%;
}

.ghl-unit-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    cursor: pointer;
    flex: 1;
    text-align: center;
    min-width: 0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ghl-unit-option.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.ghl-result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.ghl-result-title {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 6px;
}

.brlc-widget-calculator .ghl-result-title {
    color: var(--primary-color) !important;
}

.ghl-result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ghl-result-value {
    font-weight: 700;
}

.ghl-total-cost {
    font-size: 20px;
    color: var(--primary-color);
    text-align: center;
    margin: 15px 0;
}

.ghl-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.ghl-btn:hover {
    background-color: #1b5e20;
}

.ghl-btn-secondary {
    background-color: var(--secondary-color);
}

.ghl-btn-secondary:hover {
    background-color: #5a8f5b;
}

.ghl-product-image-container {
    width: 100%;
    height: 180px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghl-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ghl-action-buttons {
    margin-top: 15px;
}

.ghl-button-row {
    display: flex;
    gap: 10px;
}

.ghl-button-row .ghl-btn {
    width: 50%;
    margin-top: 0;
}

.ghl-success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

@media (max-width: 600px) {
    .ghl-calc-body {
        flex-direction: column;
    }
    
    .ghl-unit-toggle {
        gap: 8px; /* Reduced gap for mobile */
    }
    
    .ghl-unit-option {
        padding: 8px 5px; /* Adjusted padding for mobile */
        font-size: 13px; /* Slightly smaller font for mobile */
    }
    
    .ghl-product-image-container {
        height: 150px;
    }
    
    .ghl-button-row {
        flex-direction: column;
    }
    
    .ghl-button-row .ghl-btn {
        width: 100%;
    }
}

/* Widget-specific styles */
.brlc-widget-calculator .ghl-calc-container {
    box-shadow: none;
    border: 1px solid #ddd;
}

.brlc-widget-calculator .ghl-calc-header {
    padding: 10px 15px;
}

.brlc-widget-calculator .ghl-calc-body {
    padding: 10px;
}

.brlc-widget-calculator .ghl-form-group {
    margin-bottom: 10px;
}

.brlc-widget-calculator .ghl-form-group input,
.brlc-widget-calculator .ghl-form-group select {
    padding: 8px 10px;
}