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

.nexi-calculator {
    --nexi-blue: #00a9d6;
    --nexi-blue-dark: #007ca8;
    --nexi-ink: #102b3b;
    --nexi-muted: #607481;
    --nexi-line: #d9e5eb;
    --nexi-soft: #f4f9fb;
    max-width: 940px;
    margin: 32px auto;
    overflow: hidden;
    color: var(--nexi-ink);
    background: #fff;
    border: 1px solid var(--nexi-line);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(16, 43, 59, 0.12);
    font-family: inherit;
}

.nexi-calculator__header {
    padding: 34px clamp(22px, 5vw, 54px);
    color: #fff;
    background: linear-gradient(135deg, var(--nexi-blue-dark), var(--nexi-blue));
}

.nexi-calculator__brand {
    display: inline-block;
    margin-bottom: 9px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nexi-calculator__header h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.nexi-calculator__header p {
    max-width: 700px;
    margin: 0;
    opacity: 0.92;
}

.nexi-calculator__form {
    padding: clamp(24px, 5vw, 54px);
}

.nexi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nexi-field {
    display: grid;
    gap: 8px;
    margin: 0;
    font-weight: 700;
}

.nexi-field--wide {
    grid-column: 1 / -1;
}

.nexi-field input,
.nexi-field select {
    width: 100%;
    min-height: 52px;
    padding: 11px 14px;
    color: var(--nexi-ink);
    background: #fff;
    border: 1px solid #bdcdd5;
    border-radius: 12px;
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nexi-field input:focus,
.nexi-field select:focus {
    border-color: var(--nexi-blue);
    box-shadow: 0 0 0 4px rgba(0, 169, 214, 0.14);
}

.nexi-money-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #bdcdd5;
    border-radius: 12px;
}

.nexi-money-input:focus-within {
    border-color: var(--nexi-blue);
    box-shadow: 0 0 0 4px rgba(0, 169, 214, 0.14);
}

.nexi-money-input > span {
    display: grid;
    align-self: stretch;
    min-width: 50px;
    place-items: center;
    background: var(--nexi-soft);
    border-right: 1px solid var(--nexi-line);
}

.nexi-money-input input {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.nexi-quote-field small {
    color: var(--nexi-muted);
    font-size: 14px;
    font-weight: 500;
}

.nexi-money-input--quote {
    min-height: 76px;
    background: #fff;
}

.nexi-money-input--quote > span {
    min-width: 74px;
    font-size: 26px;
    font-weight: 800;
}

.nexi-quote-output {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    min-height: 74px;
    padding: 12px 20px;
    color: var(--nexi-blue-dark);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.nexi-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 22px;
    color: #fff;
    background: var(--nexi-blue-dark);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(0, 124, 168, 0.24);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    margin-top: 22px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nexi-button:hover {
    transform: translateY(-1px);
}

.nexi-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.nexi-form-error {
    margin: 14px 0 0;
    padding: 12px 14px;
    color: #8a1c1c;
    background: #fff1f1;
    border-radius: 10px;
}

.nexi-result {
    margin: 0 clamp(24px, 5vw, 54px) clamp(24px, 5vw, 54px);
    padding: clamp(22px, 4vw, 36px);
    background: var(--nexi-soft);
    border: 1px solid var(--nexi-line);
    border-radius: 18px;
}

.nexi-result__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--nexi-line);
}

.nexi-result__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--nexi-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nexi-result__total {
    display: block;
    color: var(--nexi-blue-dark);
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1;
}

.nexi-result__service {
    padding: 8px 12px;
    color: var(--nexi-blue-dark);
    background: #fff;
    border: 1px solid var(--nexi-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.nexi-result__details {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
}

.nexi-result__details > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px dashed #cad9df;
}

.nexi-result__details dt {
    color: var(--nexi-muted);
}

.nexi-result__details dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.nexi-result__note {
    margin: 20px 0 0;
    color: var(--nexi-muted);
    font-size: 14px;
}

.nexi-result__note a {
    color: var(--nexi-blue-dark);
    font-weight: 700;
}

@media (max-width: 680px) {
    .nexi-calculator {
        margin: 20px 0;
        border-radius: 18px;
    }

    .nexi-grid {
        grid-template-columns: 1fr;
    }

    .nexi-field--wide {
        grid-column: auto;
    }

    .nexi-result__top {
        align-items: flex-start;
        flex-direction: column;
    }
}

.nexi-rates-standalone,
.nexi-rates-standalone * {
    box-sizing: border-box;
}

.nexi-rates-standalone {
    --nexi-blue: #00a9d6;
    --nexi-blue-dark: #007ca8;
    --nexi-ink: #102b3b;
    --nexi-muted: #607481;
    --nexi-line: #d9e5eb;
    --nexi-soft: #f4f9fb;
    max-width: 1120px;
    margin: 32px auto;
    color: var(--nexi-ink);
    font-family: inherit;
}

.nexi-rate-card {
    margin: 0 clamp(24px, 5vw, 54px) clamp(28px, 5vw, 54px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nexi-line);
    border-radius: 18px;
}

.nexi-rates-standalone .nexi-rate-card {
    margin: 0;
    box-shadow: 0 18px 55px rgba(16, 43, 59, 0.12);
}

.nexi-rate-card__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(20px, 4vw, 34px);
    background: var(--nexi-soft);
    border-bottom: 1px solid var(--nexi-line);
}

.nexi-rate-card__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--nexi-blue-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nexi-rate-card__heading h3 {
    margin: 0;
    color: var(--nexi-ink);
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.15;
}

.nexi-rate-card__heading p {
    max-width: 360px;
    margin: 0;
    color: var(--nexi-muted);
    text-align: right;
}

.nexi-rate-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.nexi-rate-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
}

.nexi-rate-table th,
.nexi-rate-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--nexi-line);
}

.nexi-rate-table thead th {
    color: #fff;
    background: var(--nexi-blue-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nexi-rate-table tbody th {
    color: var(--nexi-ink);
    font-size: 16px;
    font-weight: 850;
}

.nexi-rate-table tbody td:nth-child(2),
.nexi-rate-table tbody td:nth-child(3),
.nexi-rate-table tbody td:nth-child(4) {
    color: var(--nexi-blue-dark);
    font-weight: 800;
    white-space: nowrap;
}

.nexi-rate-table tbody tr:nth-child(even) {
    background: #f8fbfc;
}

.nexi-rate-table tbody tr:last-child th,
.nexi-rate-table tbody tr:last-child td {
    border-bottom: 0;
}

.nexi-rate-card__note {
    margin: 0;
    padding: 16px clamp(20px, 4vw, 34px);
    color: var(--nexi-muted);
    background: var(--nexi-soft);
    border-top: 1px solid var(--nexi-line);
    font-size: 13px;
}

@media (max-width: 680px) {
    .nexi-rate-card {
        margin-right: 16px;
        margin-left: 16px;
    }

    .nexi-rates-standalone .nexi-rate-card {
        margin: 0;
        border-radius: 16px;
    }

    .nexi-rate-card__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .nexi-rate-card__heading p {
        text-align: left;
    }
}
