/* IJsprijscalculator Frontend Styles */

.ijscalc-wrapper {
    --ijscalc-primary: #f7931e;
    --ijscalc-secondary: #a8e6cf;
    --ijscalc-text: #333;
    --ijscalc-border: #ddd;
    --ijscalc-bg: #fff;
    --ijscalc-radius: 8px;
}

/*.ijscalc-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: var(--ijscalc-bg);
    border-radius: var(--ijscalc-radius);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}*/
.ijscalc-min-bedrag-notice {
    font-size: 0.8em;
    color: #856404;
    margin-top: 8px;
    display: none;
}
.ijscalc-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--ijscalc-text);
}

.ijscalc-subtitle {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 25px 0;
}

/* Bollen selector */
.ijscalc-bollen-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ijscalc-bol-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 2px solid var(--ijscalc-border);
    border-radius: var(--ijscalc-radius);
    background: var(--ijscalc-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
}

.ijscalc-bol-btn:hover {
    border-color: #504375;
    color: #504375;
}

.ijscalc-bol-btn.active {
    border-color: #504375;
    background: #ed5887;
    color: #fff;
}

.ijscalc-bol-icon {
    margin-bottom: 8px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ijscalc-bol-icon img {
    max-height: 70px;
    width: auto;
    transition: transform 0.2s ease;
}

.ijscalc-bol-btn:hover .ijscalc-bol-icon img {
    transform: scale(1.05);
}

.ijscalc-bol-btn.active .ijscalc-bol-icon img {
    transform: scale(1.1);
}

.ijscalc-bol-label {
    font-size: 16px;
    font-weight: 600;
    padding-top: 15px;
}

/* Form fields */
.ijscalc-field {
    margin-bottom: 20px;
}

.ijscalc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ijscalc-text);
    font-size: 0.95em;
}

.ijscalc-field input[type="text"],
.ijscalc-field input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ijscalc-border);
    border-radius: var(--ijscalc-radius);
    font-size: 1em;
    color: var(--ijscalc-text);
    background: var(--ijscalc-bg);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ijscalc-field input:focus {
    outline: none;
    border-color: var(--ijscalc-primary);
}

.ijscalc-field input::placeholder {
    color: #aaa;
}

/* Autocomplete */
.ijscalc-autocomplete-wrapper {
    position: relative;
}

.ijscalc-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ijscalc-bg);
    border: 1px solid var(--ijscalc-border);
    border-top: none;
    border-radius: 0 0 var(--ijscalc-radius) var(--ijscalc-radius);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ijscalc-autocomplete-list.active {
    display: block;
}

.ijscalc-autocomplete-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.ijscalc-autocomplete-list li:last-child {
    border-bottom: none;
}

.ijscalc-autocomplete-list li:hover,
.ijscalc-autocomplete-list li.selected {
    background: #f8f9fa;
}

.ijscalc-autocomplete-list li .gemeente {
    font-size: 0.85em;
    color: #888;
    margin-left: 5px;
}

/* Result section */
.ijscalc-result {
    background: #a8e6cf61;
    padding: 20px;
    border-radius: var(--ijscalc-radius);
    margin-bottom: 20px;
    text-align: center;
}

.ijscalc-result-title {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: var(--ijscalc-text);
}

/* Price display */
.ijscalc-price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--ijscalc-text);
    margin-bottom: 10px;
    min-height: 1.2em;
}

.ijscalc-price-hidden {
    visibility: hidden;
}

.ijscalc-currency {
    font-size: 0.7em;
    vertical-align: text-bottom;
    margin-right: 2px;
}

.ijscalc-amount {
    font-variant-numeric: tabular-nums;
}

/* BTW Toggle Switch */
.ijscalc-btw-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.ijscalc-btw-label {
    font-size: 0.85em;
    color: #666;
    transition: color 0.2s;
}

.ijscalc-btw-label:first-child {
    color: #999;
}

.ijscalc-btw-toggle:has(input:not(:checked)) .ijscalc-btw-label:first-child {
    color: var(--ijscalc-text);
    font-weight: 600;
}

.ijscalc-btw-toggle:has(input:checked) .ijscalc-btw-label:last-child {
    color: var(--ijscalc-text);
    font-weight: 600;
}

/* The toggle switch */
.ijscalc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.ijscalc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ijscalc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.ijscalc-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ijscalc-switch input:checked + .ijscalc-slider {
    background-color: #504375;
}

.ijscalc-switch input:checked + .ijscalc-slider:before {
    transform: translateX(24px);
}

/* Breakdown */
.ijscalc-breakdown {
    text-align: left;
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.ijscalc-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.ijscalc-breakdown-btw {
    border-top: 1px dashed #ddd;
    padding-top: 8px;
    margin-top: 4px;
}

/* Submit button */
.ijscalc-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: #08c181;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0px;
    font-family: 'Cal Sans';
	text-shadow: none;
}

.ijscalc-submit-btn:hover:not(:disabled) {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.ijscalc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.ijscalc-loading .ijscalc-amount {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 480px) {
    .ijscalc-container {
        padding: 20px;
    }
    
    .ijscalc-bollen-selector {
        gap: 10px;
    }
    
    .ijscalc-bol-btn {
        padding: 15px 10px;
    }
    
    .ijscalc-price {
        font-size: 2em;
    }
}






/*wijzigingen*/

/* Min 2 bollen melding */
.ijscalc-min2bollen-msg {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: var(--ijscalc-radius);
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: center;
}

/* Min bedrag notice */
.ijscalc-min-bedrag-notice {
    font-size: 0.8em;
    color: #856404;
    margin-top: 8px;
}