.cifp-cost-page {
    margin: 0;
    background: #eef3f8;
    color: #15314b;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cifp-cost-page--embedded {
    background: transparent;
}

.cifp-cost-page__main {
    box-sizing: border-box;
    width: min(1080px, 100%);
    margin: auto;
    padding: clamp(16px, 4vw, 48px);
}

.cifp-cost-page--embedded .cifp-cost-page__main {
    padding: 12px;
}

.cifp-cost-page__home {
    display: inline-block;
    color: #124675;
    margin-bottom: 18px;
    text-underline-offset: 3px;
}

.cifp-cost {
    --cost-border: #d1dfeb;
    --cost-text: #15314b;
    --cost-muted: #4a6279;
    box-sizing: border-box;
    color: var(--cost-text);
    background: #fff;
    border: 1px solid var(--cost-border);
    border-radius: 20px;
    padding: clamp(18px, 4vw, 42px);
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
}

.cifp-cost *,
.cifp-cost *::before,
.cifp-cost *::after {
    box-sizing: border-box;
}

.cifp-cost [hidden] {
    display: none !important;
}

.cifp-cost .cifp-cost__title {
    color: var(--cost-text);
    margin: 0;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.cifp-cost .cifp-cost__intro {
    margin: 10px 0 24px;
    color: var(--cost-muted);
}

.cifp-cost__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 30px);
    align-items: start;
}

.cifp-cost__inputs {
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--cost-border);
    border-radius: 14px;
    background: #f6f9fc;
}

.cifp-cost__quantity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.cifp-cost .cifp-cost__field {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 5px;
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.cifp-cost .cifp-cost__control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #a8bfd3;
    border-radius: 8px;
    background-color: #fff;
    color: var(--cost-text);
    font: inherit;
    font-size: 16px;
    font-weight: 450;
}

.cifp-cost__control:focus-visible,
.cifp-cost-page__home:focus-visible {
    outline: 3px solid #287cbb;
    outline-offset: 2px;
}

.cifp-cost .cifp-cost__status {
    margin: 0;
    padding: 16px;
    color: var(--cost-muted);
    border: 1px solid var(--cost-border);
    background: #f6f9fc;
    border-radius: 14px;
}

.cifp-cost__comparison {
    display: grid;
    gap: 4px;
    padding: 13px clamp(14px, 2.3vw, 22px);
    margin-bottom: 9px;
    border: 1px solid var(--cost-border);
    border-radius: 12px;
    color: var(--cost-muted);
    font-size: 14px;
}

.cifp-cost__comparison strong {
    color: var(--cost-text);
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.cifp-cost__meter {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #c4d6e8;
}

.cifp-cost__meter-fill {
    display: block;
    width: var(--cost-meter-value, 100%);
    height: 100%;
    border-radius: inherit;
    background: #46739e;
    transform-origin: left center;
}

.cifp-cost__offer .cifp-cost__meter {
    margin-top: 0;
    margin-bottom: 3px;
    background: rgb(255 255 255 / 20%);
}

.cifp-cost__offer .cifp-cost__meter-fill {
    background: #b5f5da;
}

.cifp-cost__offer {
    display: grid;
    justify-items: start;
    gap: 7px;
    padding: clamp(14px, 2.3vw, 22px);
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(132deg, #124a77, #063657);
    color: #fff;
}

.cifp-cost__offer-label {
    font-weight: 650;
}

.cifp-cost__amount {
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.13;
    font-weight: 780;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.cifp-cost__advantage {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #b5f5da;
    color: #103d32;
    font-size: 14px;
    font-weight: 750;
}

.cifp-cost .cifp-cost__offer p,
.cifp-cost .cifp-cost__fine-print {
    margin: 3px 0 0;
    font-size: 14px;
}

.cifp-cost .cifp-cost__offer p {
    color: #e0f0ff;
}

.cifp-cost .cifp-cost__fine-print {
    margin-top: 16px;
    color: var(--cost-muted);
}

.cifp-cost__solution {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--cost-border);
    border-left: 3px solid #46739e;
    border-radius: 10px;
    background: #f6f9fc;
}

.cifp-cost .cifp-cost__solution h2,
.cifp-cost .cifp-cost__solution h3 {
    margin: 0 0 4px;
    color: var(--cost-text);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.cifp-cost .cifp-cost__solution p {
    margin: 0;
    color: var(--cost-muted);
    font-size: 14px;
}

.cifp-cost__solution-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 9px;
    font-size: 14px;
    font-weight: 650;
}

.cifp-cost .cifp-cost__solution-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #124675;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cifp-cost__solution-links a:focus-visible {
    outline: 3px solid #287cbb;
    outline-offset: 3px;
    border-radius: 2px;
}

.cifp-cost .cifp-cost__preview {
    width: min(100%, 560px);
    margin: 18px 0 0;
    color: var(--cost-muted);
    font-size: 14px;
}

.cifp-cost__preview figcaption {
    padding: 0 0 8px;
    color: var(--cost-text);
    font-size: 16px;
    font-weight: 650;
}

.cifp-cost__video {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--cost-border);
    background: #f6f9fc;
}

.cifp-cost .cifp-cost__video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.cifp-cost .cifp-cost__video-stop {
    position: absolute;
    inset: 6px 6px auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #15314b;
    font: 700 17px / 1 system-ui, sans-serif;
    cursor: pointer;
}

.cifp-cost__video-stop:focus-visible {
    outline: 3px solid #287cbb;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .cifp-cost__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 350px) {
    .cifp-cost__quantity {
        grid-template-columns: minmax(0, 1fr);
    }
}
