/*
    The public page's finishing touches (frontend/layouts/header): every colour comes from the page's own theme
    (--rt-* set on .app by frontend/index), so each template keeps its look.
*/

.app_content .app_body .app_bar {
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease, top .3s ease, inset .3s ease,
        border-radius .3s ease, backdrop-filter .3s ease;
}

.app_content .app_body .app_bar.is_scrolled {
    top: max(10px, env(safe-area-inset-top));
    inset-inline: 10px;
    width: auto;
    padding: .4rem .45rem;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)), color-mix(in srgb, var(--rt-single-color, #ffffff) 90%, transparent);
    box-shadow: 0 14px 34px -16px rgba(15, 23, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
    backdrop-filter: blur(22px) saturate(1.7);
    -webkit-backdrop-filter: blur(22px) saturate(1.7);
}

.app_content .app_body .app_bar.is_scrolled a {
    background: transparent;
    border-color: transparent;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* the buttons' names: folded beside the icon, out for a moment on the first visit and under a pointer
   (frontend/home/app_bar, frontend/scripts/touches › bar names); never on the glass strip */
.app_bar_label {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .45s cubic-bezier(.16, 1, .3, 1), margin .45s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}

.app_content .app_body .app_bar a.just_icon {
    transition: padding .45s cubic-bezier(.16, 1, .3, 1), border-radius .45s cubic-bezier(.16, 1, .3, 1), background-color .2s ease;
}

.app_content .app_body .app_bar a.is_named {
    padding-inline: .7rem .85rem;
    border-radius: 30px;
}

.app_bar a.is_named .app_bar_label {
    max-width: 10rem;
    margin-inline-start: .4rem;
    opacity: 1;
}

@media (hover: hover) {
    .app_content .app_body .app_bar:not(.is_scrolled) a.just_icon:hover {
        padding-inline: .7rem .85rem;
        border-radius: 30px;
    }

    .app_bar:not(.is_scrolled) a:hover .app_bar_label {
        max-width: 10rem;
        margin-inline-start: .4rem;
        opacity: 1;
    }
}

.app_bar.is_scrolled .app_bar_label {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .app_bar_label,
    .app_content .app_body .app_bar a.just_icon {
        transition: none;
    }
}

.app_bar_id {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 58%;
    color: var(--rt-page-text-color, #111827);
    font-size: .9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -30%);
    transition: opacity .3s ease, transform .3s ease;
}

/* the name in the bar only once the page's own name has scrolled away under it (frontend/scripts/touches) */
.app_bar.is_scrolled.is_named .app_bar_id {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.app_bar_id img {
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    object-fit: cover;
}

.app_bar_id span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- the picture: a ring in the page's colour, a soft glow under it ---------- */
.app_title .avatar_content:has(> img) {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(140deg,
            color-mix(in srgb, var(--rt-single-color, #6366f1) 95%, #ffffff),
            color-mix(in srgb, var(--rt-single-color, #6366f1) 35%, #ffffff));
    box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--rt-single-color, #6366f1) 80%, transparent);
}

.app_title .avatar_content>img.link_logo {
    border: 3px solid var(--rt-surface-bg-color, #ffffff);
    background: var(--rt-surface-bg-color, #ffffff);
    object-fit: cover;
}

.app_title .avatar_content.show>img.link_logo {
    animation: rt_avatar_in .7s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes rt_avatar_in {
    from {
        transform: scale(.82);
    }

    to {
        transform: none;
    }
}

/* the name is the page's heading */
.app_title .title_area .title_content h1.title_value {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.app_title .bio_content .bio_value {
    line-height: 1.6;
}

/* ---------- the links: they answer the finger, and lift under the mouse ---------- */
.links .type_content_link {
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.links .type_content_link:active {
    transform: scale(.975);
    filter: brightness(.97);
}

@media (hover: hover) {
    .links .type_content_link:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .5) !important;
    }
}

.links .type_content_link:focus-visible {
    outline: 2px solid var(--rt-page-text-color, #111827) !important;
    outline-offset: 3px;
}

/* ---------- the booking strip: today has its dot ---------- */
.appointment_quick_strip__day.is-today {
    position: relative;
}

.appointment_quick_strip__day.is-today::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rt-single-color, #6366f1);
    transform: translateX(-50%);
}

/* ---------- an empty shop: one quiet line ---------- */
.rt_empty_shop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
}

.rt_empty_shop_icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: .5rem;
    border-radius: 1.1rem;
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .45);
    --aous-aw-icon-size: 1.5rem;
}

.rt_empty_shop_stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 8.5rem;
    height: 8.5rem;
    margin-bottom: .75rem;
}

.rt_empty_shop_stage .rt_empty_shop_icon {
    position: relative;
    margin-bottom: 0;
}

.rt_empty_shop_ring {
    position: absolute;
    inset: 1.4rem;
    border: 1px solid;
    border-radius: 50%;
    opacity: .7;
    animation: rt_empty_shop_pulse 3s ease-in-out infinite;
}

.rt_empty_shop_ring.is_outer {
    inset: 0;
    opacity: .35;
    animation-delay: .6s;
}

@keyframes rt_empty_shop_pulse {
    50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .rt_empty_shop_ring { animation: none; }
}

.rt_empty_shop strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.rt_empty_shop small {
    max-width: 30ch;
    font-size: .85rem;
    opacity: .75;
}

/* ---------- the floating buttons never cover the last lines ---------- */
body:has(.calendar_btn) .app_footer,
body:has(.order_now_btn) .app_footer {
    padding-bottom: 5.5rem;
}

/* ---------- phones: fields at 16px, so focusing one does not zoom the page ---------- */
@media (max-width: 575.98px) {

    .modal input.form-control,
    .modal select.form-control,
    .modal textarea.form-control,
    .offcanvas input.form-control {
        font-size: 16px;
    }
}

/* ---------- people who ask for less motion get none ---------- */
@media (prefers-reduced-motion: reduce) {

    .animate,
    .links .type_content_link,
    .app_title .avatar_content.show>img.link_logo,
    .app_bar_id,
    .rt_pi_price,
    .rt_pi_price::after,
    .rt_booking,
    .rt_pcard_next,
    .app_links_area .products .product_content .product_text .product_price {
        animation: none !important;
        transition: none !important;
    }
}


/* ---------- the shop: a product as a card (its picture, category, name, a few words, price) ---------- */
.app_links_area .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
    overflow: visible;
}

.app_links_area .products .product_content {
    flex: initial;
    overflow: hidden;
    border: 1px solid var(--rt-border-color, rgba(255, 255, 255, .25));
    border-radius: 20px;
    background: var(--rt-surface-bg-color, rgba(255, 255, 255, .2));
    color: var(--rt-surface-text-color, #111827);
    box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .55);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}

.app_links_area .products .product_content:active {
    transform: scale(.98);
}

@media (hover: hover) {
    .app_links_area .products .product_content:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 40px -24px rgba(15, 23, 42, .6);
    }
}

.app_links_area .products .product_content .product_img {
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rt-single-color, #6366f1) 22%, #ffffff), #ffffff);
}

.app_links_area .products .product_content .product_img img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

.app_links_area .products .product_content .product_text {
    align-items: stretch;
    gap: 4px;
    padding: .65rem .75rem .8rem;
    text-align: start;
}

.rt_pcard_cat {
    max-width: 100%;
    overflow: hidden;
    color: var(--rt-surface-text-color, #111827);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .04em;
    opacity: .6;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* the name and the price face each other on one line */
.rt_pcard_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-width: 0;
}

.app_links_area .products .product_content .product_text .product_title {
    display: block;
    flex: 1;
    min-width: 0;
    height: auto;
    overflow: hidden;
    color: inherit;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the price: a small pill in the page's segment colours, sliding in, a light passing over it on hover */
.app_links_area .products .product_content .product_text .product_price {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    padding: .22rem .55rem;
    border: 0;
    border-radius: 999px;
    background: var(--rt-segment-active-bg, #111827);
    color: var(--rt-segment-active-text, #ffffff);
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    animation: rt_price_in .6s cubic-bezier(.2, .9, .3, 1.2) .25s both;
}

.app_links_area .products .product_content .product_text .product_price::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
}

.app_links_area .products .product_content:hover .product_text .product_price::after {
    transform: translateX(120%);
    transition: transform .8s ease;
}

@keyframes rt_price_in {
    from {
        opacity: 0;
        transform: scale(.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rt_pcard_desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: .72rem;
    line-height: 1.45;
    opacity: .65;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* not available: a quiet badge on the picture */
.rt_pcard_badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #ffffff;
    font-size: .66rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.app_links_area .products .product_content:hover .product_img img {
    transform: scale(1.05);
}

/* the shop's tools: categories as small pills sliding sideways, then the search and a round filter */
.app_links_area .categories {
    gap: .4rem;
    margin-bottom: .6rem;
    padding: 2px 2px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app_links_area .categories::-webkit-scrollbar {
    display: none;
}

.app_links_area .categories a {
    flex-shrink: 0;
    width: auto;
    padding: .45rem .95rem;
    border: 1px solid var(--rt-border-color, rgba(255, 255, 255, .3)) !important;
    border-radius: 999px;
    background: var(--rt-surface-bg-color, rgba(255, 255, 255, .15));
    font-size: .8rem;
    font-weight: 600;
    opacity: .75;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.app_links_area .categories a:active {
    transform: scale(.96);
}

.app_links_area .categories a.active {
    border-color: transparent !important;
    background: var(--rt-segment-active-bg, #111827);
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .6);
    color: var(--rt-segment-active-text, #ffffff) !important;
    opacity: 1;
}

.app_links_area .tools_product_area {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}

.app_links_area .tools_product_area input {
    padding-block: .65rem;
    font-size: .9rem;
}

.app_links_area .tools_product_area .custom_filter {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--rt-border-color, rgba(255, 255, 255, .3));
    border-radius: 50%;
    background: var(--rt-surface-bg-color, rgba(255, 255, 255, .15));
    color: var(--rt-surface-text-color, #111827) !important;
    --aous-aw-icon-size: 1.15rem;
}

.app_links_area .tools_product_area .custom_filter svg {
    --aous-aw-icon-size: 1.15rem;
}

/* ---------- a product opened: a narrow card, its pictures on top, the bar transparent over them ---------- */
#get_product_info .modal-dialog.rt_pi_dialog {
    width: min(100% - 2rem, 500px);
    max-width: 500px;
}

#get_product_info .pi_modal {
    position: relative;
    overflow: hidden;
    border-radius: 28px !important;
    background: #ffffff;
}

/* close: a glass circle over the picture, still under the finger (no jump) */
.rt_pi_close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .45) !important;
    color: #0f172a;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color .2s ease;
    --aous-aw-icon-size: 1.1rem;
}

.rt_pi_close:hover {
    background: rgba(255, 255, 255, .92);
}

.rt_pi_close:focus-visible {
    outline: 2px solid #0f172a !important;
    outline-offset: 2px;
}

/* the sheet's handle: phones only, over the picture */
.rt_pi_handle {
    display: none;
}

/* the pictures: each whole, on a soft blur of itself */
#get_product_info .rt_pg {
    display: block;
}

.rt_pg_stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

#get_product_info .rt_pg_slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

#get_product_info .rt_pg_slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: none;
}

#get_product_info .rt_pg_slide::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: var(--pg-bg) center / cover no-repeat;
    filter: blur(28px) saturate(1.3);
    opacity: .55;
}

.rt_pg_img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 6%;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .18));
}

.rt_pg_nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .45) !important;
    color: #0f172a;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity .2s ease;
    --aous-aw-icon-size: 1rem;
}

.rt_pg_prev {
    inset-inline-start: 12px;
}

.rt_pg_next {
    inset-inline-end: 12px;
}

html[dir="rtl"] .rt_pg_nav .icon {
    transform: scaleX(-1);
}

@media (hover: hover) {
    .rt_pg_nav {
        opacity: 0;
    }

    .rt_pg_stage:hover .rt_pg_nav {
        opacity: 1;
    }
}

/* the small pictures, over the bottom of the big one */
.rt_pg_thumbs {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 5px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    background: rgba(255, 255, 255, .45);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.rt_pg_thumb {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #ffffff;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.rt_pg_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt_pg_thumb.is-active {
    border-color: #ffffff;
    box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .5);
    opacity: 1;
    transform: scale(1.06);
}

.rt_pi {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.1rem 1.35rem 1.4rem;
    color: #0f172a;
    text-align: start;
}

.rt_pi_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.rt_pi_cat {
    padding: .25rem .7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rt-single-color, #6366f1) 14%, #ffffff);
    color: color-mix(in srgb, var(--rt-single-color, #6366f1) 70%, #0f172a);
    font-size: .75rem;
    font-weight: 600;
}

.rt_pi_state {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #64748b;
    font-size: .75rem;
    font-weight: 500;
}

.rt_pi_state i {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #94a3b8;
}

.rt_pi_state.is_on i {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.rt_pi_state.is_off i {
    background: #dc2626;
}

#get_product_info .rt_pi_title {
    display: block;
    margin: .2rem 0 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* the name and its price facing each other: the price a pill in the page's segment colours */
.rt_pi_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.rt_pi_head .rt_pi_title {
    flex: 1;
    min-width: 0;
}

.rt_pi_price {
    position: relative;
    flex-shrink: 0;
    margin-top: .15rem;
    overflow: hidden;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: var(--rt-segment-active-bg, #111827);
    box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .6);
    color: var(--rt-segment-active-text, #ffffff);
    font-size: .95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    animation: rt_price_in .6s cubic-bezier(.2, .9, .3, 1.2) .2s both;
}

.rt_pi_price::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    animation: rt_price_shine 1.1s ease .8s both;
}

@keyframes rt_price_shine {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(120%);
    }
}

.rt_pi_desc {
    margin: .25rem 0 0;
    color: #475569;
    font-size: .92rem;
    line-height: 1.7;
    white-space: pre-line;
}

.rt_pi_desc a {
    color: var(--rt-single-color, #6366f1) !important;
    word-break: break-all;
}

.rt_pi_cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .6rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: var(--rt-segment-active-bg, #111827);
    box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .6) !important;
    color: var(--rt-segment-active-text, #ffffff) !important;
    font-size: .98rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
    --aous-aw-icon-size: 1.1rem;
}

.rt_pi_cta:hover {
    filter: brightness(1.08);
}

.rt_pi_cta:active {
    transform: scale(.98);
}

html[dir="rtl"] .rt_pi_cta .icon {
    transform: scaleX(-1);
}

.rt_pi_share {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: .8rem;
    padding-top: 1rem;
    border-top: 1px solid #eef0f4;
}

.rt_pi_share_label {
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
}

.rt_pi_share_row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rt_pi_share_btn {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--pi-c);
    color: #ffffff !important;
    box-shadow: 0 8px 16px -10px var(--pi-c) !important;
    --aous-aw-icon-size: 1.1rem;
}

.rt_pi_copy {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-inline-start: auto;
    padding: .55rem .9rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    --aous-aw-icon-size: 1rem;
}

.rt_pi_copy.is_done {
    border-color: rgba(22, 163, 74, .35);
    background: rgba(22, 163, 74, .08);
    color: #15803d;
}

/* phones: a sheet from the bottom, its handle over the picture */
@media (max-width: 575.98px) {
    #get_product_info .modal-dialog.rt_pi_dialog {
        width: 100%;
        max-width: 100%;
    }

    #get_product_info .pi_modal {
        border-radius: 28px 28px 0 0 !important;
    }

    .rt_pi_handle {
        position: absolute;
        top: 8px;
        left: 50%;
        z-index: 6;
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .85);
        box-shadow: 0 1px 4px rgba(15, 23, 42, .25);
        transform: translateX(-50%);
    }
}


/* ---------- phones: every window is a sheet from the bottom, dragged down to close (frontend/scripts/touches) ---------- */
.rt_sheet_handle {
    display: none;
}

@media (max-width: 575.98px) {
    body.rt_public .modal .modal-dialog {
        position: fixed;
        inset: auto 0 0 0;
        display: flex;
        align-items: flex-end;
        width: 100%;
        max-width: none;
        min-height: 0;
        max-height: calc(100dvh - 24px);
        margin: 0;
        transform: translateY(100%);
        transition: transform .38s cubic-bezier(.2, .9, .3, 1);
    }

    body.rt_public .modal.show .modal-dialog {
        transform: none;
    }

    body.rt_public .modal .modal-dialog.is_dragging {
        transition: none;
    }

    body.rt_public .modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 26px 26px 0 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        overscroll-behavior: contain;
    }

    .rt_sheet_handle {
        position: sticky;
        top: 0;
        z-index: 7;
        display: flex;
        justify-content: center;
        height: 0;
        overflow: visible;
    }

    .rt_sheet_handle::before {
        content: "";
        width: 44px;
        height: 5px;
        margin-top: 15px;
        border-radius: 999px;
        background: rgba(148, 163, 184, .6);
    }
}


/* ---------- desktop: the page's own picture, very large and soft, behind the column ---------- */
.rt_backdrop {
    display: none;
}

@media (min-width: 992px) {
    .rt_backdrop {
        position: fixed;
        inset: -10%;
        z-index: 0;
        display: block;
        background: var(--rt-backdrop) center / cover no-repeat;
        filter: blur(80px) saturate(1.6);
        opacity: .45;
        pointer-events: none;
        animation: rt_backdrop_drift 30s ease-in-out infinite alternate;
    }

    .app_content {
        position: relative;
        z-index: 1;
    }
}

@keyframes rt_backdrop_drift {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.08) translate(-2%, 1.5%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt_backdrop {
        animation: none;
    }
}


/* ---------- a product card's pictures change by a crossfade (frontend/scripts/get_products) ---------- */
.rt_pcard_next {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}

.rt_pcard_next.is_in {
    opacity: 1;
    transform: none;
}

/* ---------- "Created with RahaTap" stays at the bottom of the screen, however short the page ---------- */
.app_content {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.app_content>.app_footer {
    margin-top: auto;
}

/* ---------- the booking strip: glass day tiles in the page's colours, the edges fading out ---------- */
.appointment_quick_strip__days {
    gap: .55rem;
    padding: .35rem .15rem .5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.appointment_quick_strip__day {
    flex: 0 0 64px;
    gap: .15rem;
    min-height: 82px;
    border: 1px solid color-mix(in srgb, var(--rt-inline-calendar-text, var(--rt-page-text-color, #fff)) 14%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--rt-surface-bg-color, rgba(255, 255, 255, .2)) 70%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.appointment_quick_strip__day.is-enabled {
    border-color: color-mix(in srgb, var(--rt-inline-calendar-text, var(--rt-page-text-color, #fff)) 22%, transparent);
    cursor: pointer;
}

.appointment_quick_strip__day.is-enabled:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px -14px rgba(15, 23, 42, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.appointment_quick_strip__day.is-enabled:active {
    transform: scale(.96);
}

.appointment_quick_strip__day.is-disabled {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    opacity: .38;
}

.appointment_quick_strip__weekday,
.appointment_quick_strip__month {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .72;
}

.appointment_quick_strip__number {
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ---------- booking on the page: the profile steps aside, the calendar under the name, in the theme ---------- */
body.rt_booking_mode .app_links_area,
body.rt_booking_mode .appointment_inline_calendar,
body.rt_booking_mode .appointment_quick_strip,
body.rt_booking_mode .custom_event_info_card,
body.rt_booking_mode .calendar_btn {
    display: none !important;
}

.rt_booking {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: min(100% - 1rem, 440px);
    margin: 1.25rem auto 0;
    animation: rt_booking_in .45s cubic-bezier(.2, .9, .3, 1) both;
}

.rt_booking[hidden] {
    display: none;
}

@keyframes rt_booking_in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* back to the profile: in the booking card's header, opposite its heading; only while booking on the page */
.rt_booking_back {
    display: none;
}

.rt_booking #appointment_calendar .modal-header {
    align-items: flex-start;
    gap: .75rem;
}

.rt_booking #appointment_calendar .modal-header h3 {
    font-size: 1.1rem;
}

.rt_booking #appointment_calendar .modal-header p {
    font-size: .8rem;
}

.rt_booking .rt_booking_back {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .35rem;
    margin-inline-start: auto;
    padding: .45rem .8rem;
    border: 1px solid color-mix(in srgb, var(--rt-surface-text-color, #111827) 14%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--rt-surface-bg-color, #ffffff) 60%, transparent);
    color: inherit;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
    --aous-aw-icon-size: .95rem;
}

.rt_booking .rt_booking_back:hover {
    background: color-mix(in srgb, var(--rt-surface-bg-color, #ffffff) 85%, transparent);
}

.rt_booking .rt_booking_back:active {
    transform: scale(.96);
}

.rt_booking .rt_booking_back .rt_bb_short {
    display: none;
}

@media (max-width: 575.98px) {
    .rt_booking .rt_booking_back .rt_bb_long {
        display: none;
    }

    .rt_booking .rt_booking_back .rt_bb_short {
        display: inline;
    }
}

html[dir="rtl"] .rt_booking_back .icon {
    transform: scaleX(-1);
}

/* the booking window, now a card of the page */
.rt_booking #appointment_calendar.rt_booking_panel {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.rt_booking #appointment_calendar .modal-dialog {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
}

.rt_booking #appointment_calendar .calendly_modal {
    min-width: 0;
    border: 1px solid var(--rt-border-color, rgba(255, 255, 255, .3));
    border-radius: 26px;
    background: color-mix(in srgb, var(--rt-surface-bg-color, rgba(255, 255, 255, .2)) 85%, transparent);
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .6);
    color: var(--rt-surface-text-color, #111827);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.rt_booking #appointment_calendar .modal-header,
.rt_booking #appointment_calendar .calendly_body {
    background: transparent;
    border-color: color-mix(in srgb, var(--rt-surface-text-color, #111827) 10%, transparent);
}

.rt_booking #appointment_calendar .modal-header .btn-close {
    display: none;
}

.rt_booking #appointment_calendar .modal-header h3,
.rt_booking #appointment_calendar .wizard_steps .wizard_step .available_times_area h4,
.rt_booking #appointment_calendar .lead_success_title {
    color: inherit;
}

.rt_booking #appointment_calendar .modal-header p,
.rt_booking #appointment_calendar .lead_success_text {
    color: inherit;
    opacity: .7;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-day {
    color: inherit;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-day:not(.enabled) {
    opacity: .35;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-day.enabled:hover {
    background: color-mix(in srgb, var(--rt-surface-text-color, #111827) 8%, transparent);
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .available_times_area .slots_grid .slot_item:not(.active) {
    border-color: color-mix(in srgb, var(--rt-surface-text-color, #111827) 14%, transparent);
    background: color-mix(in srgb, var(--rt-surface-bg-color, #ffffff) 60%, transparent);
    color: inherit;
}

.rt_booking .rt_sheet_handle {
    display: none;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .calendly-calendar {
    border: 1px solid color-mix(in srgb, var(--rt-surface-text-color, #111827) 10%, transparent);
    background: color-mix(in srgb, var(--rt-surface-bg-color, #ffffff) 55%, transparent);
    box-shadow: none;
    color: inherit;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-weekdays {
    color: inherit;
    opacity: .6;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-header .month-title {
    color: inherit;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .calendly-calendar .calendar-header .nav-btn-calendar {
    border-color: color-mix(in srgb, var(--rt-surface-text-color, #111827) 15%, transparent);
    background: transparent;
    color: inherit;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step button.prev_btn {
    border: 1px solid color-mix(in srgb, var(--rt-surface-text-color, #111827) 15%, transparent);
    background: transparent;
    color: inherit;
}


/* ---------- booking on the page: its form (the day chosen, the fields, the buttons) ---------- */
/* the day and time chosen: a card in the page's accent, its icon beside */
.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .preview_date_content.rt_bk_when {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--rt-single-color, #6366f1) 35%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--rt-single-color, #6366f1) 16%, rgba(255, 255, 255, .55));
    color: #0f172a;
}

.rt_bk_when_icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--rt-single-color, #6366f1);
    box-shadow: 0 10px 20px -12px var(--rt-single-color, #6366f1);
    color: var(--rt-single-color-text, #ffffff);
    --aous-aw-icon-size: 1.3rem;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_when .preview_date {
    margin: 0 0 .15rem;
    color: #0f172a;
    font-size: .98rem;
    font-weight: 700;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_when .preview_time {
    display: inline-block;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: #334155;
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* the question above the reason */
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-label {
    margin-bottom: .45rem;
    color: inherit;
    font-size: .84rem;
    font-weight: 600;
}

/* the fields: light, rounded, their label floating inside */
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-floating {
    margin-bottom: .7rem !important;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-control,
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-control {
    min-height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content textarea.form-control {
    min-height: 7rem;
}

.rt_booking #appointment_calendar .form-floating>label {
    color: #64748b;
}

/* focused: white, a clear ring in the page's accent */
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-control:focus,
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-wrapper.focus .ts-control {
    border-color: var(--rt-single-color, #6366f1);
    background: #ffffff;
    /* globale.css clears every field's focus shadow with !important */
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-single-color, #6366f1) 22%, transparent) !important;
    outline: 0;
}

.rt_booking #appointment_calendar .form-floating>.form-control:focus~label,
.rt_booking #appointment_calendar .form-floating>.form-control:not(:placeholder-shown)~label {
    color: color-mix(in srgb, var(--rt-single-color, #6366f1) 75%, #0f172a);
}

.rt_booking #appointment_calendar .form-floating small {
    margin-top: .35rem !important;
    padding-inline: .35rem;
    color: inherit !important;
    font-size: .74rem;
    opacity: .7;
}

/* the reason (Tom Select): the same field, its list a clean card */
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-wrapper {
    margin-bottom: .7rem;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-control {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: .9rem 2.5rem .9rem 1rem !important;
    font-size: .95rem;
}

html[dir="rtl"] .rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-control {
    padding: .9rem 1rem .9rem 2.5rem !important;
}

.rt_booking #appointment_calendar .tom_select .ts-control::after,
.rt_booking #appointment_calendar .ts-wrapper .ts-control::after {
    right: 14px;
}

html[dir="rtl"] .rt_booking #appointment_calendar .ts-wrapper .ts-control::after {
    right: auto;
    left: 14px;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .ts-dropdown {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .4);
}

.rt_booking #appointment_calendar .ts-dropdown .dropdown-input-wrap {
    padding: .5rem;
}

.rt_booking #appointment_calendar .ts-dropdown .dropdown-input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.rt_booking #appointment_calendar .ts-dropdown [data-selectable].option {
    margin: 2px 6px;
    padding: .65rem .8rem;
    border-radius: 10px;
    color: #0f172a;
}

.rt_booking #appointment_calendar .ts-dropdown .option.active {
    background: color-mix(in srgb, var(--rt-single-color, #6366f1) 14%, #ffffff);
    color: #0f172a;
}

.rt_booking #appointment_calendar .ts-dropdown .option.selected {
    font-weight: 600;
}

/* the buttons of a step: back (glass, its icon and word) and the next action (filled, the page's accent) */
.rt_booking #appointment_calendar .rt_bk_actions {
    gap: .6rem;
    margin-top: 1.1rem !important;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_actions button {
    min-height: 3.25rem;
    margin: 0;
    padding: .75rem 1.15rem;
    border-radius: 16px;
    font-size: .92rem;
    font-weight: 600;
    --aous-aw-icon-size: 1.05rem;
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_actions button.prev_btn {
    flex-shrink: 0;
    gap: .4rem;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .45);
    color: #0f172a;
    backdrop-filter: blur(10px);
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_actions button.prev_btn:hover {
    background: rgba(255, 255, 255, .7);
}

html[dir="rtl"] .rt_booking #appointment_calendar .rt_bk_actions .icon {
    transform: scaleX(-1);
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_actions .next_btn,
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content #confirm_booking_btn {
    flex: 1;
    width: auto;
    margin: 0;
    border: 0;
    border-radius: 16px;
    background: var(--rt-segment-active-bg, var(--rt-single-color, #0f172a));
    box-shadow: 0 14px 26px -16px rgba(15, 23, 42, .7);
    color: var(--rt-segment-active-text, var(--rt-single-color-text, #ffffff));
}

.rt_booking #appointment_calendar .calendly_body .wizard_steps .wizard_step .rt_bk_actions .next_btn:disabled,
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content #confirm_booking_btn:disabled {
    box-shadow: none;
    opacity: .45;
}


/* ====================================================================
   The page's windows (share, vCard, subscribe, leads, attendance, file, filter):
   one look — a quiet header with its icon, a round close, soft fields and the page's accent on the action
   ==================================================================== */
body.rt_public .modal .modal-content.rtm_modal,
#share_link .sl_modal,
#vcard .fvc_modal {
    border: 0;
    background: #ffffff;
    box-shadow: 0 30px 80px -24px rgba(15, 23, 42, .45);
    color: #0f172a;
    overflow: hidden;
}

/* header: icon, title and a line under it, the close at the end */
.rtm_head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 2rem 1.15rem .9rem;
}

.rtm_head_icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 9%, #ffffff);
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 85%, #0f172a);
    --aous-aw-icon-size: 1.3rem;
}

.rtm_head_icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.rtm_head_text {
    flex: 1;
    min-width: 0;
}

.rtm_title {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.rtm_sub {
    margin: .15rem 0 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5;
}

/* the close: a round soft button, the same in every window */
.rtm_close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    --aous-aw-icon-size: 1.1rem;
}

.rtm_close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.rtm_close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rtm_close:active {
    transform: scale(.92);
}

.rtm_close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 35%, transparent) !important;
    outline-offset: 2px;
}

.rtm_close_float {
    position: absolute;
    top: .9rem;
    inset-inline-end: .9rem;
    z-index: 8;
}

/* body of a window whose header is its avatar */
.rtm_body {
    padding: 2rem 1.35rem 1.4rem;
}

.rtm_hero {
    margin-bottom: 1.35rem;
    text-align: center;
}

.rtm_hero .avatar_content {
    margin-bottom: .85rem;
    padding: 3px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 14%, #ffffff);
}

.rtm_hero .avatar_content img,
.rtm_hero .avatar_content span {
    width: 4.25rem;
    height: 4.25rem;
    border: 3px solid #ffffff;
}

.rtm_hero .rtm_title {
    font-size: 1.2rem;
}

.rtm_hero .tick {
    width: 1.1rem;
    vertical-align: -2px;
}

.rtm_hero .rtm_sub {
    max-width: 22rem;
    margin: .35rem auto 0;
    font-size: .88rem;
}

.rtm_alert {
    padding: .8rem 1rem;
    border-radius: 14px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
}

/* fields: soft grey, rounded, white with a ring in the page's accent when focused */
.rtm_modal .form-label {
    margin-bottom: .4rem;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
}

.rtm_modal .form-control,
.rtm_modal .form-select {
    min-height: 3.25rem;
    padding: .75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rtm_modal .form-select {
    padding-inline-end: 2.5rem;
}

html[dir="rtl"] .rtm_modal .form-select {
    background-position: left 1rem center;
}

.rtm_modal textarea.form-control {
    min-height: 6.5rem;
    resize: vertical;
}

.rtm_modal .form-control::placeholder {
    color: #94a3b8;
}

.rtm_modal .form-control:focus,
.rtm_modal .form-select:focus {
    border-color: var(--rt-segment-active-bg, #0f172a);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 16%, transparent) !important;
}

.rtm_icon_field {
    margin-bottom: .85rem;
}

.rtm_icon_field .input-icon-addon {
    color: #94a3b8;
}

.rtm_icon_field .form-control {
    padding-inline-start: 2.75rem;
}

.rtm_hint {
    display: block;
    margin-top: .35rem;
    color: #64748b;
    font-size: .78rem;
}

/* the consent line: a soft row, its box in the page's accent */
.rtm_modal .form-check.rtm_check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .35rem 0 0;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: .8rem;
    line-height: 1.55;
    cursor: pointer;
}

.rtm_modal .rtm_check .form-check-input {
    float: none;
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: .1rem 0 0;
    border-color: #cbd5e1;
    border-radius: 6px;
}

.rtm_modal .rtm_check .form-check-input:checked {
    border-color: var(--rt-segment-active-bg, #0f172a);
    background-color: var(--rt-segment-active-bg, #0f172a);
}

.rtm_modal .rtm_check .form-check-input:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 16%, transparent) !important;
}

.rtm_modal .rtm_check a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* buttons: the action filled with the page's accent, a soft one beside it, a quiet one under */
.rtm_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.25rem;
    padding: .75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease, background-color .2s ease;
    --aous-aw-icon-size: 1.15rem;
}

.rtm_btn svg {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 2;
}

.rtm_btn:active {
    transform: scale(.98);
}

.rtm_btn:disabled {
    cursor: default;
    opacity: .55;
}

.rtm_btn_primary {
    background: var(--rt-segment-active-bg, #0f172a);
    box-shadow: 0 14px 26px -16px rgba(15, 23, 42, .7);
    color: var(--rt-segment-active-text, #ffffff);
}

.rtm_btn_primary:hover {
    filter: brightness(.94);
}

.rtm_btn_soft {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

.rtm_btn_soft:hover {
    background: #f1f5f9;
}

.rtm_btn_ghost {
    min-height: 2.75rem;
    background: transparent;
    color: #64748b;
}

.rtm_btn_ghost:hover {
    color: #0f172a;
}

.rtm_btn_block {
    width: 100%;
    margin-top: 1rem;
}

.rtm_btn_ghost.rtm_btn_block {
    margin-top: .35rem;
}

/* ---------- the event's RSVP (components/event_attendance) ---------- */
@media (min-width: 576px) {
    #event_attendance_modal .modal-dialog.rsvp_dialog {
        max-width: 440px;
    }
}

.rsvp .rtm_head {
    padding-bottom: .4rem;
}

.rsvp_back[hidden],
.rsvp_step[hidden],
.rsvp [hidden] {
    display: none !important;
}

.rsvp .rtm_head_icon.is_done {
    background: #dcfce7;
    color: #15803d;
}

.rsvp_body {
    padding: .6rem 1.15rem 1.35rem;
}

/* the invitation: the names large and quiet, then when and where */
.rsvp_invite {
    margin-bottom: 1.15rem;
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 6%, #ffffff);
    text-align: center;
}

.rsvp_names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .15rem .55rem;
    margin: 0 0 .7rem;
    color: #0f172a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.2;
}

.rsvp_names i {
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 70%, #94a3b8);
    font-size: 1.15rem;
    font-style: italic;
}

.rsvp_facts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
}

.rsvp_fact {
    display: inline-flex;
    align-items: flex-start;
    gap: .45rem;
    color: #334155;
    font-size: .85rem;
    line-height: 1.45;
    text-align: start;
    --aous-aw-icon-size: 1rem;
}

.rsvp_fact svg {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: .12rem;
    color: #64748b;
}

.rsvp_fact em,
.rsvp_fact a {
    display: inline-block;
    margin-inline-start: .35rem;
    font-style: normal;
    font-weight: 600;
}

.rsvp_fact em {
    padding: .05rem .5rem;
    border-radius: 999px;
    background: #ffffff;
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 85%, #0f172a);
    font-size: .74rem;
}

.rsvp_fact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* the reply: two large choices */
.rsvp_question {
    margin: 0 0 .75rem;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

.rsvp_choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.rsvp_choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: 1.15rem .75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}

.rsvp_choice:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.rsvp_choice:active {
    transform: scale(.98);
}

.rsvp_choice.is_yes {
    border-color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 35%, #e2e8f0);
}

.rsvp_choice_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: .2rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    --aous-aw-icon-size: 1.2rem;
}

.rsvp_choice_icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.rsvp_choice.is_yes .rsvp_choice_icon {
    background: var(--rt-segment-active-bg, #0f172a);
    color: var(--rt-segment-active-text, #ffffff);
}

.rsvp_choice strong {
    font-size: .92rem;
    font-weight: 700;
}

.rsvp_choice small {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.4;
}

/* the details */
.rsvp_chosen {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .8rem;
    font-weight: 600;
}

.rsvp_chosen.is_yes {
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 10%, #ffffff);
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 85%, #0f172a);
}

.rsvp_field {
    display: block;
    margin-bottom: .85rem;
}

.rsvp_input {
    position: relative;
    display: block;
}

.rsvp_input svg {
    position: absolute;
    top: 50%;
    inset-inline-start: .95rem;
    width: 1.05rem;
    height: 1.05rem;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.rsvp_input .form-control {
    padding-inline-start: 2.7rem;
}

.rsvp_stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.rsvp_stepper button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    color: #0f172a;
    cursor: pointer;
    --aous-aw-icon-size: 1.1rem;
}

.rsvp_stepper button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.rsvp_stepper button:disabled {
    cursor: default;
    opacity: .4;
}

.rsvp_stepper output {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}

.rsvp .rtm_alert {
    margin: .25rem 0 0;
}

/* a full event, or thanked */
.rsvp_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem 0 .25rem;
    text-align: center;
}

.rsvp_state_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: .8rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    --aous-aw-icon-size: 1.5rem;
}

.rsvp_state_icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.rsvp_state_icon.is_muted {
    background: #f1f5f9;
    color: #64748b;
}

.rsvp_state strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.rsvp_state p {
    max-width: 20rem;
    margin: .35rem 0 0;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.55;
}

/* ---------- vCard ---------- */
/* its width on larger screens; on a phone it is a full-width sheet */
@media (min-width: 576px) {
    #vcard .modal-dialog.fvc_dialog {
        max-width: 460px;
    }
}

#vcard .fvc_canvas_wrap {
    padding: 0 1.15rem;
}

#vcard .fvc_card_canvas {
    position: relative;
    width: 100%;
    min-height: 150px;
    aspect-ratio: 9 / 5;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 22px 40px -22px rgba(15, 23, 42, .65), 0 2px 6px rgba(15, 23, 42, .08);
}

/* always the one card (no layout switching) */
#vcard .fvc_card_canvas .vcp_card {
    display: flex !important;
    flex-direction: column;
}

/* scanned from another phone, it saves the contact there */
#vcard .fvc_qr_section {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1rem 1.15rem 0;
    padding: .7rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

#vcard .fvc_qr_canvas {
    flex: none;
    padding: 6px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

#vcard .fvc_qr_canvas canvas,
#vcard .fvc_qr_canvas img {
    display: block !important;
    width: 92px;
    height: 92px;
}

#vcard .fvc_qr_text {
    min-width: 0;
}

#vcard .fvc_qr_label {
    display: block;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 700;
}

#vcard .fvc_qr_name {
    margin: .25rem 0 0;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.5;
}

#vcard .fvc_footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    padding: 1rem 1.15rem 1.25rem;
}

/* ---------- share ---------- */
/* its width on larger screens; on a phone it is a full-width sheet */
@media (min-width: 576px) {
    #share_link .modal-dialog {
        max-width: 400px;
    }
}

#share_link .sl_qr_area {
    display: flex;
    justify-content: center;
    margin: 0 1.15rem;
    padding: 1.2rem;
    border-radius: 22px;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 4%, #f8fafc);
}

#share_link .qr_content_link {
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .45);
}

#share_link .qr_content_link img,
#share_link .qr_content_link canvas {
    display: block;
    width: 140px;
    height: 140px;
}

#share_link .sl_actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
    padding: 1.1rem .9rem .4rem;
}

#share_link .sl_action_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .25rem;
    color: #0f172a;
    text-decoration: none;
}

#share_link .sl_action_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 18px;
    color: #ffffff;
    transition: transform .2s cubic-bezier(.2, .9, .3, 1.3);
    --aous-aw-icon-size: 1.4rem;
}

#share_link .sl_action_icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

#share_link .sl_action_item:hover .sl_action_icon {
    transform: translateY(-2px) scale(1.05);
}

#share_link .sl_action_item:active .sl_action_icon {
    transform: scale(.94);
}

#share_link .sl_action_label {
    max-width: 100%;
    overflow: hidden;
    color: #475569;
    font-size: .72rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#share_link .sl_fb {
    background: #1877f2;
}

#share_link .sl_wa {
    background: #25d366;
}

#share_link .sl_mail {
    background: #64748b;
}

#share_link .sl_more {
    background: var(--rt-segment-active-bg, #0f172a);
    color: var(--rt-segment-active-text, #ffffff);
}

/* the link and its copy button, one field */
#share_link .sl_copy_bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .8rem 1.15rem 1.25rem;
    padding: .35rem;
    padding-inline-start: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

#share_link .sl_copy_url {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    color: #475569;
    font-size: .82rem;
    --aous-aw-icon-size: 1rem;
}

#share_link .sl_copy_url svg {
    flex: none;
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
}

#share_link .sl_copy_url span {
    overflow: hidden;
    direction: ltr;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#share_link .sl_copy_btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .35rem;
    min-height: 2.6rem;
    padding: 0 .95rem;
    border: 0;
    border-radius: 12px;
    background: var(--rt-segment-active-bg, #0f172a);
    color: var(--rt-segment-active-text, #ffffff);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
    --aous-aw-icon-size: 1rem;
}

#share_link .sl_copy_btn svg {
    width: 1rem;
    height: 1rem;
}

#share_link .sl_copy_btn:active {
    transform: scale(.96);
}

#share_link .sl_copy_btn.is_copied {
    background: #16a34a;
    color: #ffffff;
}

/* ---------- the browser's autofill: no blue, the field keeps its own colour ---------- */
body.rt_public input:-webkit-autofill,
body.rt_public textarea:-webkit-autofill,
body.rt_public select:-webkit-autofill {
    -webkit-text-fill-color: #0f172a;
    caret-color: #0f172a;
    box-shadow: inset 0 0 0 1000px #f8fafc !important;
    transition: background-color 600000s 0s, color 600000s 0s;
}

body.rt_public input:-webkit-autofill:focus,
body.rt_public textarea:-webkit-autofill:focus {
    box-shadow: inset 0 0 0 1000px #ffffff, 0 0 0 4px color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 16%, transparent) !important;
}

/* the booking fields are white glass: autofilled they stay white */
.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-control:-webkit-autofill {
    box-shadow: inset 0 0 0 1000px #ffffff !important;
}

.rt_booking #appointment_calendar .wizard_steps .wizard_step .info_form_content .form-control:-webkit-autofill:focus {
    box-shadow: inset 0 0 0 1000px #ffffff, 0 0 0 4px color-mix(in srgb, var(--rt-single-color, #6366f1) 22%, transparent) !important;
}

@media (max-width: 575.98px) {
    #vcard .fvc_footer .rtm_btn {
        padding-inline: .7rem;
        font-size: .86rem;
    }
}


/* ---------- a window that is a form (leads): fixed header, the fields scroll, consent and send fixed at the foot ---------- */
/* its width on larger screens; on a phone it is a full-width sheet */
@media (min-width: 576px) {
    #user_leads .modal-dialog.rtm_form_dialog {
        max-width: 480px;
    }
}

body.rt_public .modal .modal-content.rtm_form_modal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rtm_head_line {
    flex: none;
    border-bottom: 1px solid #f1f5f9;
}

.rtm_head_avatar {
    display: inline-flex;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 2px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 16%, #ffffff);
}

.rtm_head_avatar img,
.rtm_head_avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--rt-segment-active-bg, #0f172a);
    color: var(--rt-segment-active-text, #ffffff);
    font-size: .9rem;
    font-weight: 700;
    object-fit: cover;
    text-transform: uppercase;
}

.rtm_head .rtm_title .tick {
    width: 1rem;
    vertical-align: -2px;
}

.rtm_form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.rtm_form .rtm_body.rtm_fields {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.1rem 1.15rem .4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rtm_foot {
    flex: none;
    padding: .8rem 1.15rem 1.1rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.rtm_foot .rtm_btn_block {
    margin-top: .75rem;
}

/* each field: its label floating inside, with the icon of its kind */
.rtm_field {
    margin-bottom: .75rem;
}

.rtm_field .form-floating>.form-control,
.rtm_field .form-floating>.form-select {
    height: 3.6rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.rtm_field .form-floating>.form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

html[dir="rtl"] .rtm_field .form-floating>.form-select {
    padding-left: 2.5rem;
}

html:not([dir="rtl"]) .rtm_field .form-floating>.form-select {
    padding-right: 2.5rem;
}

.rtm_field .form-floating>textarea.form-control {
    height: 7rem;
}

.rtm_field .form-floating>label {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-right: 1rem;
    padding-left: 1rem;
    color: #64748b;
    font-size: .92rem;
}

.rtm_field .form-floating>label::after {
    background-color: transparent !important;
}

.rtm_field .form-floating>.form-control:focus~label,
.rtm_field .form-floating>.form-select:focus~label {
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 80%, #0f172a);
}

/* the owner's placeholder (an example) shows only once the field is focused, the label holds its place before */
.rtm_field .form-floating>.form-control::placeholder {
    color: transparent;
}

.rtm_field .form-floating>.form-control:focus::placeholder {
    color: #94a3b8;
}

.rtm_field_icon {
    display: inline-flex;
    color: #94a3b8;
    --aous-aw-icon-size: 1rem;
}

.rtm_field_icon svg {
    width: 1rem;
    height: 1rem;
}

.rtm_req {
    color: #ef4444;
    font-weight: 600;
}

.rtm_field .rtm_hint {
    padding-inline: .35rem;
}

@media (max-width: 575.98px) {

    /* as a sheet it is as tall as its fields, not the whole screen */
    body.rt_public .modal .modal-dialog.rtm_form_dialog {
        height: auto;
    }
}


/* ====================================================================
   About (#about_sheet, frontend/components/about_sheet): a sheet to read —
   the page's picture softly behind, its avatar and name, the text, then what to do next
   ==================================================================== */
#about_sheet.about_sheet_canvas {
    height: auto;
    border: 0;
    background: transparent;
    --bs-offcanvas-border-width: 0;
    --bs-offcanvas-height: auto;
}

#about_sheet .about_sheet_panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(540px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px -24px rgba(15, 23, 42, .5);
    color: #0f172a;
    opacity: 0;
    transform: translateY(28px) scale(.97);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .26s ease;
}

#about_sheet.show .about_sheet_panel,
#about_sheet.showing .about_sheet_panel {
    opacity: 1;
    transform: none;
}

#about_sheet .about_sheet_panel.is_dragging {
    transition: none;
}

/* the cover: the page's picture, very soft, fading into the sheet */
#about_sheet .abs_cover {
    position: relative;
    flex: none;
    height: 112px;
    overflow: hidden;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 18%, #ffffff);
}

#about_sheet .abs_cover::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: var(--abs-cover) center / cover no-repeat;
    filter: blur(26px) saturate(1.2);
    opacity: .85;
    transform: scale(1.15);
}

#about_sheet .abs_cover.is_plain::before {
    background: radial-gradient(120% 140% at 20% 0%, color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 45%, #ffffff), transparent 70%);
    filter: none;
}

#about_sheet .abs_cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 5%, #ffffff 80%)
}

#about_sheet .abs_handle {
    display: none;
}

#about_sheet .abs_close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0f172a;
}

#about_sheet .abs_close:hover {
    background: #ffffff;
}

/* what scrolls: the intro and the text */
#about_sheet .abs_scroll {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: -56px;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    z-index: 2;
}

#about_sheet .abs_intro {
    padding: 0 1.5rem 1.1rem;
    text-align: center;
}

#about_sheet .abs_avatar {
    display: inline-flex;
    width: 88px;
    height: 88px;
    padding: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .55);
}

#about_sheet .abs_avatar img,
#about_sheet .abs_avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rt-segment-active-bg, #0f172a);
    color: var(--rt-segment-active-text, #ffffff);
    font-size: 1.6rem;
    font-weight: 700;
    object-fit: cover;
    text-transform: uppercase;
}

/* the about title: a small pill in the page's accent */
#about_sheet .abs_kicker {
    display: table;
    margin: .85rem auto 0;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 9%, #ffffff);
    color: color-mix(in srgb, var(--rt-segment-active-bg, #0f172a) 85%, #0f172a);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

#about_sheet .abs_name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin: .55rem 0 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.25;
}

#about_sheet .abs_tick {
    width: 1.1rem;
    height: 1.1rem;
}

#about_sheet .abs_bio {
    display: -webkit-box;
    max-width: 26rem;
    margin: .4rem auto 0;
    overflow: hidden;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

/* the text: comfortable to read, the first paragraph a little larger */
#about_sheet .abs_text {
    position: relative;
    margin: 0 1.5rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

#about_sheet .abs_text p {
    margin: 0 0 1em;
}

#about_sheet .abs_text p:last-child {
    margin-bottom: 0;
}

#about_sheet .abs_text p:first-child {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 500;
}

/* what to do next */
#about_sheet .abs_actions {
    display: flex;
    flex: none;
    gap: .6rem;
    padding: .85rem 1.25rem 1.1rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

#about_sheet .abs_actions .rtm_btn {
    flex: 1;
    min-width: 0;
}

#about_sheet .abs_actions .rtm_btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#about_sheet .abs_actions .abs_share:not(.is_wide) {
    flex: none;
    width: 3.25rem;
    padding: 0;
}

/* the intro and the text arrive just after the sheet */
#about_sheet .abs_intro,
#about_sheet .abs_text {
    opacity: 0;
    transform: translateY(10px);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

#about_sheet.show .abs_intro,
#about_sheet.showing .abs_intro {
    opacity: 1;
    transform: none;
    transition-delay: .06s;
}

#about_sheet.show .abs_text,
#about_sheet.showing .abs_text {
    opacity: 1;
    transform: none;
    transition-delay: .14s;
}

@media (max-width: 575.98px) {
    #about_sheet .about_sheet_panel {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: 0;
        border-radius: 28px 28px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #about_sheet .abs_handle {
        position: absolute;
        top: 8px;
        left: 50%;
        z-index: 2;
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .75);
        transform: translateX(-50%);
    }

    #about_sheet .abs_intro {
        padding-inline: 1.15rem;
    }

    #about_sheet .abs_text {
        margin-inline: 1.15rem;
        font-size: .98rem;
    }

    #about_sheet .abs_actions {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    #about_sheet .about_sheet_panel,
    #about_sheet .abs_intro,
    #about_sheet .abs_text {
        transition: none;
    }
}
