/* ── Texnika Inbank — Product page calculator ──────────────────────────── */

.inbank-calculator {
    margin: 12px 0 16px;
    padding: 11px 15px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    /* Prevent theme float/clearfix issues */
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 47px;
    overflow-wrap: anywhere;
}

/* ── Loading state ───────────────────────────────────────────────────────── */

.inbank-calculator__loading {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

/* ── Result: "From X €/month  ·  with Inbank" ───────────────────────────── */

.inbank-calculator__result {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.inbank-calculator__label {
    color: #111827;
    font-size: 14px;
    font-weight: 400;
    min-width: 0;
    overflow-wrap: anywhere;
}

.inbank-calculator__label strong {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

/* ── Admin notice on product page (visible only to shop managers) ────────── */

.inbank-admin-notice {
    background: #fff8e7;
    border-left: 3px solid #f0b429;
    padding: 8px 12px;
    font-size: 12px;
    color: #7d5a00;
    margin: 8px 0 0;
    border-radius: 2px;
    font-style: normal;
}

/* ── Compact variant for catalog product cards ───────────────────────────── */

.inbank-calculator--summary {
    margin: 8px -4px 0;
    padding: 9px 14px;
    width: calc(100% + 8px);
    max-width: calc(100% + 8px);
    min-height: 53px;
    font-size: 14px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbank-calculator--summary .inbank-calculator__loading {
    display: none; /* No loading text in compact card view */
}

.inbank-calculator--summary .inbank-calculator__result {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    text-align: center;
}

.inbank-calculator--summary .inbank-calculator__label {
    font-size: 16px;
    line-height: 1.35;
}

.inbank-calculator--summary .inbank-calculator__label strong {
    font-size: 17px;
}

.inbank-calculator--summary .inbank-calculator__period {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.inbank-calculator--summary .inbank-calculator__logo {
    display: block;
    width: auto;
    height: 26px;
    max-width: 96px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .inbank-calculator {
        padding: 10px 12px;
    }

    .inbank-calculator__label strong {
        font-size: 16px;
    }

}

/* Official Calculator infrastructure (the external runtime remains opt-in). */
.inbank-official-section {
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 48px auto;
    box-sizing: border-box;
}

.sp-details .inbank-official-section {
    margin: 0 0 24px;
}

.inbank-official-section__title {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.inbank-official-section__frame {
    position: relative;
    width: 100%;
    max-width: 650px;
    min-width: 0;
    min-height: 350px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.inbank-official-section[data-layout="default"] .inbank-official-section__frame { max-width: 402px; min-height: 150px; }
.inbank-official-section[data-layout="extended"] .inbank-official-section__frame { max-width: 350px; min-height: 650px; }

.inbank-official-section__container { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.inbank-official-section__placeholder {
    position: absolute;
    inset: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4b5563;
    text-align: center;
    line-height: 1.45;
}
.inbank-official-section__placeholder strong { color: #111827; font-size: 17px; font-weight: 650; }
.inbank-official-section__placeholder span { max-width: 32ch; font-size: 14px; }
.inbank-official-section__icon { margin-bottom: 4px; color: #7c3aed; }
.inbank-official-section[data-state="loading"] .inbank-official-section__placeholder { display: none; }
.inbank-official-section[data-state="ready"] .inbank-official-section__placeholder { display: none; }

@media (max-width: 700px) {
    .inbank-official-section { margin: 32px auto; }
    .inbank-official-section[data-layout="extended-horizontal"] .inbank-official-section__frame { min-height: 650px; }
}

@media (max-width: 480px) {
    .inbank-official-section__frame { padding: 14px; }
    .inbank-official-section__placeholder { inset: 14px; }
}
