.ccc-quote {
    --ccc-border: #d6dde6;
    --ccc-text: #1f2933;
    --ccc-muted: #5f6f7f;
    --ccc-accent: #0b6bcb;
    --ccc-accent-dark: #084f96;
    color: var(--ccc-text);
    max-width: 430px;
}

.ccc-quote *,
.ccc-quote *::before,
.ccc-quote *::after {
    box-sizing: border-box;
}

.ccc-quote__form {
    margin: 0;
}

.ccc-quote__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.ccc-quote__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ccc-quote__input {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 0;
    flex: 1;
    width: auto !important;
    max-width: 100%;
    min-height: 38px !important;
    height: 38px !important;
    border: 1px solid var(--ccc-border) !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    background: #fff !important;
    color: var(--ccc-text) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.ccc-quote:not(.ccc-quote--button-theme) .ccc-quote__button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 7px 14px !important;
    background: var(--ccc-accent) !important;
    color: #fff !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.ccc-quote:not(.ccc-quote--button-theme) .ccc-quote__button:hover,
.ccc-quote:not(.ccc-quote--button-theme) .ccc-quote__button:focus {
    background: var(--ccc-accent-dark) !important;
}

.ccc-quote--button-theme .ccc-quote__button {
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    text-transform: none !important;
}

.ccc-quote--button-outline .ccc-quote__button {
    border: 1px solid var(--ccc-accent) !important;
    background: transparent !important;
    color: var(--ccc-accent) !important;
}

.ccc-quote--button-outline .ccc-quote__button:hover,
.ccc-quote--button-outline .ccc-quote__button:focus {
    background: #eef6ff !important;
}

.ccc-quote--button-dark .ccc-quote__button {
    background: #1f2933 !important;
    color: #fff !important;
}

.ccc-quote--button-light .ccc-quote__button {
    border: 1px solid var(--ccc-border) !important;
    background: #f6f8fa !important;
    color: var(--ccc-text) !important;
}

.ccc-quote--size-medium .ccc-quote__input,
.ccc-quote[data-form-size="medium"] .ccc-quote__input {
    min-height: 44px !important;
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
}

.ccc-quote--size-medium:not(.ccc-quote--button-theme) .ccc-quote__button,
.ccc-quote[data-form-size="medium"]:not(.ccc-quote--button-theme) .ccc-quote__button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
}

.ccc-quote__button:disabled {
    cursor: progress !important;
    opacity: .72;
}

.ccc-quote__message {
    margin-top: 12px;
    color: #a13018;
}

.ccc-modal[hidden] {
    display: none;
}

.ccc-modal {
    --ccc-border: #d6dde6;
    --ccc-text: #1f2933;
    --ccc-muted: #5f6f7f;
    --ccc-accent: #0b6bcb;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.ccc-modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(17, 24, 39, .54);
    opacity: 0;
    transition: opacity .16s ease;
}

.ccc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 28px));
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .16s ease, transform .16s ease;
}

.ccc-modal--open .ccc-modal__overlay {
    opacity: 1;
}

.ccc-modal--open .ccc-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ccc-modal__title {
    margin: 0 40px 14px 0;
    font-size: 22px;
    line-height: 1.2;
}

.ccc-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ccc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ccc-text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.ccc-modal-open {
    overflow: hidden;
}

.ccc-quote__results {
    display: block;
}

.ccc-quote__address {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ccc-border);
}

.ccc-quote__address strong {
    font-size: 14px;
}

.ccc-quote__address span {
    color: var(--ccc-muted);
}

.ccc-line {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--ccc-border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    margin-bottom: 8px;
}

.ccc-line__service {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.ccc-line__price {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.ccc-line__details {
    margin: 4px 0 0;
    color: var(--ccc-muted);
}

.ccc-quote--table .ccc-line,
.ccc-quote[data-layout="table"] .ccc-line,
.ccc-modal--layout-table .ccc-line,
.ccc-modal[data-layout="table"] .ccc-line {
    border-radius: 0;
    margin-bottom: 0;
}

.ccc-quote--cards .ccc-quote__results,
.ccc-quote[data-layout="cards"] .ccc-quote__results,
.ccc-modal--layout-cards .ccc-quote__results,
.ccc-modal[data-layout="cards"] .ccc-quote__results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ccc-quote--cards .ccc-line,
.ccc-quote[data-layout="cards"] .ccc-line,
.ccc-modal--layout-cards .ccc-line,
.ccc-modal[data-layout="cards"] .ccc-line {
    display: block;
    margin-bottom: 0;
}

.ccc-quote--cards .ccc-line__price,
.ccc-quote[data-layout="cards"] .ccc-line__price,
.ccc-modal--layout-cards .ccc-line__price,
.ccc-modal[data-layout="cards"] .ccc-line__price {
    margin-top: 10px;
}

.ccc-quote--cards .ccc-quote__address,
.ccc-quote[data-layout="cards"] .ccc-quote__address,
.ccc-modal--layout-cards .ccc-quote__address,
.ccc-modal[data-layout="cards"] .ccc-quote__address {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .ccc-quote__row,
    .ccc-line {
        display: block;
    }

    .ccc-quote__button {
        width: auto !important;
        margin-top: 10px;
    }

    .ccc-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        padding: 14px;
    }
}
