#hermes-tariff [hidden] {
    display: none !important;
}

#hermes-tariff {
    --tariff-border: var(--bs-border-color, color-mix(in srgb, currentColor 16%, transparent));
    --tariff-surface: var(--bs-body-bg, Canvas);
    --tariff-subtle-surface: var(--bs-tertiary-bg, color-mix(in srgb, currentColor 5%, transparent));
    --tariff-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--bs-body-color, currentColor) 8%, transparent);
}

body.com-tarifrechner #sp-main-body {
    padding-top: 24px;
}

#hermes-tariff .content-grid {
    gap: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: 1.5rem;
}

#hermes-tariff #calculator-intro {
    max-width: 72ch;
    margin-block: 0 1rem;
    color: var(--bs-secondary-color, inherit);
}

#hermes-tariff #calculator-special-note {
    margin-block: 0 1.25rem;
    padding: 0.85rem 1rem;
    border-inline-start: 0.25rem solid var(--hermes-accent, #c91520);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--tariff-subtle-surface);
}

#hermes-tariff .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "form map" "result result";
    gap: clamp(1rem, 2vw, 1.5rem);
}

#hermes-tariff .calculator-form-column { grid-area: form; }
#hermes-tariff .calculator-map-column { grid-area: map; }
#hermes-tariff .calculator-result-column { grid-area: result; }
#hermes-tariff .grid > *,
#hermes-tariff .address-row > *,
#hermes-tariff .inquiry-summary-item { min-width: 0; }

#hermes-tariff .panel.result-only {
    border: 0;
    padding: 0;
    box-shadow: none;
}
#hermes-tariff .panel.result-only .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "result";
    row-gap: 0;
}
#hermes-tariff .panel.result-only .calculator-form-column,
#hermes-tariff .panel.result-only .calculator-map-column {
    display: none;
}
#hermes-tariff .panel.result-only .calculator-result-column {
    width: 100%;
}
#hermes-tariff .panel.result-only .inquiry-summary {
    margin-top: 0;
    padding-top: 0;
}

#hermes-tariff .address-head,
#hermes-tariff .address-row {
    display: grid;
    grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr);
    gap: 0.5rem;
}

#hermes-tariff .address-head,
#hermes-tariff .size-row,
#hermes-tariff .weight-row,
#hermes-tariff .express-option {
    margin-top: 1rem;
}

#hermes-tariff .address-head:first-child { margin-top: 0; }
#hermes-tariff .street-field { position: relative; }
#hermes-tariff .form-control,
#hermes-tariff .form-select { width: 100%; min-width: 0; max-width: 100%; }
#hermes-tariff .form-label { display: block; }
#hermes-tariff .address-head { align-items: end; }
#hermes-tariff #calculate-btn { width: 100%; margin-top: 1.5rem; }
#hermes-tariff .hint,
#hermes-tariff .inquiry-address-details-hint,
#hermes-tariff .inquiry-details-meta,
#hermes-tariff .map-live-status,
#hermes-tariff .calc-status { margin-top: 0.25rem; }

#hermes-tariff .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 16rem;
    overflow-y: auto;
}
#hermes-tariff .suggestion-item { cursor: pointer; overflow-wrap: anywhere; }

#hermes-tariff #map { height: 28rem; max-height: 65vh; min-height: 15rem; }
#hermes-tariff .map-placeholder { padding: 1rem; }
#hermes-tariff .map-placeholder strong,
#hermes-tariff .map-placeholder span { display: block; }
#hermes-tariff .map-live-status { min-height: 1.5em; opacity: 0; }
#hermes-tariff .map-live-status.is-visible { opacity: 1; }
#hermes-tariff .calc-status { display: flex; align-items: center; gap: 0.5rem; min-height: 1.5em; }
#hermes-tariff .spinner { display: none; }
#hermes-tariff .is-working .spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: hermes-tariff-spin 0.8s linear infinite;
}
@keyframes hermes-tariff-spin { to { transform: rotate(360deg); } }

#hermes-tariff .inquiry-actions,
#hermes-tariff .inquiry-contact,
#hermes-tariff .inquiry-address-details,
#hermes-tariff .inquiry-contact-preference-options,
#hermes-tariff .inquiry-address-details-row {
    display: grid;
    gap: 0.75rem;
}
#hermes-tariff .inquiry-summary,
#hermes-tariff .inquiry-address-details,
#hermes-tariff .inquiry-contact-preference,
#hermes-tariff .inquiry-info-box {
    margin-block: 1rem;
    padding-block: 1rem;
}
#hermes-tariff .inquiry-summary-grid,
#hermes-tariff .inquiry-address-details-grid,
#hermes-tariff .inquiry-actions-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
#hermes-tariff .inquiry-summary-item strong,
#hermes-tariff .inquiry-summary-item span { display: block; overflow-wrap: anywhere; }
#hermes-tariff .inquiry-contact-preference { min-inline-size: 0; }
#hermes-tariff .inquiry-contact textarea { min-height: 9rem; resize: vertical; }
#hermes-tariff #inquiry-contact-input-group,
#hermes-tariff .inquiry-message-field { min-width: 0; }
#hermes-tariff .inquiry-details-meta { display: flex; justify-content: space-between; gap: 0.5rem; }
#hermes-tariff .inquiry-info-box-section + .inquiry-info-box-section { margin-top: 1rem; }
#hermes-tariff .inquiry-actions-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: normal;
}

#hermes-tariff .calculator-form-column,
#hermes-tariff .calculator-map-column,
#hermes-tariff .result {
    border: 1px solid var(--tariff-border);
    border-radius: var(--bs-border-radius-lg, 0.75rem);
    background-color: var(--tariff-surface);
    box-shadow: var(--tariff-shadow);
}

#hermes-tariff .calculator-form-column {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

#hermes-tariff .calculator-map-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0.75rem;
}

#hermes-tariff .form-label,
#hermes-tariff .point-label,
#hermes-tariff .district-label {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

#hermes-tariff .address-row {
    gap: 0.65rem;
}

#hermes-tariff .size-row,
#hermes-tariff .weight-row {
    margin-top: 1.1rem;
}

#hermes-tariff .form-control,
#hermes-tariff .form-select {
    min-height: 2.85rem;
}

#hermes-tariff .form-control[readonly] {
    background-color: var(--tariff-subtle-surface);
}

#hermes-tariff .hint,
#hermes-tariff .inquiry-address-details-hint,
#hermes-tariff .inquiry-details-meta {
    color: var(--bs-secondary-color, inherit);
}

#hermes-tariff #calculate-btn {
    min-height: 3rem;
    font-weight: 600;
}

#hermes-tariff .result {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

#hermes-tariff .inquiry-summary {
    margin-block: 0 1.25rem;
    padding-block: 0 1.25rem;
    border-color: var(--tariff-border);
}

#hermes-tariff .inquiry-summary-title {
    margin: 0 0 1rem;
}

#hermes-tariff .inquiry-summary-address {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

#hermes-tariff .inquiry-summary-address-block,
#hermes-tariff .inquiry-summary-item {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--tariff-border);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--tariff-subtle-surface);
}

#hermes-tariff .inquiry-summary-address-label,
#hermes-tariff .inquiry-summary-item strong {
    margin: 0 0 0.35rem;
    color: var(--bs-secondary-color, inherit);
}

#hermes-tariff .inquiry-summary-address-value,
#hermes-tariff .inquiry-summary-item span {
    margin: 0;
    overflow-wrap: anywhere;
}

#hermes-tariff .express-option {
    margin-block: 1rem;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border: 1px solid var(--tariff-border);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--tariff-subtle-surface);
}

#hermes-tariff .express-option .form-check-input {
    margin-top: 0.2rem;
    margin-left: -1.5rem;
}

#hermes-tariff .express-option .form-check-label {
    cursor: pointer;
}

#hermes-tariff .inquiry-address-details,
#hermes-tariff .inquiry-contact-preference,
#hermes-tariff .inquiry-info-box {
    border-color: var(--tariff-border) !important;
}

#hermes-tariff .inquiry-contact-preference-options {
    gap: 0.5rem;
}

#hermes-tariff .inquiry-contact-preference-options .form-check {
    margin: 0;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--tariff-border);
    border-radius: var(--bs-border-radius, 0.375rem);
}

#hermes-tariff .inquiry-actions-buttons .btn {
    min-height: 2.85rem;
}

#hermes-tariff #map {
    flex: 1 1 auto;
    min-height: 20rem;
    margin: 0;
    overflow: hidden;
    border-color: var(--tariff-border);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--tariff-subtle-surface);
}

#hermes-tariff .map-placeholder {
    display: grid;
    min-height: 100%;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
}

#hermes-tariff .map-placeholder span {
    color: var(--bs-secondary-color, inherit);
}

@media (max-width: 767px) {
    #hermes-tariff .grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "form" "map" "result";
    }
    #hermes-tariff .calculator-map-column {
        min-height: 22rem;
    }
    #hermes-tariff .inquiry-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #hermes-tariff .inquiry-actions-buttons { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    #hermes-tariff .spinner {
        animation-duration: 1.6s;
    }
}

body.com-tarifrechner #sp-main-body {
    padding-block: clamp(2rem, 4vw, 3.5rem) 5rem;
    background: #fff;
}

#hermes-tariff .content-grid {
    gap: 1.25rem;
}

#hermes-tariff #calculator-intro {
    max-width: 68ch;
    margin-bottom: 1.25rem;
    color: #343a36;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.7;
}

#hermes-tariff #calculator-special-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 75ch;
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e1e3de;
    border-inline-start: 3px solid var(--hermes-accent, #c91520);
    border-radius: 6px;
    background: #f8f8f6;
    color: #454b47;
    font-size: 0.85rem;
    line-height: 1.45;
}

#hermes-tariff #calculator-special-note p {
    flex: 1 1 auto;
    margin: 0;
}

#hermes-tariff #calculator-special-note .special-note-link {
    flex: 0 0 auto;
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 6px;
    background: var(--hermes-accent, #c91520);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

#hermes-tariff #calculator-special-note .special-note-link:hover {
    background: #a80e18;
    color: #fff;
}

#hermes-tariff .calculator-form-column,
#hermes-tariff .calculator-map-column,
#hermes-tariff .result {
    border-color: #e1e3de;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgb(31 39 33 / 7%);
}

#hermes-tariff .calculator-form-column {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

#hermes-tariff .calculator-map-column {
    padding: 0.75rem;
}

#hermes-tariff .form-label,
#hermes-tariff .point-label,
#hermes-tariff .district-label {
    color: #303632;
    font-size: 0.95rem;
}

#hermes-tariff .form-control,
#hermes-tariff .form-select {
    min-height: 3rem;
    border-color: #d8dcd7;
    border-radius: 8px;
    background-color: #fff;
    color: #252a27;
    font-size: 1rem;
}

#hermes-tariff .form-control:focus,
#hermes-tariff .form-select:focus {
    border-color: var(--hermes-accent, #c91520);
    box-shadow: 0 0 0 3px rgb(201 21 32 / 14%);
}

#hermes-tariff .form-control[readonly] {
    background-color: #f1f2ef;
}

#hermes-tariff #calculate-btn {
    min-height: 3.25rem;
    margin-top: 1.5rem;
    border: 0;
    border-radius: 7px;
    background: var(--hermes-accent, #c91520);
    box-shadow: none;
    font-size: 1rem;
    font-weight: 700;
}

#hermes-tariff #calculate-btn:hover {
    background: #a80e18;
}

#hermes-tariff #map {
    border: 0;
    border-radius: 10px;
}

#hermes-tariff .suggestions {
    border: 1px solid #d8dcd7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgb(31 39 33 / 12%);
}

#hermes-tariff .suggestion-item {
    padding: 0.75rem 0.9rem;
}

#hermes-tariff .suggestion-item + .suggestion-item {
    border-top: 1px solid #eceeeb;
}

@media (max-width: 991.98px) {
    #hermes-tariff .grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "form" "map" "result";
    }

    #hermes-tariff .calculator-map-column {
        min-height: 22rem;
    }
}

@media (max-width: 767px) {
    body.com-tarifrechner #sp-main-body {
        padding-top: 1.75rem;
    }

    #hermes-tariff .calculator-form-column {
        padding: 1rem;
    }

    #hermes-tariff .address-head,
    #hermes-tariff .address-row {
        grid-template-columns: minmax(0, 2.2fr) minmax(4.25rem, 0.8fr);
    }

    #hermes-tariff #calculator-special-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    #hermes-tariff #calculator-special-note .special-note-link {
        width: auto;
        align-self: flex-start;
    }
}

#hermes-tariff {
    --tariff-border: #e4e6e2;
    --tariff-surface: #fff;
    --tariff-subtle-surface: #f6f7f4;
    --tariff-shadow: 0 10px 30px rgb(31 39 33 / 6%);
    color: #343a36;
}

#hermes-tariff .content-grid {
    gap: 1rem;
}

#hermes-tariff #calculator-intro {
    max-width: 72ch;
    margin-bottom: 1rem;
    color: #454b47;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.7;
}

#hermes-tariff #calculator-special-note {
    max-width: 75ch;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e4e6e2;
    border-inline-start: 3px solid var(--hermes-accent, #c91520);
    border-radius: 6px;
    background: #f8f8f6;
    font-size: 0.85rem;
    line-height: 1.45;
}

#hermes-tariff .calculator-form-column,
#hermes-tariff .calculator-map-column,
#hermes-tariff .result {
    border: 1px solid #e4e6e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(31 39 33 / 5%);
}

#hermes-tariff .calculator-form-column {
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

#hermes-tariff .calculator-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

#hermes-tariff .calculator-card-step {
    display: inline-flex;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #f8e9ea;
    color: #a80e18;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#hermes-tariff .calculator-card-heading h2 {
    margin: 0;
    color: #252b27;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#hermes-tariff .calculator-card-heading p {
    margin: 0.25rem 0 0;
    color: #6a706c;
    font-size: 0.875rem;
    line-height: 1.5;
}

#hermes-tariff .calculator-group-heading {
    margin: 0 0 0.75rem;
    color: #414844;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#hermes-tariff .shipment-group-heading {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eceeeb;
}

#hermes-tariff .address-head,
#hermes-tariff .address-row {
    gap: 0.6rem;
}

#hermes-tariff .address-head {
    margin-top: 1rem;
}

#hermes-tariff .calculator-group-heading + .address-head {
    margin-top: 0;
}

#hermes-tariff .form-label,
#hermes-tariff .point-label,
#hermes-tariff .district-label {
    margin-bottom: 0.4rem;
    color: #3f4642;
    font-size: 0.875rem;
    font-weight: 600;
}

#hermes-tariff .form-control,
#hermes-tariff .form-select {
    min-height: 3rem;
    border: 1px solid #d8dcd7;
    border-radius: 7px;
    background-color: #fff;
    color: #252a27;
    font-size: 0.95rem;
}

#hermes-tariff .form-control:focus,
#hermes-tariff .form-select:focus {
    border-color: var(--hermes-accent, #c91520);
    box-shadow: 0 0 0 3px rgb(201 21 32 / 12%);
}

#hermes-tariff .form-control[readonly] {
    background-color: #f3f4f1;
}

#hermes-tariff .size-row,
#hermes-tariff .weight-row {
    margin-top: 1rem;
}

#hermes-tariff .hint,
#hermes-tariff .inquiry-address-details-hint,
#hermes-tariff .inquiry-details-meta {
    color: #68706b;
    font-size: 0.82rem;
    line-height: 1.5;
}

#hermes-tariff #calculate-btn {
    min-height: 3.1rem;
    margin-top: 1.25rem;
    border: 0;
    border-radius: 6px;
    background: var(--hermes-accent, #c91520);
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 700;
}

#hermes-tariff #calculate-btn:hover {
    background: #a80e18;
}

#hermes-tariff .calculator-map-column {
    gap: 0.75rem;
    padding: 1rem;
}

#hermes-tariff .map-card-heading {
    margin: 0;
}

#hermes-tariff #map {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #f0f2ee;
}

#hermes-tariff .map-placeholder {
    color: #343a36;
}

#hermes-tariff .map-placeholder span {
    max-width: 34ch;
    font-size: 0.875rem;
    line-height: 1.55;
}

#hermes-tariff .map-live-status,
#hermes-tariff .calc-status {
    color: #68706b;
    font-size: 0.82rem;
}

#hermes-tariff .suggestions {
    overflow: hidden;
    border: 1px solid #d8dcd7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 24px rgb(31 39 33 / 12%);
}

#hermes-tariff .suggestion-item {
    padding: 0.7rem 0.8rem;
    color: #343a36;
}

#hermes-tariff .suggestion-item + .suggestion-item {
    border-top: 1px solid #eceeeb;
}

#hermes-tariff .error {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

#hermes-tariff .result {
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

#hermes-tariff .result h2:not([hidden]) {
    margin: 0 0 1rem;
    color: #252b27;
    font-size: 1.5rem;
}

#hermes-tariff .inquiry-actions h3 {
    margin: 1.5rem 0 1rem;
    color: #252b27;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

#hermes-tariff .inquiry-summary-title {
    margin: 0 0 1rem;
}

#hermes-tariff .result table {
    margin-bottom: 1.25rem;
    --bs-table-bg: transparent;
}

#hermes-tariff .result table td {
    padding: 0.75rem 0.85rem;
    border-color: #eceeeb;
    vertical-align: middle;
}

#hermes-tariff .result table td:last-child {
    text-align: end;
    font-weight: 600;
}

#hermes-tariff .result table tr.total td {
    border-top: 2px solid #cfd4ce;
    color: #252b27;
    font-size: 1.05rem;
    font-weight: 700;
}

#hermes-tariff .inquiry-summary-address-block,
#hermes-tariff .inquiry-summary-item {
    border-color: #e4e6e2;
    border-radius: 7px;
    background: #f7f8f5;
}

#hermes-tariff .inquiry-summary-address-label,
#hermes-tariff .inquiry-summary-item strong {
    color: #68706b;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#hermes-tariff .inquiry-address-details,
#hermes-tariff .inquiry-contact-preference,
#hermes-tariff .inquiry-info-box {
    border-color: #e4e6e2 !important;
}

#hermes-tariff .inquiry-address-details-heading,
#hermes-tariff .inquiry-contact-preference-heading,
#hermes-tariff .inquiry-address-details-row-title {
    margin: 0;
    color: #343a36;
    font-size: 0.95rem;
    font-weight: 600;
}

#hermes-tariff .inquiry-address-details-hint {
    margin: 0;
}

#hermes-tariff .inquiry-contact-preference-options .form-check {
    border-color: #e4e6e2;
    border-radius: 7px;
    background: #f7f8f5;
}

#hermes-tariff .inquiry-contact textarea {
    min-height: 8rem;
    border-radius: 7px;
}

#hermes-tariff .inquiry-actions-buttons .btn {
    min-height: 2.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

#hermes-tariff .inquiry-actions-buttons .btn:hover {
    filter: brightness(0.94);
}

@media (max-width: 991.98px) {
    #hermes-tariff .grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "form" "map" "result";
    }

    #hermes-tariff .calculator-map-column {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    #hermes-tariff #calculator-intro {
        font-size: 1rem;
    }

    #hermes-tariff #calculator-special-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    #hermes-tariff #calculator-special-note .special-note-link {
        width: auto;
        align-self: flex-start;
    }

    #hermes-tariff .calculator-form-column,
    #hermes-tariff .calculator-map-column {
        padding: 1rem;
    }

    #hermes-tariff .address-head,
    #hermes-tariff .address-row {
        grid-template-columns: minmax(0, 2.2fr) minmax(4.25rem, 0.8fr);
    }

    #hermes-tariff .inquiry-summary-grid,
    #hermes-tariff .inquiry-address-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#hermes-tariff .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "form" "result";
}

#hermes-tariff .panel.result-only .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "result";
}

#hermes-tariff .inquiry-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.5vw, 2rem);
}

#hermes-tariff .inquiry-summary-details {
    min-width: 0;
}

#hermes-tariff .inquiry-summary-address {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

#hermes-tariff .inquiry-summary-section + .inquiry-summary-section {
    margin-top: 1.25rem;
}

#hermes-tariff .inquiry-summary-section h4 {
    margin: 0 0 0.65rem;
    color: #343a36;
    font-size: 0.95rem;
    font-weight: 700;
}

#hermes-tariff .inquiry-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

#hermes-tariff .inquiry-summary-item {
    min-height: 4.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
}

#hermes-tariff .inquiry-summary-address-block {
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

#hermes-tariff .inquiry-summary-address-label,
#hermes-tariff .inquiry-summary-item strong {
    display: block;
    margin: 0 0 0.3rem;
    color: #68706b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#hermes-tariff .inquiry-summary-address-value,
#hermes-tariff .inquiry-summary-item span {
    display: block;
    color: #252b27;
    font-size: 0.98rem;
    line-height: 1.45;
}

#hermes-tariff .inquiry-summary-total-gross {
    border-color: #f0c9cc;
    border-inline-start: 3px solid var(--hermes-accent, #c91520);
    background: #fff6f6;
}

#hermes-tariff .inquiry-summary-total-gross span {
    color: var(--hermes-accent, #c91520);
    font-size: 1.15rem;
    font-weight: 700;
}

#hermes-tariff .calculator-map-column {
    grid-area: auto;
    min-width: 0;
    margin: 0;
}

@media (min-width: 992px) {
    #hermes-tariff #calculator-panel:not(.result-only) > .grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "form map" "result result";
    }
}

@media (max-width: 991.98px) {
    #hermes-tariff #calculator-panel:not(.result-only) > .grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "form" "map" "result";
    }
}

#hermes-tariff .tariff-options {
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid #e1e3de;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(31 39 33 / 7%);
}

#hermes-tariff .tariff-options-heading {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

#hermes-tariff .tariff-options-heading > div:not(.tariff-options-route-meta) {
    flex: 1;
}

#hermes-tariff .tariff-options-route-meta {
    display: flex;
    flex: 0 0 auto;
    gap: 1.25rem;
}

#hermes-tariff .tariff-options-heading .calculator-card-step {
    margin-top: 0.1rem;
}

#hermes-tariff .tariff-options-heading h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

#hermes-tariff .tariff-options-heading p {
    margin: 0;
    color: var(--bs-secondary-color, #5d625e);
}

#hermes-tariff .tariff-options-heading .tariff-options-size-definition {
    margin-top: 0.35rem;
    font-size: 0.875rem;
}

#hermes-tariff .tariff-options-distance,
#hermes-tariff .tariff-options-zone {
    flex: 0 0 auto;
    max-width: 18rem;
    text-align: right;
    font-size: 0.875rem;
}

#hermes-tariff .tariff-options-distance span,
#hermes-tariff .tariff-options-distance strong,
#hermes-tariff .tariff-options-zone span,
#hermes-tariff .tariff-options-zone strong {
    display: block;
}

#hermes-tariff .tariff-options-distance strong,
#hermes-tariff .tariff-options-zone strong {
    margin-top: 0.2rem;
    color: var(--bs-body-color, #252925);
    font-size: 1.1rem;
}

#hermes-tariff .tariff-options-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: #f8f9f7;
}

#hermes-tariff .tariff-options-addresses p {
    min-width: 0;
    margin: 0;
}

#hermes-tariff .tariff-options-addresses strong,
#hermes-tariff .tariff-options-addresses span {
    display: block;
}

#hermes-tariff .tariff-options-addresses strong {
    margin-bottom: 0.2rem;
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.85rem;
}

#hermes-tariff .tariff-options-addresses span {
    overflow-wrap: anywhere;
}

#hermes-tariff .tariff-estimate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

#hermes-tariff .tariff-option-grid {
    display: block;
}

#hermes-tariff .tariff-option {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: #fff;
}

#hermes-tariff .tariff-option h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

#hermes-tariff .tariff-option-detail {
    min-height: 0;
    margin: 0;
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.9rem;
    font-weight: 600;
}

#hermes-tariff .tariff-option-price {
    display: flex;
    flex-direction: column;
    margin: 1rem 0 0;
}

#hermes-tariff .tariff-option-price strong {
    font-size: 1.75rem;
    line-height: 1.2;
}

#hermes-tariff .tariff-option-price span,
#hermes-tariff .tariff-option-net {
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.85rem;
}

#hermes-tariff .tariff-option-net {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
}

#hermes-tariff .tariff-option-note {
    flex: 1;
    margin: 1rem 0;
    padding-top: 0.8rem;
    border-top: 1px solid #e8e9e6;
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.85rem;
    line-height: 1.5;
}

#hermes-tariff .tariff-option-select {
    width: 100%;
    min-height: 2.8rem;
    border-radius: 6px;
    font-weight: 600;
}

#hermes-tariff .price-estimate-form {
    padding: 1rem;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: #f8f9f7;
}

#hermes-tariff .price-estimate-form > p:first-child {
    margin: 0 0 0.9rem;
    color: var(--bs-secondary-color, #5d625e);
}

#hermes-tariff .price-estimate-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#hermes-tariff .price-estimate-form .tariff-options-size-definition {
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

#hermes-tariff #price-estimate-submit {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 1rem;
}

#hermes-tariff .price-express-surcharge {
    margin: 0.45rem 0 0;
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.85rem;
}

#hermes-tariff .price-estimate-form #price-express-option {
    display: block;
    width: 100%;
    margin: 1rem 0 0;
    padding: 1rem 0 0 1.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#hermes-tariff .price-estimate-form #price-estimate-submit {
    border-top: 1px solid #e1e3de;
}

#hermes-tariff .price-estimate-form .price-express-surcharge {
    margin-left: 0;
}

#hermes-tariff #price-continue {
    width: 100%;
    margin-top: 1rem;
}

#hermes-tariff .tariff-options-footnote {
    margin: 1rem 0 0;
    color: var(--bs-secondary-color, #5d625e);
    font-size: 0.85rem;
}

@media (max-width: 575px) {
    #hermes-tariff .tariff-options-heading {
        display: grid;
        grid-template-columns: 2.25rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    #hermes-tariff .tariff-options-route-meta {
        grid-column: 2;
    }

    #hermes-tariff .tariff-options-distance,
    #hermes-tariff .tariff-options-zone {
        text-align: left;
    }

    #hermes-tariff .tariff-option-detail {
        min-height: 0;
    }

    #hermes-tariff .tariff-estimate-layout,
    #hermes-tariff .price-estimate-fields,
    #hermes-tariff .tariff-options-addresses {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    #hermes-tariff .tariff-estimate-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

#hermes-tariff .calculator-map-column .calculator-card-heading {
    margin-bottom: 0.75rem;
}

#hermes-tariff .calculator-map-column #map {
    height: clamp(18rem, 30vw, 26rem) !important;
    min-height: 18rem;
    max-height: 26rem;
}

#hermes-tariff .calculator-map-column .map-live-status {
    min-height: 0;
}

@media (max-width: 767px) {
    #hermes-tariff .calculator-map-column #map {
        height: 20rem !important;
        min-height: 20rem;
    }
}

/* ===== Gestraffter Ablauf (2026-11): Preis live, Anfrage direkt darunter ===== */

/* Hinweis zu Wartezeiten/Zuschlägen kompakt unter dem Preis */
#hermes-tariff .tariff-option-grid {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

#hermes-tariff .price-disclaimer {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 8px;
    background: #f6f6f4;
    color: #5d625f;
    font-size: 0.82rem;
    line-height: 1.55;
}

#hermes-tariff .price-disclaimer .inquiry-info-box-section + .inquiry-info-box-section {
    margin-top: 0.6rem;
}

#hermes-tariff .price-estimate-hint {
    min-height: 0;
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

#hermes-tariff .price-estimate-hint:empty {
    display: none;
}

/* Anfrage-Block innerhalb der Tarifübersicht */
#hermes-tariff .tariff-options .inquiry-actions {
    margin-top: 1.5rem;
    padding: 1.5rem 0 0;
    border: 0;
    border-top: 1px solid #e1e3de;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#hermes-tariff .tariff-options .inquiry-step-heading {
    margin-bottom: 1rem;
}

/* „Details hinzufügen (optional)“ als Aufklapp-Kasten */
#hermes-tariff .inquiry-more-details {
    margin: 0 0 1rem;
    border: 1px solid #e1e3de;
    border-radius: 8px;
    background: #fff;
}

#hermes-tariff .inquiry-more-details > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.75rem;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    position: relative;
    cursor: pointer;
    list-style: none;
}

#hermes-tariff .inquiry-more-details > summary::-webkit-details-marker {
    display: none;
}

#hermes-tariff .inquiry-more-details > summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #5d625f;
    border-bottom: 2px solid #5d625f;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}

#hermes-tariff .inquiry-more-details[open] > summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

#hermes-tariff .inquiry-more-details > summary:focus-visible {
    outline: 2px solid var(--hermes-accent, #c91520);
    outline-offset: 2px;
    border-radius: 8px;
}

#hermes-tariff .inquiry-more-details-title {
    color: #252b27;
    font-weight: 700;
}

#hermes-tariff .inquiry-more-details-sub {
    color: #68706b;
    font-size: 0.88rem;
}

#hermes-tariff .inquiry-more-details > .inquiry-contact {
    padding: 0 1rem 1rem;
}

#hermes-tariff .inquiry-more-details .inquiry-address-details {
    margin-top: 0;
    border-top: 0;
}

#hermes-tariff .inquiry-contact-field {
    margin-top: 1rem;
}

#hermes-tariff .tariff-options .inquiry-edit-actions {
    margin-top: 1rem;
}

/* Strecke/Zone-Angaben dürfen umbrechen (sonst ragt „Zone“ mobil über den Rand) */
#hermes-tariff .tariff-options-route-meta {
    flex-wrap: wrap;
    min-width: 0;
}

@media (max-width: 767.98px) {
    #hermes-tariff .tariff-options-heading {
        flex-wrap: wrap;
    }

    #hermes-tariff .tariff-options-route-meta {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem 1.5rem;
    }

    /* Mobil: Preis → Größe/Gewicht → Hinweistext */
    #hermes-tariff .tariff-estimate-layout {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    #hermes-tariff .tariff-option-grid {
        display: contents;
    }

    #hermes-tariff #tariff-price-card { order: 1; }
    #hermes-tariff .price-estimate-form { order: 2; }
    #hermes-tariff .price-disclaimer { order: 3; }
}

/* Strecke/Zone-Labels nicht umbrechen */
#hermes-tariff .tariff-options-route-meta span {
    white-space: nowrap;
}
