.tmn-service-actions {
    display: flex;
    margin-top: 14px;
}

.tmn-service-action, .tmn-offer-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: .81rem;
    font-weight: 600;
}
.tmn-service-action :is(.tmn-inner-icon, img) { width: 16px; height: 16px; flex: none; }
.tmn-service-whatsapp, .tmn-service-phone { display: none; }
.tmn-service-whatsapp { background: #137a45; box-shadow: 0 3px 11px #168b4d28; }
.tmn-service-whatsapp img { filter: brightness(0) invert(1); }
.tmn-service-phone { background: #2b2a30; box-shadow: 0 3px 11px #2b2a3029; }
.tmn-offer-gradient {
    background: linear-gradient(110deg, #7548af, #a23e79 55%, #b05237);
    box-shadow: 0 3px 11px #92497729;
}
.tmn-service-action:is(:hover, :active), .tmn-offer-submit:enabled:hover { filter: brightness(1.08); }

@media (max-width: 767px) {
    .tmn-service-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .tmn-service-action {
        display: flex;
        gap: 4px;
        min-width: 0;
        padding: 5px;
        font-size: clamp(.68rem, 2.75vw, .78rem);
        line-height: 1.2;
        text-align: center;
    }
}
@media (max-width: 350px) {
    .tmn-service-action { flex-direction: column; }
}

html:has(.tmn-offer-dialog:modal) { overflow: hidden; scrollbar-gutter: stable; }

.tmn-offer-dialog {
    --tmn-offer-viewport-height: 100vh;
    --tmn-offer-safe-top: max(12px, env(safe-area-inset-top));
    --tmn-offer-safe-bottom: max(12px, env(safe-area-inset-bottom));
    width: min(480px, calc(100% - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right))));
    max-width: none;
    /* Override the native dialog's fit-content height before sizing the grid rows. */
    height: auto;
    min-height: 0;
    max-height: calc(var(--tmn-offer-height, var(--tmn-offer-viewport-height)) - var(--tmn-offer-safe-top) - var(--tmn-offer-safe-bottom));
    margin: 0;
    padding: 0;
    border: 1px solid #e9e6ed;
    border-radius: 22px;
    color: var(--tmn-ink);
    background: #fffffff2;
    box-shadow: 0 16px 64px #27223528;
}
@supports (height: 100dvh) {
    .tmn-offer-dialog { --tmn-offer-viewport-height: 100dvh; }
}
.tmn-offer-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.tmn-offer-dialog[open]:not(:modal) { position: relative; margin: 16px auto 0; }
.tmn-offer-dialog:modal {
    position: fixed;
    inset: calc(var(--tmn-offer-top, 0px) + (var(--tmn-offer-height, var(--tmn-offer-viewport-height)) + var(--tmn-offer-safe-top) - var(--tmn-offer-safe-bottom)) / 2) 0 auto;
    margin-inline: auto;
    translate: 0 -50%;
}
.tmn-offer-dialog::backdrop {
    background: #edeaf171;
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
}
.tmn-offer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 0 18px;
}
.tmn-offer-top .tmn-kicker { color: #705780; font-size: .64rem; }
.tmn-offer-close {
    display: grid;
    flex: 0 0 44px;
    height: 44px;
    place-items: center;
    color: #58525e;
    border-radius: 50%;
    font: 400 1.4rem/1 system-ui, sans-serif;
}
.tmn-offer-close:hover { background: #f2f0f4; }
.tmn-offer-close:focus-visible { outline-offset: -3px; }

.tmn-offer-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 18px 17px;
    scroll-padding-block: 8px;
}
.tmn-offer-content h2 { font-size: clamp(1.35rem, 4.7vw, 1.57rem); font-weight: 720; line-height: 1.14; }
.tmn-offer-description { margin-top: 6px; color: #52505a; font-size: .82rem; line-height: 1.5; }
.tmn-offer-form { display: grid; gap: 10px; margin-top: 14px; }
.tmn-offer-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 55px;
    gap: 2px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: #f2f2f4;
}
.tmn-offer-field > span { color: #64616d; font-size: .72rem; line-height: 1.25; }
.tmn-offer-field small { font-size: inherit; }
.tmn-offer-field:focus-within { border-color: #9a79b5; box-shadow: 0 0 0 2px #9a79b520; }
.tmn-offer-field:has([aria-invalid="true"]) { border-color: #b86673; }
.tmn-offer-field :is(input, textarea) {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #25232a;
    font: inherit;
    font-size: .92rem;
    line-height: 1.4;
}
.tmn-offer-field :is(input, textarea)::placeholder { color: #6c6973; }
.tmn-offer-field textarea { min-height: 38px; max-height: 120px; resize: vertical; }
.tmn-offer-error, .tmn-offer-feedback { color: #8d3546; font-size: .76rem; }
.tmn-offer-error { padding: 4px 5px 0; }
.tmn-offer-feedback { margin-top: 10px; padding: 7px 9px; border-radius: 9px; background: #faedf0; }
.tmn-offer-success { color: #226343; background: #eaf5ee; }

.tmn-offer-submit { width: 100%; min-height: 48px; border-radius: 15px; }
.tmn-offer-submit > span { display: inline-flex; align-items: center; gap: 7px; }
.tmn-offer-submit .tmn-inner-icon { width: 16px; height: 16px; }
.tmn-offer-submit:disabled { cursor: default; opacity: .76; }
.tmn-offer-spinner { width: 14px; height: 14px; border: 2px solid #ffffff65; border-top-color: #fff; border-radius: 50%; }
.tmn-offer-note { margin-top: 9px; color: #605b66; font-size: .73rem; }
.tmn-offer-note a { color: #286544; text-decoration: underline; text-underline-offset: 2px; }
.tmn-offer-privacy { color: #605b66; font-size: .7rem; line-height: 1.45; }

@media (max-width: 600px) {
    .tmn-offer-field :is(input, textarea) { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .tmn-service-action, .tmn-offer-submit, .tmn-offer-field { transition: translate .22s ease, filter .22s ease, border-color .22s ease, box-shadow .22s ease; }
    @media (hover: hover) { .tmn-service-action:hover { translate: 0 -2px; } }
    .tmn-service-action:active { translate: 0 1px; }
    .tmn-offer-dialog:modal { animation: tmn-offer-in .28s cubic-bezier(.2,.7,.3,1) both; }
    .tmn-offer-dialog:modal::backdrop { animation: tmn-offer-fade .28s ease both; }
    .tmn-offer-dialog[data-tmn-closing] { animation: tmn-offer-out .25s cubic-bezier(.4,0,.6,1) both; }
    .tmn-offer-dialog[data-tmn-closing]::backdrop { animation: tmn-offer-fade .25s ease reverse both; }
    .tmn-offer-spinner { animation: tmn-offer-spin .7s linear infinite; }
}

@keyframes tmn-offer-in { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tmn-offer-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(9px) scale(.97); } }
@keyframes tmn-offer-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmn-offer-spin { to { rotate: 360deg; } }
