/* Elementor host normalization: the shortcode widget itself must be allowed to grow. */
.elementor-widget-shortcode.sb-price-calculator-widget {
    --container-widget-width: 100% !important;
    --container-widget-flex-grow: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.elementor-widget-shortcode.sb-price-calculator-widget > .elementor-widget-container,
.sb-price-calculator-widget-container,
.sb-price-calculator-shortcode-host {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.sb-price-calculator {
    --sb-price-accent: #cf2e2e;
    --sb-price-accent-hover: #00d18a;
    --sb-price-dark: #00353f;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 3vw, 38px);
    border: 1px solid rgba(0, 53, 63, 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 53, 63, 0.08);
    box-sizing: border-box;
}

.sb-price-calculator,
.sb-price-calculator * {
    box-sizing: border-box;
}

.sb-price-calculator-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(14px, 2vw, 18px);
    width: 100%;
    min-width: 0;
}

.sb-price-calculator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.sb-price-calculator-field > span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sb-price-dark);
}

.sb-price-calculator select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 53, 63, 0.25);
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font: inherit;
    font-size: 1rem;
}

.sb-price-calculator select:focus {
    outline: 2px solid var(--sb-price-accent-hover);
    outline-offset: 2px;
}

.sb-price-calculator-result {
    width: 100%;
    min-width: 0;
    margin: clamp(22px, 4vw, 28px) 0 22px;
}

.sb-price-total {
    max-width: 100%;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1;
    font-weight: 800;
    color: var(--sb-price-dark);
    overflow-wrap: anywhere;
}

.sb-price-breakdown {
    max-width: 100%;
    margin-top: 8px;
    color: #59666b;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.sb-price-gross-note {
    max-width: 100%;
    margin-top: 4px;
    color: #6d777b;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.sb-price-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 7px;
    background: var(--sb-price-accent);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sb-price-action:hover,
.sb-price-action:focus {
    background: var(--sb-price-accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.sb-price-message {
    max-width: 100%;
    margin: 16px 0 0;
    overflow-wrap: anywhere;
}

.sb-price-calculator-empty {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 12px 16px;
    border-left: 4px solid #cf2e2e;
    background: #fff;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .sb-price-calculator {
        padding: 18px;
        border-radius: 14px;
    }

    .sb-price-calculator select {
        font-size: 16px;
    }

    .sb-price-action {
        width: 100%;
    }
}
