.ricorsi-ttb-user-area {
    --ttb-ink: var(--e-global-color-text, var(--wp--preset--color--contrast, #00254a));
    --ttb-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, #00254a));
    --ttb-surface: var(--wp--preset--color--base, #fff);
    --ttb-soft: var(--e-global-color-accent, var(--wp--preset--color--tertiary, #e4ecf9));
    --ttb-border: var(--wp--preset--color--tertiary, rgb(0 37 74 / 16%));
    --ttb-radius: var(--global-border-radius, .55rem);
    color: var(--ttb-ink);
}

.ttb-order-plan-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--dc-line);
    color: var(--dc-navy);
    font-weight: 700;
}

.ttb-order-plan-total strong {
    white-space: nowrap;
}

.ttb-order-balance {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--dc-line);
    border-radius: 6px;
    background: #fff;
}

.ttb-order-balance h2 {
    margin: 0 0 .75rem;
    font: 600 1.2rem/1.3 var(--dc-serif);
}

.ttb-order-balance p {
    margin: .5rem 0 0;
}

.ricorsi-ttb-user-area,
.ricorsi-ttb-user-area :is(input, textarea, button, select) {
    font-family: inherit;
}

.ttb-user-area__layout {
    display: grid;
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.25rem);
    width: min(1140px, calc(100% - 2rem));
    margin: clamp(1.25rem, 4vw, 3rem) auto;
}

.ttb-user-area__layout--login {
    grid-template-columns: minmax(0, 1fr);
}

.ttb-user-area__layout--login .ttb-page-card {
    box-sizing: border-box;
    justify-self: center;
    width: min(100%, 560px);
}

.ttb-user-area__layout--login .ttb-login-form {
    max-width: none;
}

.ttb-user-area__nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    align-self: start;
}

.ttb-user-area__nav a {
    border-radius: var(--ttb-radius);
    color: inherit;
    padding: .75rem .9rem;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.ttb-user-area__nav a:hover,
.ttb-user-area__nav a[aria-current="page"] {
    background: var(--ttb-soft);
    color: var(--ttb-primary);
}

.ttb-page-card {
    min-width: 0;
    background: var(--ttb-surface);
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    padding: clamp(1rem, 3vw, 2rem);
}

.ttb-api-diagnostics__notice {
    background: var(--ttb-soft);
    border-radius: var(--ttb-radius);
    margin-block: 1rem;
    padding: .8rem 1rem;
}

.ttb-api-diagnostics__status {
    min-height: 1.5em;
}

.ttb-api-diagnostics__table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.ttb-api-diagnostics__table {
    border-collapse: collapse;
    min-width: 34rem;
    text-align: left;
    width: 100%;
}

.ttb-api-diagnostics__table th,
.ttb-api-diagnostics__table td {
    border-bottom: 1px solid var(--ttb-border);
    padding: .7rem;
}

.ttb-api-debug__toggle {
    background: transparent;
    border: 0;
    color: var(--ttb-primary);
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    padding: .25rem;
}

.ttb-api-debug__list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .6rem;
}

.ttb-api-debug__item,
.ttb-api-debug__inline {
    background: var(--ttb-soft);
    border-radius: 999px;
    color: var(--ttb-primary);
    display: inline-block;
    font: 500 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    padding: .2rem .55rem;
}

.ttb-api-debug__inline {
    margin: .25rem;
}

.ttb-page-heading {
    margin-bottom: 1.25rem;
}

.ttb-page-heading h1,
.ttb-ticket-detail h2,
.ttb-ticket-detail h3 {
    color: inherit;
    margin-top: 0;
}

.ttb-page-heading h1 {
    margin-bottom: .35rem;
}

.ttb-page-heading p,
.ttb-record p,
.ttb-ticket-detail p {
    margin-block: .35rem 0;
}

.ttb-migration-notice {
    background: #fff7e6;
    border-inline-start: 3px solid #e8a32b;
    margin-top: 1.5rem;
    padding: .85rem 1rem;
}

.ttb-button {
    align-items: center;
    border-radius: var(--ttb-radius);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: .7rem 1rem;
    text-decoration: none;
    transition: opacity .18s ease;
}

.ttb-button:hover,
.ttb-button:focus-visible {
    opacity: .88;
}

.ttb-button:disabled {
    cursor: wait;
    opacity: .65;
}

@media print {
    .ttb-user-area__nav,
    .ttb-page-heading,
    .ttb-related-link,
    .ttb-order-addons,
    .ttb-order-payment-form,
    .ttb-order-upsells,
    .ttb-button {
        display: none !important;
    }

    .ttb-user-area__layout {
        display: block;
        width: 100%;
        margin: 0;
    }

    .ttb-page-card {
        border: 0;
        padding: 0;
    }
}

.ttb-login-form {
    display: grid;
    gap: .75rem;
    max-width: 28rem;
    margin-top: 1.25rem;
}

.ttb-login-form input[type="email"],
.ttb-chat-reply textarea {
    background: var(--ttb-surface);
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    color: inherit;
    font: inherit;
    padding: .7rem .8rem;
    width: 100%;
}

.ttb-record-list {
    display: grid;
    gap: .7rem;
    margin-top: 1.25rem;
}

.ttb-record {
    align-items: center;
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .9rem 1rem;
}

.ttb-record__main {
    min-width: 0;
}

.ttb-record h2 {
    font-size: 1.05em;
    margin: 0;
}

.ttb-record h2 a,
.ttb-ticket-detail a {
    color: var(--ttb-primary);
}

.ttb-record__reference,
.ttb-record__date {
    opacity: .78;
    font-size: .92em;
}

.ttb-status {
    align-items: center;
    background: var(--ttb-soft);
    border-radius: 999px;
    color: var(--ttb-ink);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .85em;
    line-height: 1.25;
    padding: .35rem .7rem;
}

.ttb-status--closed,
.ttb-status--completed {
    background: #e8f4ec;
}

.ttb-record-details {
    display: grid;
    gap: .8rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    margin-top: 1.25rem;
}

.ttb-record-details div {
    border-bottom: 1px solid var(--ttb-border);
    padding: .5rem 0;
}

.ttb-record-details dt {
    font-size: .85em;
    font-weight: 700;
}

.ttb-record-details dd {
    margin: .25rem 0 0;
    overflow-wrap: anywhere;
}

.ttb-notice,
.ttb-error,
.ttb-empty-state {
    background: var(--ttb-soft);
    border-radius: var(--ttb-radius);
    margin-top: 1rem;
    padding: .8rem 1rem;
}

.ttb-error,
.ttb-chat-notice--error {
    background: #fff0ef;
    color: #8d211b;
}

.ttb-ticket-detail {
    margin-top: 1.5rem;
}

.ttb-ticket-detail__header {
    align-items: start;
    border-bottom: 1px solid var(--ttb-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.ttb-ticket-detail__header h2 {
    margin-bottom: .25rem;
}

.ttb-ticket-detail__header p,
.ttb-ticket-conversation__heading p {
    opacity: .78;
}

.ttb-ticket-summary {
    background: var(--ttb-soft);
    background: color-mix(in srgb, var(--ttb-soft) 38%, transparent);
    border-radius: var(--ttb-radius);
    margin-top: 1rem;
    padding: 1rem;
}

.ttb-ticket-summary h3,
.ttb-ticket-conversation h3 {
    font-size: 1.1em;
    margin-bottom: .5rem;
}

.ttb-ticket-summary__content {
    overflow-wrap: anywhere;
}

.ttb-chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
}

.ttb-chat-attachments a {
    border: 1px solid var(--ttb-border);
    border-radius: 999px;
    display: inline-block;
    padding: .35rem .7rem;
    overflow-wrap: anywhere;
}

.ttb-ticket-conversation {
    border-top: 1px solid var(--ttb-border);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.ttb-chat-thread {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    max-height: 38rem;
    overflow-y: auto;
    padding: .25rem .25rem 1rem;
    scroll-behavior: smooth;
}

.ttb-chat-message {
    background: var(--ttb-surface);
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    box-shadow: 0 2px 10px rgb(0 37 74 / 5%);
    max-width: min(46rem, 88%);
    padding: .8rem 1rem;
}

.ttb-chat-message--owner {
    align-self: flex-end;
    background: var(--ttb-soft);
    border-bottom-right-radius: .15rem;
}

.ttb-chat-message--operator {
    align-self: flex-start;
    border-bottom-left-radius: .15rem;
}

.ttb-chat-message__header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.ttb-chat-message__header time {
    font-size: .82em;
    opacity: .72;
}

.ttb-chat-message__body {
    overflow-wrap: anywhere;
}

.ttb-markdown-content {
    overflow-wrap: anywhere;
    white-space: normal;
}

.ricorsi-ttb-user-area .ttb-markdown-content a {
    color: #005da8;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.ricorsi-ttb-user-area .ttb-markdown-content a:hover,
.ricorsi-ttb-user-area .ttb-markdown-content a:focus-visible {
    color: #003f7a;
    text-decoration-thickness: .14em;
}

.ricorsi-ttb-user-area .ttb-chat-message--owner .ttb-markdown-content a {
    color: #b9e1ff;
}

.ricorsi-ttb-user-area .ttb-chat-message--owner .ttb-markdown-content a:hover,
.ricorsi-ttb-user-area .ttb-chat-message--owner .ttb-markdown-content a:focus-visible {
    color: #fff;
}

.ttb-markdown-content--plain {
    white-space: pre-wrap;
}

.ttb-markdown-content > :is(p, ul, ol, blockquote, pre, table, hr) {
    margin-block: 0;
}

.ttb-markdown-content > :first-child {
    margin-block-start: 0;
}

.ttb-markdown-content > :last-child {
    margin-block-end: 0;
}

.ttb-markdown-content :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    line-height: 1.3;
    margin-block: 1em .45em;
}

.ttb-markdown-content :is(ul, ol) {
    padding-inline-start: 1.5em;
}

.ttb-markdown-content blockquote {
    border-inline-start: 3px solid var(--ttb-border);
    color: #43566a;
    margin-inline: 0;
    padding-inline-start: .9rem;
}

.ttb-markdown-content :not(pre) > code {
    background: rgb(0 37 74 / 7%);
    border-radius: .25rem;
    padding: .08em .3em;
}

.ttb-markdown-content pre {
    background: rgb(0 37 74 / 6%);
    border-radius: .4rem;
    overflow-x: auto;
    padding: .8rem;
    white-space: pre;
}

.ttb-markdown-content pre code {
    background: transparent;
    padding: 0;
}

.ttb-markdown-content table {
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.ttb-markdown-content :is(th, td) {
    border: 1px solid var(--ttb-border);
    padding: .35rem .55rem;
    text-align: start;
    vertical-align: top;
}

.ttb-markdown-content img {
    height: auto;
    max-width: 100%;
}

.ttb-chat-reply {
    border-top: 1px solid var(--ttb-border);
    display: grid;
    gap: .65rem;
    margin-top: .5rem;
    padding-top: 1rem;
}

.ttb-chat-reply.is-dragover {
    outline: 2px dashed var(--ttb-primary);
    outline-offset: .35rem;
}

.ttb-chat-reply > label {
    font-weight: 700;
}

.ttb-chat-reply textarea {
    min-height: 7rem;
    resize: vertical;
}

.ttb-chat-reply__actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.ttb-chat-reply__file-label {
    color: var(--ttb-primary);
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    margin-bottom: .35rem;
}

.ttb-chat-reply__hint {
    font-size: .85em;
    margin: .3rem 0 0;
    opacity: .72;
}

.ttb-chat-reply__file-list {
    font-size: .9em;
    margin: .5rem 0 0;
    padding-inline-start: 1.2rem;
}

.ttb-chat-notice {
    border-radius: var(--ttb-radius);
    margin: 0;
    padding: .7rem .9rem;
}

.ttb-chat-new-messages {
    background: var(--ttb-soft);
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    color: var(--ttb-primary);
    cursor: pointer;
    font: inherit;
    margin-top: .75rem;
    padding: .55rem .8rem;
}

.ttb-chat-new-messages[hidden] {
    display: none;
}

.ttb-chat-notice--success {
    background: #e8f4ec;
}

/* Scoped account-area palette: keep text readable even when the active theme
   supplies pale Elementor/global colors or low-contrast component defaults. */
.ricorsi-ttb-user-area {
    --ttb-ink: #18324b;
    --ttb-primary: #064b83;
    --ttb-surface: #fff;
    --ttb-soft: #eaf1f8;
    --ttb-border: #c8d3df;
    color: var(--ttb-ink);
    font-size: 1rem;
    line-height: 1.55;
}

.ricorsi-ttb-user-area :is(.ttb-page-heading p, .ttb-record__reference, .ttb-record__date,
    .ttb-record__meta, .ttb-ticket-detail__header p, .ttb-ticket-conversation__heading p,
    .ttb-chat-message__header time, .ttb-chat-reply__hint, .ttb-profile-field small,
    .ttb-associated-order__payments, .ttb-ticket-event__status) {
    color: #43566a !important;
    opacity: 1 !important;
}

.ricorsi-ttb-user-area :is(.ttb-page-heading h1, .ttb-ticket-detail h2, .ttb-ticket-detail h3,
    .ttb-record h2, .ttb-record h2 a, .ttb-profile-section h2, .ttb-associated-section h2,
    .ttb-associated-order h4, .ttb-ticket-summary, .ttb-record-details dt, .ttb-profile-field > span) {
    color: #18324b !important;
}

.ricorsi-ttb-user-area .ttb-page-card {
    background: #fff;
    border-color: #c8d3df;
    box-shadow: 0 8px 26px rgb(16 42 67 / 7%);
}

.ricorsi-ttb-user-area .ttb-button {
    color: #fff !important;
}

.ricorsi-ttb-user-area .ttb-button:hover,
.ricorsi-ttb-user-area .ttb-button:focus-visible {
    color: #00254a !important;
}

.ricorsi-ttb-user-area .ttb-user-area__layout--login .ttb-button {
    background: #00254a !important;
    color: #fff !important;
}

.ricorsi-ttb-user-area .ttb-user-area__layout--login .ttb-button:hover,
.ricorsi-ttb-user-area .ttb-user-area__layout--login .ttb-button:focus-visible,
.ricorsi-ttb-user-area .ttb-user-area__layout--login .ttb-button:active {
    background: #064b83 !important;
    color: #fff !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .ttb-user-area__nav a {
    color: #18324b;
    font-weight: 600;
}

.ricorsi-ttb-user-area .ttb-user-area__nav a:hover,
.ricorsi-ttb-user-area .ttb-user-area__nav a[aria-current="page"] {
    background: #e3edf7;
    color: #064b83;
}

.ricorsi-ttb-user-area .ttb-associated-order,
.ricorsi-ttb-user-area .ttb-profile-section {
    background: #fff;
    border: 1px solid #c8d3df;
    border-radius: .65rem;
}

.ricorsi-ttb-user-area .ttb-record__reference,
.ricorsi-ttb-user-area .ttb-record__date,
.ricorsi-ttb-user-area .ttb-record__meta {
    font-size: .94rem;
    font-weight: 500;
}

.ricorsi-ttb-user-area .ttb-status {
    background: #e3edf7;
    color: #18324b !important;
    font-weight: 700;
}

.ricorsi-ttb-user-area .ttb-status--closed,
.ricorsi-ttb-user-area .ttb-status--completed,
.ricorsi-ttb-user-area .ttb-status--done {
    background: #e3f3e9;
    color: #155b32 !important;
}

.ricorsi-ttb-user-area .ttb-status--pending,
.ricorsi-ttb-user-area .ttb-status--open {
    background: #fff2d6;
    color: #694500 !important;
}

.ricorsi-ttb-user-area .ttb-status--cancelled,
.ricorsi-ttb-user-area .ttb-status--canceled {
    background: #fde8e7;
    color: #8d211b !important;
}

.ricorsi-ttb-user-area .ttb-ticket-summary {
    background: #f2f6fa;
    border: 1px solid #d5dfe8;
    color: #18324b !important;
}

.ricorsi-ttb-user-area .ttb-chat-message {
    color: #18324b;
}

.ricorsi-ttb-user-area .ttb-chat-message--owner {
    background: transparent;
}

.ricorsi-ttb-user-area .ttb-chat-message--operator {
    background: transparent;
}

.ttb-profile-form {
    display: grid;
    gap: 1.25rem;
}

.ttb-order-payment-form {
    display: grid;
    gap: 1rem;
}

.ttb-profile-intro {
    color: #43566a;
    margin: 0;
}

.ttb-profile-section {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.ttb-order-debug-json {
    margin-bottom: 1.5rem;
}

.ttb-order-debug-json pre {
    background: #f5f7fa;
    border: 1px solid var(--ttb-border);
    border-radius: .5rem;
    max-height: 32rem;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ttb-profile-section h2,
.ttb-associated-section h2 {
    font-size: 1.12rem;
    margin: 0 0 1rem;
}

.ttb-profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttb-order-checkout [hidden] {
    display: none !important;
}

.ttb-profile-field {
    display: grid;
    gap: .4rem;
    min-width: 0;
}

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

.ttb-fiscal-code-field__input {
    align-items: stretch;
    display: grid;
    gap: .45rem;
    grid-template-columns: minmax(0, 1fr) 2.8rem;
}

.ttb-fiscal-code-field__label {
    color: #18324b;
    font-size: .92rem;
    font-weight: 700;
}

.ttb-fiscal-code-open {
    align-items: center;
    background: #064b83;
    border: 1px solid #064b83;
    border-radius: var(--ttb-radius);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: .5rem;
}

.ttb-fiscal-code-open:hover,
.ttb-fiscal-code-open:focus-visible {
    background: #00254a;
    border-color: #00254a;
}

.ttb-fiscal-code-open svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.25rem;
}

.ricorsi-ttb-user-area .ttb-fiscal-code-tools .ttb-button,
.ricorsi-ttb-user-area .ttb-fiscal-code-tools .ttb-button:hover,
.ricorsi-ttb-user-area .ttb-fiscal-code-tools .ttb-button:focus-visible {
    background: #064b83 !important;
    border-color: #064b83 !important;
    color: #fff !important;
}

.ricorsi-ttb-user-area .ttb-fiscal-code-tools .ttb-button:hover,
.ricorsi-ttb-user-area .ttb-fiscal-code-tools .ttb-button:focus-visible {
    background: #00254a !important;
    border-color: #00254a !important;
}

.ttb-order-payment-action {
    margin-top: 1.25rem;
}

.ttb-order-checkout {
    border-top: 1px solid var(--ttb-border);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.ttb-order-checkout__amount {
    align-items: center;
    background: var(--ttb-soft);
    border-radius: var(--ttb-radius);
    display: flex;
    justify-content: space-between;
    margin-block: 1rem 1.5rem;
    padding: 1rem;
}

.ttb-order-checkout__amount strong {
    font-size: 1.2em;
}

.ttb-order-checkout__amount--final {
    flex-basis: 100%;
    margin: 0 0 .25rem;
}

.ttb-order-invoice-toggle {
    align-items: center;
    display: flex;
    gap: .55rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ttb-order-invoice-toggle input {
    min-height: auto;
    width: auto;
}

.ttb-order-consents {
    display: grid;
    gap: .75rem;
}

.ttb-order-upsell {
    display: grid;
    gap: 1rem;
}

.ttb-order-upsell h2,
.ttb-order-upsell h3 {
    margin: 0;
}

.ttb-order-addon {
    border-block: 1px solid #e4e9ef;
    margin-top: .55rem;
    padding-block: .75rem;
}

.ttb-order-addon--inactive {
    color: #a0a9b4 !important;
}

.ttb-order-items .ttb-order-addon--inactive strong,
.ttb-order-items .ttb-order-addon--inactive del,
.ttb-order-items .ttb-order-addon--inactive small {
    color: inherit !important;
}

.ttb-order-addon:not(.ttb-order-addon--inactive) {
    color: #00254a;
}

.ttb-order-addon__label {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    flex: 1;
    gap: .65rem;
    min-width: 0;
}

.ttb-order-addon input {
    flex: 0 0 auto;
    margin-top: .25rem;
    width: auto;
}

.ttb-order-addon__content {
    display: grid;
    flex: 1;
    gap: .2rem;
    min-width: 0;
}

.ttb-order-addon__title {
    font-weight: 700;
}

.ttb-order-addon__description {
    font-size: .9em;
}

.ttb-order-addon__price,
.ttb-order-upsell__price {
    align-items: center;
    display: flex;
    gap: .6rem;
    margin: 0;
    white-space: nowrap;
}

.ttb-order-upsell {
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    margin-top: 1.25rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.ttb-order-upsell__offer {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
}

.ttb-order-upsell__offer img {
    border-radius: var(--ttb-radius);
    height: auto;
    max-width: 100%;
}

.ttb-order-upsell__offer h3 {
    margin-bottom: .75rem;
}

.ttb-order-upsell__faq {
    display: grid;
    gap: .75rem;
}

.ttb-order-upsell__faq details {
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    padding: .75rem;
}

.ttb-order-upsell__faq summary {
    cursor: pointer;
    font-weight: 700;
}

.ttb-order-upsell__summary {
    border-top: 1px solid var(--ttb-border);
    display: grid;
    gap: .85rem;
    padding-top: 1.1rem;
}

.ttb-order-upsell__summary-item,
.ttb-order-upsell__summary-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.ttb-order-upsell__summary-total {
    border-top: 1px solid var(--ttb-border);
    color: var(--ttb-primary);
    font-weight: 700;
    padding-top: .85rem;
}

.ttb-order-upsell__summary-total strong {
    font-size: 1.25rem;
}

.ttb-order-upsell__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.ttb-order-upsell__actions .ttb-profile-notice {
    flex-basis: 100%;
}

.ttb-order-consent {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    line-height: 1.5;
}

.ttb-order-consent input {
    flex: 0 0 auto;
    margin: .25em 0 0;
}

.ttb-order-consent > span {
    flex: 1 1 0;
    min-width: 0;
}

.ricorsi-ttb-user-area .ttb-order-consent a {
    color: #064b83 !important;
    font-size: inherit !important;
    line-height: inherit;
    text-decoration: underline !important;
    text-underline-offset: .12em;
}

.ricorsi-ttb-user-area .ttb-order-consent a:hover,
.ricorsi-ttb-user-area .ttb-order-consent a:focus-visible {
    color: #00254a !important;
    text-decoration-thickness: .1em !important;
}

.ttb-stripe-card {
    background: var(--ttb-surface);
    border: 1px solid var(--ttb-border);
    border-radius: var(--ttb-radius);
    min-height: 2.8rem;
    padding: .8rem;
}

.ttb-order-payment-security,
.ttb-order-payment-card-error {
    font-size: .9em;
    margin-top: .65rem;
}

.ttb-order-payment-card-error {
    color: #8d211b;
}

.ttb-profile-field > span {
    font-size: .92rem;
    font-weight: 700;
}

.ttb-profile-field :is(input, select) {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #aebdcb;
    border-radius: .45rem;
    color: #18324b;
    font: inherit;
    height: 2.8rem;
    min-height: 2.8rem;
    padding: .6rem .75rem;
    width: 100%;
}

.ricorsi-ttb-user-area .ttb-profile-field :is(input, select) {
    border-radius: var(--ttb-radius);
}

.ricorsi-ttb-user-area .ttb-profile-field input[type="tel"] {
    box-sizing: border-box;
    height: 2.8rem;
    padding: .6rem .75rem;
}

.ttb-profile-field input[readonly] {
    background: #f1f4f7;
    color: #43566a;
}

.ttb-profile-field :is(input, select):focus-visible,
.ttb-chat-reply textarea:focus-visible {
    border-color: #064b83;
    box-shadow: 0 0 0 3px rgb(6 75 131 / 18%);
    outline: none;
}

.ttb-profile-field small {
    font-size: .82rem;
}

.ttb-field-validation {
    display: block;
    color: #b42318 !important;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.35;
}

.ricorsi-ttb-user-area .ttb-profile-field .ttb-field-validation,
.ricorsi-ttb-user-area .ttb-order-consent .ttb-field-validation {
    color: #b42318 !important;
}

.ttb-order-consent > .ttb-field-validation {
    flex: 1 0 100%;
    margin-left: 1.5rem;
}

.ricorsi-ttb-user-area [aria-invalid="true"] {
    border-color: #b42318 !important;
}

.ttb-profile-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ttb-profile-notice {
    border-radius: .5rem;
    margin: 0;
    padding: .65rem .85rem;
}

.ttb-profile-notice--success {
    background: #e3f3e9;
    color: #155b32;
}

.ttb-profile-notice--error {
    background: #fde8e7;
    color: #8d211b;
}

.ttb-profile-notice--dirty {
    color: var(--dc-rust);
}

.ttb-related-link {
    margin-top: 1rem !important;
}

@media (max-width: 600px) {
    .ttb-order-upsell__offer {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-order-upsell__offer img {
        max-width: 100%;
    }
}

.ttb-associated-orders,
.ttb-order-items {
    display: grid;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttb-associated-order {
    padding: 1rem;
}

.ttb-associated-order header,
.ttb-order-items li {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
}

.ttb-associated-order h4 {
    font-size: 1rem;
    margin: 0;
}

.ttb-associated-order__amount {
    font-weight: 700;
}

.ttb-order-items {
    border-top: 1px solid #d5dfe8;
    margin-top: .75rem;
    padding-top: .6rem;
}

.ttb-order-items li {
    color: #334b61;
    font-size: .94rem;
}

.ttb-order-items li.ttb-payment-row {
    display: grid;
    gap: .5rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ttb-payment-row__details {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    min-width: 0;
}

.ttb-payment-row > strong {
    justify-self: end;
    text-align: right;
}

.ttb-order-items li > span:not(.ttb-order-addon__price) {
    display: grid;
    gap: .2rem;
}

.ttb-payment-receipt {
    background: #e3ecf8;
    border: 1px solid #c5d7ed;
    border-radius: 999px;
    color: #125a9c;
    display: inline-flex;
    font-size: .82rem;
    padding: .35rem .65rem;
    text-decoration: none;
    white-space: nowrap;
}

.ttb-payment-receipt:hover,
.ttb-payment-receipt:focus-visible {
    background: #d7e6f7;
    color: #0b477e;
}

.ttb-order-items small {
    color: #62778b;
    font-size: .88em;
}

.ttb-order-installment {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.ttb-order-installment__steps {
    display: inline-flex;
    gap: .2rem;
}

.ttb-order-installment__steps > span {
    background: #d6dce5;
    border-radius: 1px;
    display: block;
    height: .32rem;
    width: .72rem;
}

.ttb-order-installment__steps > .is-current {
    background: #c94f35;
}

.ttb-order-items .ttb-order-item--free-association {
    border-block: 1px solid #e4e9ef;
    padding-block: .55rem;
}

.ttb-order-item__prices {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.ttb-order-item__prices del {
    color: #8c9aad;
    font-size: .82em;
}

.ttb-order-items strong {
    color: #18324b;
    white-space: nowrap;
}

.ttb-order-items .ttb-order-item__free-price {
    color: #16a34a;
}

.ttb-associated-section {
    margin-top: 1.5rem;
}

.ttb-profile-shortcut {
    align-items: center;
    background: #f2f6fa;
    border: 1px solid #d5dfe8;
    border-radius: .65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.ttb-profile-shortcut h2 {
    color: #18324b;
    font-size: 1.05rem;
    margin: 0;
}

.ttb-profile-shortcut p {
    color: #43566a !important;
    margin: .25rem 0 0;
}

.ttb-booking-week {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin: 1rem 0;
    text-align: center;
}

.ttb-booking-week strong {
    color: #18324b;
}

.ttb-booking-week__nav {
    border-radius: .45rem;
    cursor: pointer;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    min-height: 2.5rem;
    min-width: 2.5rem;
}

.ttb-booking-week__nav:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.ttb-booking-slots {
    overflow-x: auto;
}

.ttb-booking-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: .5rem 0;
    min-width: 34rem;
}

.ttb-booking-grid__day {
    border-bottom: 2px solid #dee2e6;
    color: #18324b;
    font-size: .82rem;
    font-weight: 700;
    padding: .5rem .15rem;
    text-align: center;
}

.ttb-booking-slot {
    border-radius: .3rem;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    min-width: 0;
    padding: .45rem .2rem;
    text-align: center;
}

.ttb-booking-slot--past {
    cursor: not-allowed;
    text-decoration: line-through;
}

.ttb-booking-slot--unavailable {
    cursor: not-allowed;
}

.ttb-booking-slot:disabled {
    opacity: 1;
}

.ttb-booking-slot:focus-visible {
    outline-offset: 2px;
}

.ttb-booking-selection,
.ttb-booking-loading {
    color: #43566a !important;
    font-weight: 600;
}

.ttb-booking-form {
    border-top: 1px solid #d5dfe8;
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.ttb-booking-form textarea {
    background: #fff;
    border: 1px solid #aebdcb;
    border-radius: .45rem;
    color: #18324b;
    font: inherit;
    padding: .65rem .75rem;
    resize: vertical;
    width: 100%;
}

@media (max-width: 700px) {
    .ttb-user-area__layout {
        grid-template-columns: 1fr;
        margin-block: 1rem;
    }

    .ttb-user-area__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ttb-record,
    .ttb-ticket-detail__header {
        align-items: flex-start;
    }

    .ttb-chat-message {
        max-width: 94%;
    }

    .ttb-profile-grid {
        grid-template-columns: 1fr;
    }

    .ttb-profile-field--wide {
        grid-column: auto;
    }
}

/* Area riservata: testata e linguette ispirate al prototipo Difesa Consumatori. */
.dcs-account {
    --dc-navy: #00254a;
    --dc-ink: #0c2440;
    --dc-muted: #526176;
    --dc-paper: #f7f9fb;
    --dc-mist: #eef1f7;
    --dc-line: #d5dae3;
    --dc-rust: #a5432b;
    color: var(--dc-ink);
    background: var(--dc-mist);
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ttb-ajax-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.ttb-ajax-loader[open] {
    display: grid;
    place-items: center;
}

.ttb-ajax-loader::backdrop {
    background: rgb(8 27 47 / 22%);
    backdrop-filter: blur(1px);
}

.ttb-ajax-loader__panel {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgb(0 20 44 / 30%);
}

.ttb-ajax-loader__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #d5dae3;
    border-top-color: #00254a;
    border-radius: 50%;
    animation: ttb-ajax-spin .75s linear infinite;
}

@keyframes ttb-ajax-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttb-ajax-loader__spinner {
        animation-duration: 1.8s;
    }
}

.ttb-account-mast {
    color: #fff;
    background: linear-gradient(180deg, #002b57, var(--dc-navy) 60%, #002145);
}

.ttb-account-masthead,
.ttb-account-tabs ul,
.dcs-account .ttb-user-area__layout {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.ttb-account-masthead {
    padding-block: 1.25rem 0;
}

.ttb-account-meta,
.ttb-account-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ttb-account-meta {
    color: #c4d3e5;
    font-size: .85rem;
}

.ttb-account-meta p {
    margin: 0;
}

.ttb-account-user {
    justify-content: flex-end;
}

.ttb-account-user__name {
    color: #fff;
    font-weight: 600;
}

.ttb-account-user__name::before {
    display: inline-block;
    width: .45rem;
    height: .45rem;
    margin-right: .5rem;
    border-radius: 50%;
    background: #6fd09a;
    content: "";
    vertical-align: .08em;
}

.ttb-account-logout {
    padding: .3rem .65rem;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 3px;
    color: #fff;
    font-size: .85rem;
    text-decoration: none;
}

.ttb-account-logout:hover,
.ttb-account-logout:focus-visible {
    color: #fff;
    background: rgb(255 255 255 / 12%);
}

.ricorsi-ttb-user-area .ttb-account-mast .ttb-account-logout,
.ricorsi-ttb-user-area .ttb-account-mast .ttb-account-logout:visited {
    border-color: rgb(255 255 255 / 65%) !important;
    background: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
}

.ricorsi-ttb-user-area .ttb-account-mast .ttb-account-logout:hover,
.ricorsi-ttb-user-area .ttb-account-mast .ttb-account-logout:focus-visible {
    border-color: #fff !important;
    background: #fff !important;
    color: #00254a !important;
}

.ttb-account-mast h1 {
    margin: 1.7rem 0 0;
    color: #fff;
    font: 500 clamp(2.1rem, 5vw, 3.4rem)/1.08 Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
}

.ttb-account-lede {
    max-width: 68ch;
    margin: .7rem 0 0;
    color: #dbe6f2;
    font: 400 clamp(1.05rem, 2vw, 1.3rem)/1.45 Georgia, "Times New Roman", serif;
}

.ttb-account-tabs ul {
    display: flex;
    gap: 2px;
    margin-block: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.ttb-account-tabs__select-label {
    display: none;
}

.ttb-account-tabs li {
    margin: 0;
}

.ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a {
    position: relative;
    display: flex;
    min-height: 3rem;
    align-items: center;
    gap: .55rem;
    padding: 0 1.1rem;
    border-radius: 8px 8px 0 0;
    color: #d3deeb !important;
    background-color: transparent !important;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}

.ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a:focus-visible {
    color: #fff !important;
    background-color: rgb(255 255 255 / 12%) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"],
.ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"]:hover {
    color: var(--dc-navy) !important;
    background-color: var(--dc-mist) !important;
}

.ttb-account-tabs a svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ttb-account-sheet {
    min-height: 46vh;
    padding-block: clamp(2rem, 5vw, 3rem) 5rem;
}

.dcs-account .ttb-user-area__layout {
    display: block;
    margin-block: 0;
}

.ricorsi-ttb-user-area .dcs-account .ttb-page-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dcs-account .ttb-page-heading {
    margin-bottom: 1.5rem;
}

.dcs-account .ttb-page-heading h1 {
    color: var(--dc-navy);
    font: 600 clamp(1.6rem, 3vw, 2rem)/1.2 Georgia, "Times New Roman", serif;
}

.ttb-page-heading p {
    color: var(--dc-muted);
}

.ttb-dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.ttb-dashboard-next,
.ttb-dashboard-activity {
    min-width: 0;
}

.ttb-dashboard-next {
    padding: 1.5rem;
    border: 1px solid var(--dc-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px -24px rgb(0 37 74 / 35%);
}

.ttb-dashboard-overview h2 {
    margin: 0 0 .85rem;
    color: var(--dc-navy);
    font: 600 1.45rem/1.2 Georgia, "Times New Roman", serif;
}

.ttb-dashboard-next p {
    margin: .3rem 0;
    color: var(--dc-muted);
}

.ttb-dashboard-next .ttb-dashboard-next__date {
    color: var(--dc-navy);
    font: 500 1.35rem/1.3 Georgia, "Times New Roman", serif;
}

.ttb-dashboard-next > a,
.ttb-dashboard-profile-link a {
    display: inline-block;
    margin-top: .75rem;
    color: var(--dc-navy);
    font-weight: 600;
    text-underline-offset: 3px;
}

.ttb-dashboard-next__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
}

.ttb-dashboard-next__actions > a:not(.ttb-button) {
    color: var(--dc-navy);
    font-weight: 600;
    text-underline-offset: 3px;
}

.ttb-dashboard-next__actions .ttb-dashboard-meet {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ttb-dashboard-meet {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.ttb-dashboard-meet svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ttb-event-feature__actions .ttb-event-join-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ttb-event-feature__actions .ttb-event-join-link svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    color: #fff !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ttb-dashboard-next__actions .ttb-dashboard-meet svg,
.ttb-event-feature__actions .ttb-dashboard-meet svg {
    fill: none !important;
    stroke: #fff !important;
}

.ttb-dashboard-activity ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--dc-navy);
    list-style: none;
}

.ttb-dashboard-activity li {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dc-line);
}

.ttb-dashboard-activity li > span {
    color: var(--dc-rust);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ttb-dashboard-activity li a {
    color: var(--dc-navy);
    font: 600 1.15rem/1.25 Georgia, "Times New Roman", serif;
    text-decoration: none;
}

.ttb-dashboard-activity li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ttb-dashboard-activity li small {
    display: block;
    margin-top: .25rem;
    color: var(--dc-muted);
}

.ttb-dashboard-profile-link {
    margin: 1.5rem 0 0;
}

.ttb-record-list {
    gap: 0;
    margin-top: 0;
    border-top: 1px solid var(--dc-navy);
}

.ttb-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem 1rem;
    padding: 1.25rem .25rem;
    border: 0;
    border-bottom: 1px solid var(--dc-line);
    border-radius: 0;
}

.ttb-record:hover {
    background: #fff;
}

.ttb-record__main {
    grid-column: 1;
}

.ttb-record h2 {
    font: 600 1.2rem/1.25 Georgia, "Times New Roman", serif;
}

.ttb-record h2 a {
    text-decoration: none;
}

.ttb-record h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ttb-record__date,
.ttb-record__reference,
.ttb-record__meta {
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-status {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: .4rem .55rem;
    border-radius: 2px;
    background: #e3ecf8;
    color: var(--dc-navy);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ttb-status--paid,
.ttb-status--completed,
.ttb-status--concluso,
.ttb-status--closed,
.ttb-status--chiuso {
    background: #e2f2e8;
    color: #1c6a43;
}

.ttb-status--pending,
.ttb-status--in-attesa,
.ttb-status--da-pagare {
    background: #fbece6;
    color: #a5432b;
}

.ttb-record__main:has(+ .ttb-status) {
    grid-row: 1;
}

.ttb-profile-form,
.ttb-ticket-detail {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--dc-line);
    border-radius: 10px;
    background: #fff;
}

.ttb-profile-section + .ttb-profile-section {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dc-line);
}

.ttb-profile-section h2,
.ttb-associated-section h2 {
    color: var(--dc-navy);
    font: 600 1.35rem/1.25 Georgia, "Times New Roman", serif;
}

.ttb-error,
.ttb-empty-state {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--dc-line);
    border-radius: 4px;
    background: #fff;
}

@media (max-width: 700px) {
    .ttb-event-mast {
        align-items: flex-start;
        gap: .8rem;
        margin-top: 1rem;
    }

    .ttb-event-mast__date {
        width: 3.5rem;
        height: 3.75rem;
    }

    .ttb-event-mast__date strong {
        font-size: 1.55rem;
    }

    .ttb-event-mast h1 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .ttb-event-mast .ttb-account-lede {
        margin-top: .4rem;
        font-size: .9rem;
    }

    .ttb-account-masthead,
    .ttb-account-tabs ul,
    .dcs-account .ttb-user-area__layout {
        width: min(100% - 1.25rem, 1140px);
    }

    .ttb-account-meta {
        align-items: flex-start;
    }

    .ttb-account-user {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .35rem .75rem;
    }

    .ttb-account-tabs__select-label {
        display: block;
        width: min(100% - 1.25rem, 1140px);
        margin: 1rem auto 0;
    }

    .ttb-account-tabs ul {
        display: none;
    }

    .ttb-account-tabs__select {
        display: block;
        width: 100%;
        min-height: 2.8rem;
        padding: .6rem 2.5rem .6rem .8rem;
        border: 1px solid #aebed2;
        border-radius: 4px;
        background: #fff;
        color: #00254a;
        font: inherit;
    }

    .ttb-account-tabs a {
        min-height: 3.25rem;
        padding-inline: .75rem;
        font-size: .85rem;
        white-space: nowrap;
    }

    .ttb-dashboard-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .ttb-dashboard-next {
        padding: 1.15rem;
    }

    .ttb-record {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-status {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .ttb-record__main:has(+ .ttb-status) {
        grid-row: 1;
    }
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/sourceserif4-normal-400-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/sourceserif4-italic-400-700.woff2") format("woff2");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibmplexsans-var.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibmplexmono-normal-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
}

.dcs-account {
    --dc-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --dc-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dc-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --ttb-mobile-nav-height: 3.5rem;
    font-family: var(--dc-sans);
}

.ttb-account-mast {
    position: relative;
    overflow: hidden;
    padding-top: 1px;
}

.ttb-account-seal {
    position: absolute;
    top: 3.5rem;
    right: max(calc(50% - 560px), 1.5rem);
    width: clamp(150px, 19vw, 230px);
    height: auto;
    color: #dfe9f6;
    --seal-accent: #f2b9a2;
    opacity: .28;
    pointer-events: none;
}

.ttb-account-seal svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ttb-account-seal .s {
    fill: none;
    stroke: currentColor;
    stroke-width: calc(var(--w, 2) * 1px);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: var(--o, 1);
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.06;
    animation: ttb-seal-draw .52s cubic-bezier(.3, .7, .2, 1) var(--d, 0ms) forwards;
}

.ttb-account-seal .acc {
    stroke: var(--seal-accent, currentColor);
}

@keyframes ttb-seal-draw {
    to { stroke-dashoffset: 0; }
}

.ttb-account-masthead {
    position: relative;
    padding-block: 1.25rem 0;
}

.ttb-account-meta > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1rem;
}

.ttb-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #dbe6f2;
    font-size: .85rem;
}

.ttb-account-breadcrumb a {
    color: #fff !important;
    text-underline-offset: 3px;
}

.ttb-event-mast {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.25rem;
    margin-top: 1.35rem;
}

.ttb-event-mast__date {
    display: grid;
    flex: none;
    justify-items: center;
    align-content: center;
    width: 4.1rem;
    height: 4.25rem;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 6px;
    color: #c4d3e5;
    font: 500 .65rem/1.1 var(--dc-mono);
    letter-spacing: .1em;
}

.ttb-event-mast__date strong {
    margin: .1rem 0;
    color: #fff;
    font: 500 1.8rem/1 var(--dc-serif);
    letter-spacing: -.02em;
}

.ttb-event-mast h1 {
    margin: 0;
}

.ttb-event-mast .ttb-account-lede {
    margin-top: .55rem;
    font: 400 1rem/1.4 var(--dc-sans);
}

.ttb-account-meta__date {
    color: #aebed2;
}

.ttb-account-mast h1 {
    font-family: var(--dc-serif);
    font-weight: 500;
    letter-spacing: -.025em;
}

.ttb-account-lede {
    font-family: var(--dc-serif);
}

.ttb-account-tabs {
    position: relative;
}

.ttb-account-tabs a {
    font-family: var(--dc-sans);
}

.ttb-account-tabs__label-mobile {
    display: none;
}

.ttb-account-footer {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1.5rem;
    font-size: .8rem;
    text-align: right;
}

.ttb-account-footer a {
    color: var(--dc-muted);
    text-underline-offset: 3px;
}

.ttb-account-tabs a[aria-current="page"] {
    position: relative;
}

.dcs-account .ttb-account-sheet {
    background: var(--dc-mist);
}

.dcs-account .ttb-page-heading h1,
.ttb-dashboard-overview h2,
.ttb-record h2,
.ttb-profile-section h2,
.ttb-associated-section h2 {
    font-family: var(--dc-serif);
}

.ttb-dashboard-next {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}

.ttb-dashboard-next > .ttb-dashboard-panel-loading {
    flex: 1 1 100%;
    min-height: 220px;
}

.ttb-dashboard-next > .ttb-dashboard-panel-error {
    flex: 1 1 100%;
    min-height: 220px;
}

.ttb-dashboard-activity [data-dashboard-activity-content] {
    min-height: 7rem;
}

.ttb-dashboard-activity [data-dashboard-activity-content] > .ttb-dashboard-panel-loading {
    min-height: 7rem;
    border-top: 1px solid var(--dc-navy);
}

.ttb-dashboard-panel-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 7rem;
    gap: .75rem;
}

.ttb-dashboard-next__content {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 62ch;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ttb-dashboard-next__eyebrow {
    margin-bottom: .8rem !important;
    color: var(--dc-rust) !important;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ttb-dashboard-next__content h2 {
    margin: 0 7rem .35rem 0;
    font: 600 clamp(1.35rem, 2.5vw, 1.8rem)/1.15 var(--dc-serif) !important;
}

.ttb-dashboard-next__status {
    position: absolute;
    top: clamp(1.25rem, 3vw, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    padding: .3rem .55rem;
    background: var(--dc-sky);
    color: var(--dc-navy);
    font: 600 .65rem/1 var(--dc-mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ttb-dashboard-next__date {
    font: 500 1.05rem/1.4 var(--dc-mono) !important;
    color: var(--dc-ink) !important;
}

.ttb-dashboard-next__timeline {
    display: grid;
    grid-template-columns: minmax(8rem, .8fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--dc-line-soft);
}

.ttb-dashboard-next__timeline > div:first-child {
    display: grid;
    gap: .2rem;
}

.ttb-dashboard-next__timeline > div:first-child strong {
    color: var(--dc-navy);
    font-family: var(--dc-serif);
}

.ttb-dashboard-next__timeline > div:first-child span {
    color: var(--dc-muted);
    font-size: .82rem;
}

.ttb-dashboard-next__leaf {
    order: -1;
    display: grid;
    width: 116px;
    flex: none;
    align-content: center;
    justify-items: center;
    padding: 1rem;
    background: var(--dc-navy);
    color: #c4d3e5;
    font: 500 .75rem/1 var(--dc-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ttb-dashboard-next__leaf strong {
    margin-top: .35rem;
    color: #fff;
    font: 500 3.6rem/1 var(--dc-serif);
    letter-spacing: -.03em;
}

.ttb-dashboard-activity ul {
    border-top-color: var(--dc-navy);
}

.ttb-dashboard-activity li {
    grid-template-columns: 5.2rem minmax(0, 1fr);
}

.ttb-dashboard-activity li > span {
    font-family: var(--dc-mono);
    letter-spacing: .04em;
}

.ttb-dashboard-activity li a {
    font-family: var(--dc-serif);
}

.ttb-record-list {
    border-top-color: var(--dc-navy);
}

.ttb-record-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.ttb-record-search {
    position: relative;
    flex: 1 1 300px;
    max-width: 460px;
    padding-top: 1.3rem;
}

.ttb-record-search__label {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--dc-ink);
    font-size: .78rem;
    font-weight: 600;
}

.ttb-record-search svg {
    position: absolute;
    bottom: .85rem;
    left: .85rem;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: var(--dc-muted);
    stroke-linecap: round;
    stroke-width: 1.7;
    pointer-events: none;
}

.ttb-record-search input {
    width: 100%;
    min-height: 3rem;
    padding: .6rem 2.7rem .6rem 2.8rem;
    border: 1px solid #8794a6;
    border-radius: 4px;
    background: #fff;
    color: var(--dc-ink);
}

.ricorsi-ttb-user-area .ttb-record-search input[type="search"] {
    padding-left: 3.2rem !important;
}

.ttb-record-search kbd {
    position: absolute;
    right: .65rem;
    bottom: .7rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid #d5dae3;
    border-radius: 3px;
    background: #f7f9fb;
    color: var(--dc-muted);
    font: 500 .8rem/1 var(--dc-mono);
}

.ttb-record-search input:focus-visible {
    border-color: var(--dc-navy);
    outline-color: #2b6fd6;
}

.ttb-record-filters {
    display: inline-flex;
    gap: 2px;
    margin: 0;
    padding: 3px;
    border: 1px solid #8794a6;
    border-radius: 4px;
    background: #fff;
}

.ttb-record-filters label {
    position: relative;
    display: flex;
    margin: 0;
    cursor: pointer;
}

.ttb-record-filters input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ttb-record-filters span {
    display: flex;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0 .85rem;
    border-radius: 2px;
    color: var(--dc-ink);
    font-size: .9rem;
    white-space: nowrap;
}

.ttb-record-filters input:checked + span {
    background: var(--dc-navy);
    color: #fff;
    font-weight: 600;
}

.ttb-record-filters span small {
    font: 500 .72rem/1 var(--dc-mono);
    opacity: .78;
}

.ttb-record-filters input:checked + span small {
    opacity: .9;
}

.ttb-record-filters input:focus-visible + span {
    outline: 2px solid #2b6fd6;
    outline-offset: 2px;
}

.ttb-record-count {
    flex-basis: 100%;
    margin: -.35rem 0 0;
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-record {
    grid-template-columns: minmax(76px, 100px) minmax(0, 1fr) auto 2.2rem;
    align-items: center;
    gap: .45rem 1.25rem;
    padding: 1.25rem .4rem;
}

.ttb-record--order {
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr) minmax(170px, auto);
}

.ttb-record[hidden] {
    display: none;
}

.ttb-record__date {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    color: var(--dc-rust);
    font: 500 .72rem/1.35 var(--dc-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ttb-record__main {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ttb-record h2,
.ttb-record h2 a {
    font-family: var(--dc-serif);
}

.ttb-record h2,
.ttb-record h2 a {
    font-size: 1.25rem;
}

.ttb-record__arrow {
    grid-column: 4;
    grid-row: 1;
    justify-self: center;
    color: var(--dc-rust);
    font-size: 1.3rem;
    line-height: 1;
    text-decoration: none;
}

.ttb-record__products {
    margin: .4rem 0 0;
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-record__order-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    grid-template-rows: auto auto;
    align-items: center;
    gap: .35rem .7rem;
    grid-column: 3;
    grid-row: 1 / span 2;
}

.ttb-order-payment-status {
    justify-self: end;
    padding: .35rem .55rem;
    border-radius: 2px;
    background: #e2f2e8;
    color: #1c6a43;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.ttb-record__order-total {
    justify-self: end;
    color: var(--dc-navy);
    font-size: 1.05rem;
    white-space: nowrap;
}

.ttb-record__order-aside .ttb-record__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ttb-order-layout {
    display: grid;
    grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.3fr);
    grid-template-areas: "panel ledger";
    align-items: start;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ttb-order-layout--checkout {
    grid-template-columns: minmax(0, 1.3fr) minmax(17rem, .8fr);
    grid-template-areas: "ledger panel";
}

.ttb-order-layout--processing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ledger";
}

.ttb-order-layout--processing .ttb-order-payment-panel {
    display: none;
}

.dcs-account--upsell .ttb-account-masthead > h1,
.dcs-account--upsell .ttb-account-masthead > .ttb-account-lede {
    display: none;
}

.dcs-account--upsell .ttb-order-layout > :not(.ttb-order-upsell) {
    display: none !important;
}

.dcs-account--upsell .ttb-order-layout > .ttb-order-upsell {
    margin-top: 0;
}

.ttb-order-payment-form--processing > :not(.ttb-profile-actions),
.ttb-order-payment-form--processing .ttb-profile-actions > :not([data-payment-notice]) {
    display: none !important;
}

.ttb-order-payment-panel {
    grid-area: panel;
    min-width: 0;
    padding: 1.35rem;
    border: 1px solid var(--dc-line);
    border-radius: 6px;
    background: #fff;
}

.ttb-order-payment-panel h2,
.ttb-order-ledger > h2 {
    margin: 0 0 1rem;
    color: var(--dc-navy);
    font: 600 1.35rem/1.25 var(--dc-serif);
}

.ttb-order-payment-panel .ttb-detail-status {
    margin: 0 0 1rem;
}

.ttb-order-payment-panel__amount {
    display: grid;
    gap: .35rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-block: 1px solid var(--dc-line);
    color: var(--dc-muted);
}

.ttb-order-payment-panel__amount strong {
    color: var(--dc-navy);
    font: 600 1.8rem/1.1 var(--dc-serif);
}

.ttb-order-ledger {
    grid-area: ledger;
    min-width: 0;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 37 74 / 8%);
}

.ttb-order-ledger__total {
    align-items: center;
    border-top: 2px solid var(--dc-navy);
    color: var(--dc-navy);
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin: 1rem 0 0;
    padding-top: .9rem;
}

.ttb-order-ledger__total strong {
    font: 600 1.35rem/1.2 var(--dc-serif);
    white-space: nowrap;
}

.ttb-order-ledger__items {
    margin-top: 0;
}

.ttb-order-ledger__items .ttb-order-items {
    margin-top: 0;
    border-top: 0;
}

.ttb-order-ledger .ttb-order-items li > span:not(.ttb-order-addon__price) {
    display: grid;
    flex: 1;
    grid-template-columns: max-content minmax(1rem, 1fr);
    align-items: end;
}

.ttb-order-ledger .ttb-order-items li > span:not(.ttb-order-addon__price)::after {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 .25rem .4rem;
    border-bottom: 1px dotted var(--dc-line);
    content: "";
}

.ttb-order-ledger .ttb-order-items li > span small {
    grid-column: 1 / -1;
}

.ttb-order-layout > .ttb-associated-section,
.ttb-order-layout > .ttb-order-checkout,
.ttb-order-layout > .ttb-order-upsell {
    grid-column: 1 / -1;
}

.ttb-order-payment-panel__notice {
    margin: .75rem 0;
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-order-plan-total {
    margin-top: 1rem;
}

.ttb-record__arrow:hover,
.ttb-record__arrow:focus-visible {
    color: var(--dc-navy);
}

.ricorsi-ttb-user-area .ttb-record:hover {
    border-radius: 6px;
    background: #fff;
}

.ttb-status {
    grid-column: 3;
    grid-row: 1;
    border-radius: 2px;
    letter-spacing: .07em;
}

.dcs-account .ttb-profile-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ttb-profile-layout {
    --ttb-profile-scroll-offset: 180px;
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.ttb-profile-index {
    position: sticky;
    top: var(--ttb-profile-scroll-offset);
}

.ttb-profile-index[hidden] + .ttb-profile-content {
    grid-column: 1 / -1;
}

.ttb-profile-index ol {
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--dc-line);
    list-style: none;
    counter-reset: profile-section;
}

.ttb-profile-index li {
    margin: 0;
}

.ttb-profile-index a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: baseline;
    min-height: 46px;
    padding: .65rem .8rem;
    border-left: 2px solid transparent;
    color: var(--dc-muted);
    font-size: .9rem;
    line-height: 1.35;
    text-decoration: none;
    transform: translateX(-1px);
}

.ttb-profile-index a::before {
    counter-increment: profile-section;
    content: "§" counter(profile-section);
    color: var(--dc-rust);
    font: 500 .78rem/1 var(--dc-mono);
}

.ttb-profile-index a:hover,
.ttb-profile-index a:focus-visible {
    border-left-color: var(--dc-rust);
    color: var(--dc-navy);
}

.ttb-profile-content {
    min-width: 0;
}

.ttb-profile-section[id] {
    scroll-margin-top: var(--ttb-profile-scroll-offset);
}

.dcs-account .ttb-profile-section {
    padding: 1.75rem 0 2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dcs-account .ttb-profile-loading-section {
    padding: 1.25rem;
    border: 1px solid var(--dc-line);
    border-radius: 10px;
    background: #fff;
}

.dcs-account .ttb-profile-section:first-child {
    padding-top: 0;
}

.dcs-account .ttb-profile-section + .ttb-profile-section {
    border-top: 1px solid var(--dc-line);
}

.dcs-account .ttb-order-payment-form {
    gap: 0;
}

.dcs-account .ttb-order-payment-form > .ttb-profile-section {
    padding-block: .5rem;
}

.dcs-account .ttb-order-payment-form > .ttb-profile-section + .ttb-profile-section {
    margin-top: .25rem;
    padding-top: .5rem;
}

.dcs-account .ttb-order-payment-form .ttb-order-invoice-toggle {
    margin-bottom: 0;
}

.dcs-account .ttb-order-payment-form [data-invoice-fields]:not([hidden]) {
    margin-top: .75rem;
}

.ttb-profile-section h2 {
    font-size: 1.5rem;
}

.ttb-profile-actions {
    position: sticky;
    bottom: .75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    z-index: 3;
    margin-top: 1.5rem;
    padding: .75rem;
    border: 1px solid var(--dc-line);
    border-radius: 5px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 6px 24px rgb(0 37 74 / 12%);
    backdrop-filter: blur(8px);
}

.ttb-order-payment-form .ttb-profile-actions {
    position: static;
}

.ttb-profile-actions [data-profile-notice] {
    order: -1;
    margin-right: auto;
    padding: 0;
    background: transparent;
}

.ttb-profile-actions [data-profile-reset],
.ttb-profile-actions [data-profile-submit] {
    flex: none;
}

.ricorsi-ttb-user-area .dcs-account .ttb-profile-actions .ttb-button:disabled {
    border-color: #c3cbd7 !important;
    background: #f7f9fb !important;
    color: #667386 !important;
    cursor: not-allowed;
    opacity: 1;
}

.ttb-profile-reset-dialog {
    width: min(440px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    border: 1px solid var(--dc-line);
    border-radius: var(--ttb-radius);
    color: var(--dc-ink);
    background: #fff;
    box-shadow: 0 24px 60px rgb(0 20 44 / 28%);
}

.ttb-profile-reset-dialog::backdrop {
    background: rgb(0 20 44 / 58%);
}

.ttb-profile-reset-dialog__content {
    padding: 1.5rem;
}

.ttb-profile-reset-dialog h2 {
    margin: 0;
    color: var(--dc-navy);
    font: 600 1.35rem/1.25 var(--dc-serif);
}

.ttb-profile-reset-dialog p {
    margin: .55rem 0 1.25rem;
    color: var(--dc-muted);
}

.ttb-profile-reset-dialog__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .65rem;
}

.ttb-profile-reset-dialog .ttb-button {
    border: 1px solid #064b83 !important;
    background: #064b83 !important;
    color: #fff !important;
}

.ttb-profile-reset-dialog .ttb-button:hover,
.ttb-profile-reset-dialog .ttb-button:focus-visible {
    border-color: #064b83 !important;
    background: #fff !important;
    color: #064b83 !important;
    opacity: 1;
}

.ttb-profile-reset-dialog .ttb-button--secondary {
    border-color: #aebdcb !important;
    background: #fff !important;
    color: #18324b !important;
}

.ttb-profile-reset-dialog .ttb-button--secondary:hover,
.ttb-profile-reset-dialog .ttb-button--secondary:focus-visible {
    border-color: #064b83 !important;
    background: #eaf1f8 !important;
    color: #064b83 !important;
}

.ttb-fiscal-code-dialog {
    width: min(620px, calc(100% - 2rem));
    max-width: none;
    max-height: min(90vh, 760px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--dc-line);
    border-radius: var(--ttb-radius);
    color: var(--dc-ink);
    background: #fff;
    box-shadow: 0 24px 60px rgb(0 20 44 / 28%);
}

.ttb-fiscal-code-dialog::backdrop {
    background: rgb(0 20 44 / 58%);
}

.ttb-fiscal-code-dialog__content {
    position: relative;
    padding: 1.5rem;
}

.ttb-fiscal-code-dialog h2 {
    margin: 0 2.5rem .4rem 0;
    color: var(--dc-navy);
    font: 600 1.35rem/1.25 var(--dc-serif);
}

.ttb-fiscal-code-dialog__content > p {
    margin: .55rem 0 1.25rem;
    color: var(--dc-muted);
}

.ttb-fiscal-code-dialog__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef2f6;
    color: var(--dc-navy);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.ttb-fiscal-code-dialog__suggestion:not([hidden]) {
    padding: .75rem;
    border-radius: var(--ttb-radius);
    background: #eef4f8;
}

.ttb-fiscal-code-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.25rem;
}

.ttb-fiscal-code-dialog .ttb-button {
    border: 1px solid #064b83 !important;
    background: #064b83 !important;
    color: #fff !important;
}

.ttb-fiscal-code-dialog .ttb-button--secondary {
    border-color: #aebdcb !important;
    background: #fff !important;
    color: #18324b !important;
}

.ttb-cancel-event-dialog {
    width: min(440px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    border: 1px solid var(--dc-line);
    border-radius: var(--ttb-radius);
    color: var(--dc-ink);
    background: #fff;
    box-shadow: 0 24px 60px rgb(0 20 44 / 28%);
}

.ttb-cancel-event-dialog::backdrop {
    background: rgb(0 20 44 / 58%);
}

.ttb-cancel-event-dialog__content {
    padding: 1.5rem;
}

.ttb-cancel-event-dialog h2 {
    margin: 0;
    color: var(--dc-navy);
    font: 600 1.35rem/1.25 var(--dc-serif);
}

.ttb-cancel-event-dialog__content > p {
    margin: .55rem 0 1.25rem;
    color: var(--dc-muted);
}

.ttb-cancel-event-dialog__content > .ttb-cancel-event-dialog__notice {
    color: #8d211b;
}

.ttb-cancel-event-dialog__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .65rem;
}

.ttb-record-details {
    border-top: 1px solid var(--dc-line);
}

.ttb-record-details > div {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--dc-line);
}

.ttb-record-details dt {
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-record-details dd {
    margin: 0;
    color: var(--dc-ink);
}

.ttb-ticket-detail {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    gap: 1.5rem clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ttb-ticket-detail__header {
    display: none;
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    border-bottom-color: var(--dc-line);
}

.ttb-ticket-detail__header h2,
.ttb-ticket-summary h3,
.ttb-ticket-conversation h3 {
    font-family: var(--dc-serif);
}

.dcs-account .ttb-ticket-summary {
    margin-top: 0;
    border: 1px solid var(--dc-line);
    border-radius: 5px;
    background: #fff;
    background: #fff;
}

.ttb-ticket-summary--request {
    grid-column: 1;
    grid-row: 2;
}

.ttb-ticket-related {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--dc-line);
    border-radius: 8px;
    background: #fff;
}

.ttb-ticket-related > h3 {
    margin: 0 0 .75rem;
    color: var(--dc-navy);
    font: 600 1.2rem/1.3 var(--dc-serif);
}

.ttb-ticket-orders > h3 {
    display: none;
}

.ttb-ticket-related .ttb-ticket-summary {
    margin: 0;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--dc-line);
    border-radius: 0;
    background: transparent;
}

.ttb-ticket-related > section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.ttb-ticket-related .ttb-ticket-summary + .ttb-ticket-summary {
    margin-top: 1rem;
}

.ttb-ticket-related .ttb-ticket-summary h3 {
    margin: 0 0 .45rem;
    font: 600 1rem/1.35 var(--dc-sans);
}

.ttb-ticket-related .ttb-ticket-booking {
    padding: 1rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-related .ttb-booking-open:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-ticket-related .ttb-booking-open:focus-visible {
    background: #064b83 !important;
    color: #fff !important;
    opacity: 1;
}

.ttb-ticket-related .ttb-ticket-booking > :not(.ttb-booking-open):not(.ttb-booking-dialog) {
    display: none;
}

.ttb-associated-order--compact {
    margin: 0;
    padding: .6rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ttb-associated-order--compact > :not(header):not(.ttb-associated-order__compact-meta) {
    display: none;
}

.ttb-associated-order__compact-meta {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: center;
    margin: .65rem 0 0;
}

.ttb-associated-order--compact .ttb-order-payment-status,
.ttb-associated-order--compact .ttb-record__order-total {
    justify-self: auto;
}

.ttb-associated-order--compact h4 {
    width: 100%;
    font: 600 1rem/1.35 var(--dc-sans);
    text-align: center;
}

.ttb-associated-order--compact h4 a {
    display: block;
    text-align: center;
}

.ttb-ticket-conversation {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.ttb-ticket-conversation__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--dc-navy);
}

.ttb-ticket-conversation__heading h3 {
    margin: 0;
    color: var(--dc-navy);
    font: 600 1.4rem/1.2 var(--dc-serif);
}

.ttb-ticket-conversation__heading .ttb-status {
    flex: none;
}

.ttb-chat-thread {
    max-height: none;
    overflow: visible;
    gap: 8px;
    padding: 8px 0 22px;
}

.ttb-chat-message {
    display: grid;
    width: fit-content;
    max-width: min(80%, 620px);
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ttb-chat-message--owner {
    align-self: flex-end;
    width: fit-content;
    max-width: min(80%, 620px);
    grid-template-columns: minmax(0, 1fr);
}

.ttb-chat-message--operator {
    align-self: flex-start;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
}

.ttb-chat-message__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    grid-column: 1;
    grid-row: 1 / span 2;
    place-items: center;
    align-self: start;
    border-radius: 50%;
    background: var(--dc-navy);
}

.ttb-chat-message__avatar img {
    width: 17px;
    height: 1.3rem;
    object-fit: contain;
}

.ttb-chat-message__body {
    grid-column: 1;
    grid-row: 1;
    padding: 14px 18px;
    border: 1px solid var(--dc-line);
    border-radius: 14px 14px 14px 3px;
    background: #fff;
    color: var(--dc-ink);
    font-size: 16px;
    line-height: 1.5;
}

.ttb-chat-message--owner .ttb-chat-message__body {
    border-color: var(--dc-navy);
    border-radius: 14px 14px 3px 14px;
    background: var(--dc-navy);
    color: #fff;
}

.ttb-chat-message--operator .ttb-chat-message__body,
.ttb-chat-message--operator .ttb-chat-message__header,
.ttb-chat-message--operator .ttb-chat-attachments {
    grid-column: 2;
}

.ttb-chat-message__header {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    color: var(--dc-muted);
    font: 500 13px/1.3 var(--dc-sans);
}

.ttb-chat-message__header strong {
    color: var(--dc-ink);
    font-weight: 600;
}

.ttb-chat-message--owner .ttb-chat-message__header {
    justify-content: flex-end;
}

.ttb-chat-message--operator .ttb-chat-message__header {
    justify-content: flex-start;
}

.ttb-chat-message__header time {
    color: var(--dc-muted);
}

.ttb-chat-message__header time::before {
    margin-inline: .25rem;
    content: "·";
}

.ttb-chat-date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 6px;
    color: var(--dc-muted);
    font: 500 .72rem/1.2 var(--dc-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ttb-chat-date::before,
.ttb-chat-date::after {
    height: 1px;
    flex: 1;
    background: var(--dc-line);
    content: "";
}

.ttb-chat-message--owner .ttb-chat-attachments {
    grid-column: 1;
    justify-content: flex-end;
}

.ttb-chat-message--operator .ttb-chat-attachments {
    grid-row: 3;
}

.ttb-chat-attachment-error {
    width: min(440px, calc(100% - 2rem));
    max-width: none;
    padding: 1.5rem;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
    background: #fff;
    color: var(--dc-ink);
    box-shadow: 0 24px 70px rgb(0 37 74 / 18%);
}

.ttb-chat-attachment-error::backdrop {
    background: rgb(0 20 44 / 55%);
}

.ttb-chat-attachment-error h2 {
    margin: 0;
    color: var(--dc-navy);
    font: 600 1.2rem/1.3 var(--dc-serif);
}

.ttb-chat-attachment-error p {
    margin: .75rem 0 1.25rem;
    color: var(--dc-ink);
}

.ttb-chat-attachment-error button {
    display: flex;
    margin-left: auto;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachment-error .ttb-button {
    border: 1px solid #00254a !important;
    background: #00254a !important;
    color: #fff !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachment-error .ttb-button:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachment-error .ttb-button:focus-visible {
    border-color: #064b83 !important;
    background: #064b83 !important;
    color: #fff !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachments {
    gap: .4rem;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachments a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .56rem;
    border-radius: 6px;
    font-size: .8rem;
    line-height: 1.3;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-attachments a::before {
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 11-8.5 8.5a6 6 0 0 1-8.5-8.5L13 2a4 4 0 0 1 5.7 5.7l-9 9a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 11-8.5 8.5a6 6 0 0 1-8.5-8.5L13 2a4 4 0 0 1 5.7 5.7l-9 9a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ttb-chat-reply {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 2rem -1rem 0;
    padding: 3.6rem 1rem 1rem;
    border: 0;
    background: linear-gradient(180deg, rgb(238 241 247 / 0%), var(--dc-mist) 38px);
    pointer-events: none;
}

.ttb-chat-reply__box {
    position: relative;
    display: grid;
    gap: .25rem;
    padding: .45rem .55rem .55rem;
    border: 1px solid var(--dc-navy);
    border-radius: 0 12px 12px 12px;
    background: #fff;
    box-shadow: none;
    pointer-events: auto;
}

.ttb-chat-reply__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .65rem;
    pointer-events: none;
}

.ttb-chat-back-top.ttb-button {
    display: none;
    width: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
    margin-bottom: .55rem;
    padding: .5rem;
    pointer-events: auto;
}

.ttb-chat-back-top svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (min-width: 1001px) {
    .ttb-chat-back-top.ttb-button {
        display: inline-flex;
    }
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-reply__box > label {
    position: absolute;
    bottom: 100%;
    left: -1px;
    display: flex;
    min-height: 1.9rem;
    align-items: center;
    margin: 0;
    padding: .35rem .75rem;
    border-radius: 6px 6px 0 0;
    background: var(--dc-navy);
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
    visibility: visible;
}

.ttb-chat-reply textarea {
    min-height: 3rem;
    padding: .65rem 1rem .5rem 3rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    resize: none;
    overflow-y: hidden;
}

.ttb-chat-reply textarea:focus-visible {
    outline: 2px solid #2b6fd6;
    outline-offset: -2px;
}

.ttb-chat-reply__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    min-height: 2.8rem;
    align-items: center;
}

.ttb-chat-reply__actions > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 .5rem;
}

.ttb-chat-reply__file-label {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    margin: 0;
    color: var(--dc-navy);
}

.ttb-chat-reply__file-label svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ttb-chat-reply input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ttb-chat-reply__hint {
    grid-column: 2;
    position: static;
    max-width: none;
    margin: 0;
    color: var(--dc-muted) !important;
    font-size: .72rem;
    text-align: left;
}

.ttb-chat-reply__hint kbd {
    padding: .08rem .25rem;
    border: 1px solid var(--dc-line);
    border-radius: 3px;
    font: 500 .7rem/1.2 var(--dc-mono);
}

.ttb-chat-reply__actions > .ttb-button {
    min-width: 6.5rem;
    min-height: 2.8rem;
    gap: .55rem;
    border-radius: 3px;
    font-weight: 700;
}

.ttb-chat-reply__file-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttb-chat-reply__file-list li {
    max-width: 100%;
    padding: .35rem .65rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--dc-line);
    border-radius: 6px;
    background: var(--dc-paper);
    color: var(--dc-ink);
    font: 500 .78rem/1.3 var(--dc-sans);
}

.ttb-chat-notice {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .ttb-account-seal {
        top: 5rem;
        right: -.5rem;
        width: 130px;
    }

    .ttb-dashboard-next {
        min-height: 0;
        flex-direction: column;
    }

    .ttb-dashboard-next__content {
        padding: 1.15rem;
    }

    .ttb-dashboard-next__timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: .65rem;
    }

    .ttb-dashboard-next__leaf {
        display: flex;
        width: 100%;
        min-height: 3rem;
        align-items: center;
        justify-content: flex-start;
        gap: .65rem;
        padding: .45rem 1.15rem;
    }

    .ttb-dashboard-next__leaf strong {
        margin-top: 0;
        font-size: 1.8rem;
    }

    .ttb-record {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .4rem .8rem;
        padding-inline: .2rem;
    }

    .ttb-record--order {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ttb-record--order .ttb-record__date {
        grid-column: 1;
        grid-row: 1;
    }

    .ttb-record--order .ttb-record__main {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ttb-record--order .ttb-record__order-aside {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-record--order .ttb-order-payment-status,
    .ttb-record--order .ttb-record__order-total {
        justify-self: start;
    }

    .ttb-record--order .ttb-record__order-total {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ttb-record__date {
        grid-column: 1;
        grid-row: 1;
    }

    .ttb-record .ttb-record__main {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ttb-record__arrow {
        display: none;
    }

    .ttb-status {
        grid-column: 2;
        grid-row: 1;
    }

    .ttb-profile-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .ttb-profile-index {
        position: static;
    }

    .ttb-profile-index ol {
        display: flex;
        overflow-x: auto;
        border: 0;
        border-bottom: 1px solid var(--dc-line);
        scrollbar-width: thin;
    }

    .ttb-profile-index li {
        flex: none;
    }

    .ttb-profile-index a {
        padding: .65rem .75rem;
        border-bottom: 2px solid transparent;
        border-left: 0;
        transform: none;
        white-space: nowrap;
    }

    .ttb-profile-index a:hover,
    .ttb-profile-index a:focus-visible {
        border-bottom-color: var(--dc-rust);
        border-left-color: transparent;
    }

    .ttb-record-details > div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .ttb-record-toolbar {
        align-items: stretch;
    }

    .ttb-record-search {
        max-width: none;
    }

    .ttb-record-filters {
        display: flex;
        width: 100%;
    }

    .ttb-record-filters label {
        flex: 1;
    }

    .ttb-record-filters span {
        width: 100%;
        padding-inline: .5rem;
    }

    .ttb-ticket-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-ticket-detail__header,
    .ttb-ticket-summary--request,
    .ttb-ticket-related,
    .ttb-ticket-event,
    .ttb-ticket-booking,
    .ttb-ticket-orders,
    .ttb-ticket-summary--attachments,
    .ttb-ticket-conversation {
        grid-column: 1;
        grid-row: auto;
    }

    .ttb-ticket-related {
        padding: 1rem;
    }

    .ttb-chat-reply__hint {
        display: none;
    }
}

@media (max-width: 1000px) {
    .ttb-ticket-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-ticket-detail__header,
    .ttb-ticket-summary--request,
    .ttb-ticket-related,
    .ttb-ticket-conversation {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 900px) {
    .ttb-order-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "panel"
            "ledger";
    }

    .ttb-order-layout--checkout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "ledger"
            "panel";
    }

    .ttb-order-layout--processing {
        grid-template-areas: "ledger";
    }
}

@media (max-width: 700px) {
    .ttb-ticket-detail__header {
        grid-row: 1;
    }

    .ttb-ticket-summary--request {
        grid-row: 2;
    }

    .ttb-ticket-conversation {
        grid-row: 4;
    }

    .ttb-ticket-related {
        grid-row: 3;
    }

    .ttb-account-meta {
        flex-wrap: wrap;
    }

    .ttb-account-breadcrumb {
        max-width: 100%;
        font-size: .75rem;
    }

    .ttb-account-breadcrumb > :nth-child(-n + 2) {
        display: none;
    }

    .ttb-account-user {
        flex-wrap: nowrap;
    }

    .ttb-account-user__name {
        display: none;
    }

    .ttb-account-logout {
        font-size: 0;
    }

    .ttb-account-logout::before {
        content: "↪";
        font-size: 1rem;
    }
}

.ttb-ticket-booking {
    padding: 1.35rem;
}

.ttb-booking-context-notice {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px dashed #aebdcb;
    border-radius: 8px;
    background: #f7f9fb;
}

.ttb-booking-context-notice h2 {
    margin: 0 0 .4rem;
    color: var(--dc-navy);
    font: 600 1.3rem/1.25 var(--dc-serif);
}

.ttb-booking-context-notice p {
    margin: 0;
    color: var(--dc-muted);
}

.ttb-booking-context-notice a {
    display: inline-flex;
    gap: .5rem;
    margin-top: .65rem;
    color: var(--dc-navy);
    font-weight: 700;
    text-decoration: none;
}

.ttb-booking-context-notice a span {
    color: var(--dc-rust);
}

.ttb-booking-eyebrow {
    margin-bottom: .45rem;
    color: var(--dc-rust);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dcs-account .ttb-ticket-booking h3 {
    margin: 0 0 .4rem;
    color: var(--dc-navy);
    font: 600 1.45rem/1.15 var(--dc-serif);
}

.ttb-booking-quick {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dc-line);
}

.ttb-booking-quick__date {
    margin: 0 0 .65rem;
    color: var(--dc-muted);
    font-size: .8rem;
    font-weight: 600;
}

.ttb-booking-quick__slots {
    display: grid;
    max-width: 42rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.ttb-booking-quick__slot {
    min-height: 2.4rem;
    padding: .35rem .5rem;
    border-radius: 4px;
    font: 500 .85rem/1 var(--dc-mono);
    cursor: pointer;
}

.ttb-booking-open {
    width: 100%;
    margin-top: 1rem;
}

.ttb-booking-dialog {
    position: fixed;
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: min(860px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--dc-ink);
    box-shadow: 0 40px 90px -30px rgb(0 18 40 / 70%);
}

.ttb-booking-dialog[open] {
    animation: ttb-booking-dialog-in .3s ease-out both;
}

.ttb-booking-dialog::backdrop {
    background: rgb(0 20 44 / 66%);
}

@keyframes ttb-booking-dialog-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ttb-booking-dialog__header {
    position: relative;
    padding: 1.4rem 1.75rem 1.15rem;
    border-bottom: 1px solid #e4e8ef;
}

.ttb-booking-dialog__header h2 {
    max-width: calc(100% - 56px);
    margin: 0;
    color: var(--dc-navy);
    font: italic 600 1.8rem/1.15 var(--dc-serif);
}

.ttb-booking-dialog__header > p:not(.ttb-booking-step-label) {
    margin-top: .2rem;
    color: var(--dc-muted);
    font-size: .95rem;
}

.ttb-booking-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 3px;
    cursor: pointer;
}

.ttb-booking-close:focus-visible,
.ttb-booking-day:focus-visible,
.ttb-booking-slot:focus-visible,
.ttb-booking-quick__slot:focus-visible,
.ttb-booking-week__nav:focus-visible {
    outline-offset: 2px;
}

.ttb-booking-close svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.ttb-booking-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 1rem;
}

.ttb-booking-progress span {
    height: 6px;
    border-radius: 1px;
    background: #dfe4ec;
}

.ttb-booking-progress span:first-child,
.ttb-booking-progress.is-complete span {
    background: #c0563a;
}

.ttb-booking-step-label {
    margin: .55rem 0 0;
    color: var(--dc-muted);
    font: 500 .72rem/1.2 var(--dc-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ttb-booking-dialog .ttb-booking-form {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.ttb-booking-step {
    padding: 1.25rem 1.75rem 1.5rem;
}

.ttb-booking-step[hidden] {
    display: none !important;
}

.ttb-booking-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding-block: 2rem 2.5rem;
    text-align: center;
}

.ttb-booking-complete__icon {
    width: 7rem;
    height: 8rem;
    fill: var(--dc-navy);
}

.ttb-booking-complete__icon path + path {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
}

.ttb-booking-complete > h3,
.ttb-booking-complete > p {
    margin: 0;
}

.ttb-booking-complete > p {
    color: var(--dc-navy);
    font: 500 1.1rem/1.35 var(--dc-serif);
    text-transform: capitalize;
}

.ttb-booking-complete > .ttb-button {
    margin-top: .75rem;
}

.ttb-events-async {
    display: grid;
    gap: 1.5rem;
}

.ttb-events-history {
    min-width: 0;
}

.ttb-events-panel[aria-busy="true"] {
    min-height: 8rem;
}

.ttb-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 8rem;
    color: var(--dc-muted);
}

.ttb-events-history .ttb-panel-loading {
    min-height: 5rem;
}

.ttb-panel-spinner {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    border: 3px solid var(--dc-line);
    border-top-color: var(--dc-navy);
    border-radius: 50%;
    animation: ttb-events-spin .75s linear infinite;
}

@keyframes ttb-events-spin {
    to {
        transform: rotate(360deg);
    }
}

.ttb-events-upcoming {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(17rem, .9fr);
    align-items: start;
    gap: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid var(--dc-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 28px -22px rgb(0 37 74 / 40%);
}

.ttb-events-feature-loading,
.ttb-events-upcoming--error > [data-events-upcoming] {
    grid-column: 1 / -1;
}

.ttb-event-feature,
.ttb-event-feature__aside {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ttb-events-upcoming > .ttb-event-feature__aside {
    border-left: 1px solid var(--dc-line);
}

.ttb-events-upcoming--booking > [data-events-action] {
    grid-column: 1 / -1;
    border-left: 0;
}

.ttb-events-upcoming--booking [data-events-action] > .ttb-ticket-booking {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ttb-event-feature__main {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}

.ttb-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: 1.25rem .75rem;
    background: var(--dc-navy);
    color: #dbe6f2;
    font: 600 .68rem/1 var(--dc-mono);
    letter-spacing: .08em;
    text-align: center;
}

.ttb-event-date strong {
    color: #fff;
    font: 500 3.2rem/1 var(--dc-serif);
    letter-spacing: -.03em;
}

.ttb-event-feature__content {
    position: relative;
    min-width: 0;
    padding: 1.4rem 1.5rem;
}

.ttb-event-feature__status {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: .3rem .55rem;
    background: var(--dc-sky);
    color: var(--dc-navy);
    font: 600 .65rem/1 var(--dc-mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ttb-event-feature__content h2 {
    margin: 0 8rem .55rem 0;
    color: var(--dc-navy);
    font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 var(--dc-serif);
}

.ttb-event-feature__content > p {
    margin: 0;
    color: var(--dc-muted);
}

.ttb-event-feature__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.25rem;
    margin-top: .9rem;
}

.ricorsi-ttb-user-area .ttb-event-feature__actions .ttb-button,
.ricorsi-ttb-user-area .ttb-event-feature__actions .ttb-button:visited {
    gap: .6rem;
    border-color: #064b83 !important;
    background: #064b83 !important;
    color: #fff !important;
}

.ricorsi-ttb-user-area .ttb-event-feature__actions .ttb-button:hover,
.ricorsi-ttb-user-area .ttb-event-feature__actions .ttb-button:focus-visible {
    border-color: #064b83 !important;
    background: #fff !important;
    color: #064b83 !important;
}

.ttb-event-ticket-link {
    color: var(--dc-navy);
    font-weight: 600;
    text-decoration: none;
}

.ttb-event-ticket-link span {
    color: var(--dc-rust);
}

.ttb-event-timeline {
    display: grid;
    grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 6rem;
    padding: 1rem 1.5rem;
    border-top: 1px dashed var(--dc-line);
    background: #f7f9fb;
}

.ttb-event-timeline > div:first-child {
    display: grid;
    gap: .2rem;
}

.ttb-event-timeline > div:first-child strong {
    color: var(--dc-navy);
    font-family: var(--dc-serif);
}

.ttb-event-timeline > div:first-child span {
    color: var(--dc-muted);
    font-size: .85rem;
}

.ttb-event-timeline__track {
    position: relative;
    display: grid;
    gap: .35rem;
    padding-top: 1.35rem;
}

.ttb-event-timeline__now {
    position: absolute;
    top: 0;
    z-index: 1;
    transform: translateX(-50%);
    padding: .2rem .35rem;
    background: var(--dc-rust);
    color: #fff;
    font: 600 .62rem/1 var(--dc-mono);
}

.ttb-event-timeline__now::after {
    position: absolute;
    top: 100%;
    left: 50%;
    height: 2rem;
    border-left: 2px solid var(--dc-rust);
    content: "";
}

.ttb-event-timeline__track[data-state="before"] .ttb-event-timeline__now::after {
    border-left-style: dashed;
}

.ttb-event-timeline__track[data-edge="start"] .ttb-event-timeline__now {
    transform: translateX(0);
}

.ttb-event-timeline__bar {
    position: relative;
    height: 1.4rem;
    border-bottom: 1px solid var(--dc-ink);
    background-image:
        repeating-linear-gradient(90deg, transparent 0 calc(8.3333% - 1px), #8794a6 calc(8.3333% - 1px) 8.3333%),
        linear-gradient(to right, transparent 0 var(--session-start), var(--dc-navy) var(--session-start) 100%);
    background-repeat: repeat-x, no-repeat;
    background-position: left top, left bottom;
    background-size: 100% 7px, 100% 13px;
}

.ttb-event-timeline__labels {
    position: relative;
    height: 1.25rem;
    margin-top: .35rem;
    color: var(--dc-muted);
    font: 500 .65rem/1 var(--dc-mono);
}

.ttb-event-timeline__labels > * {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.ttb-event-timeline__labels > :first-child {
    left: 0;
}

.ttb-event-timeline__labels > strong {
    left: var(--session-start);
    transform: translateX(-50%);
}

.ttb-event-timeline__labels > :last-child {
    right: 0;
}

.ttb-event-timeline__labels strong {
    color: var(--dc-navy);
}

.ttb-event-feature__aside {
    padding: 1.25rem;
}

.ttb-event-feature__aside p {
    margin: 0 0 1.25rem;
    color: var(--dc-muted);
    line-height: 1.55;
}

.ttb-event-feature__aside .ttb-button {
    width: 100%;
}

.ttb-event-detail {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
    align-items: start;
    gap: 2rem;
}

.ttb-event-join,
.ttb-event-info {
    overflow: hidden;
    border: 1px solid var(--dc-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 28px -22px rgb(0 37 74 / 40%);
}

.ttb-event-join__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1.15rem;
}

.ttb-event-join__header h2,
.ttb-event-info h2 {
    margin: 0;
    color: var(--dc-navy);
    font: 600 1.45rem/1.2 var(--dc-serif);
}

.ttb-event-join__header p {
    margin: .55rem 0 0;
    color: var(--dc-muted);
    line-height: 1.5;
}

.ttb-event-join__header .ttb-status {
    flex: none;
}

.ttb-event-join .ttb-event-timeline {
    margin: 0;
}

.ttb-event-timeline__labels > .ttb-event-timeline__midpoint {
    left: 33.3333%;
    right: auto;
    transform: translateX(-50%);
}

.ttb-event-join__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px dashed var(--dc-line);
}

.ttb-event-join__actions .ttb-button,
.ttb-event-join__actions .ttb-button:visited {
    border-color: #064b83 !important;
    background: #064b83 !important;
    color: #fff !important;
}

.ttb-event-join__actions .ttb-button:hover,
.ttb-event-join__actions .ttb-button:focus-visible {
    border-color: #064b83 !important;
    background: #fff !important;
    color: #064b83 !important;
}

.ttb-event-join__actions .ttb-button:disabled {
    border-color: #e4e8ef !important;
    background: #e4e8ef !important;
    color: #6b7789 !important;
    cursor: not-allowed;
}

.ttb-event-join__notice {
    flex: 1 0 100%;
    margin: 0;
    color: #6b7789;
}

.ttb-event-join__back {
    color: var(--dc-navy);
    font-weight: 600;
    text-decoration: none;
}

.ttb-event-join__back:hover,
.ttb-event-join__back:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ttb-event-info {
    padding: 1.4rem 1.5rem;
}

.ttb-event-info h2 {
    margin-bottom: .85rem;
    font-size: 1.25rem;
}

.ttb-event-info dl {
    margin: 0;
}

.ttb-event-info dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px dotted var(--dc-line);
}

.ttb-event-info dt {
    color: var(--dc-muted);
}

.ttb-event-info dd {
    margin: 0;
    color: var(--dc-ink);
    font: 500 1rem/1.35 var(--dc-serif);
    text-align: right;
}

.ttb-event-info a {
    color: var(--dc-navy);
}

.ttb-event-info > p {
    margin: 1rem 0 0;
    color: var(--dc-muted);
    line-height: 1.5;
}

.ttb-events-history-title {
    margin: 2rem 0 .75rem;
    color: var(--dc-navy);
    font: 600 1.55rem/1.2 var(--dc-serif);
}

@media (max-width: 700px) {
    .ttb-event-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .ttb-events-upcoming {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-events-upcoming > .ttb-event-feature__aside {
        border-top: 1px solid var(--dc-line);
        border-left: 0;
    }

    .ttb-events-upcoming--booking > [data-events-action] {
        border-top: 0;
    }

    .ttb-event-feature__main {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .ttb-event-date {
        padding-inline: .5rem;
    }

    .ttb-event-date strong {
        font-size: 2.5rem;
    }

    .ttb-event-feature__content {
        padding: 1.1rem;
    }

    .ttb-event-feature__content h2 {
        margin-right: 0;
        padding-top: 2rem;
    }

    .ttb-event-feature__status {
        top: .8rem;
        right: .8rem;
    }

    .ttb-event-timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
        padding: 1rem;
    }
}

.ttb-booking-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
    color: var(--dc-ink);
}

.ttb-booking-day-head > div {
    display: flex;
    gap: .35rem;
}

.ttb-booking-week__nav {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    min-width: 0;
    min-height: 0;
    place-items: center;
    padding: 0;
    border-radius: 3px;
    font: 400 1.35rem/1 var(--dc-sans);
}

.ttb-booking-week__nav:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.ttb-booking-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .45rem;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-width: 0;
    min-height: 4.9rem;
    align-content: center;
    justify-items: center;
    align-items: center;
    gap: .25rem;
    padding: .35rem .15rem;
    border-radius: 5px;
    font-size: .7rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: normal;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day > span {
    display: block;
    width: 100%;
    font-size: .68rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day > strong {
    display: block;
    grid-column: 1;
    font: 500 1.45rem/1 var(--dc-serif);
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:disabled {
    cursor: not-allowed;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:not(:disabled)[aria-pressed="true"],
.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-slot[aria-pressed="true"] {
    border-color: #00254a;
    background-color: #fff;
    color: #00254a;
    position: relative;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:not(:disabled)[aria-pressed="true"] > *,
.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-slot[aria-pressed="true"] {
    color: #00254a;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day[aria-pressed="true"]::after,
.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-slot[aria-pressed="true"]::after {
    position: absolute;
    top: .2rem;
    right: .35rem;
    content: "✓";
    font: 700 .75rem/1 sans-serif;
}

.ttb-booking-slots-title {
    margin: .35rem 0 .25rem;
    padding-top: .75rem;
    border-top: 1px solid #e4e8ef;
    color: var(--dc-ink);
    font-size: .98rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ttb-booking-slot-group {
    margin: .6rem 0 .35rem;
    color: var(--dc-muted);
    font: 500 .72rem/1 var(--dc-mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ttb-booking-slot-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .45rem;
}

.ttb-booking-slot {
    position: relative;
    min-height: 3rem;
    padding: .45rem .6rem;
    border-radius: 5px;
    font: 500 .95rem/1 var(--dc-mono);
    cursor: pointer;
}

.ttb-booking-no-slots,
.ttb-booking-loading,
.ttb-booking-error {
    margin: .7rem 0;
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-booking-error {
    color: #8d211b;
}

.ttb-booking-selection {
    min-height: 1.4rem;
    margin: .75rem 0 0;
    color: var(--dc-muted);
    font-size: .9rem;
}

.ttb-booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e4e8ef;
}

.ttb-booking-footer > span {
    color: var(--dc-muted);
    font-size: .85rem;
}

.ttb-booking-footer .ttb-button:disabled {
    border-color: #e4e8ef;
    background: #e4e8ef;
    color: #6b7789;
    border: 1px dashed #c3cbd7;
    background: #f7f9fb;
    color: #8490a0;
    cursor: not-allowed;
}

.ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:disabled > * {
    color: #8490a0;
}

[data-booking-step="1"] .ttb-booking-footer > .ttb-button:not(:disabled) {
    border-color: var(--dc-rust);
    background: var(--dc-navy);
}

[data-booking-step="2"] .ttb-booking-footer > [data-booking-submit] {
    border-color: var(--dc-navy);
    background: var(--dc-navy);
}

.ttb-booking-step > h3 {
    margin: 0 0 .8rem;
    color: var(--dc-navy);
    font: 600 1.35rem/1.2 var(--dc-serif);
}

.ttb-booking-recap {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 1.1rem;
    padding: .9rem 1rem;
    border-radius: 5px;
    background: #e3ecf8;
    color: var(--dc-navy);
}

.ttb-booking-recap > svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ttb-booking-recap > span {
    display: grid;
    gap: .1rem;
}

.ttb-booking-recap strong {
    color: var(--dc-navy);
    font: 600 1rem/1.3 var(--dc-serif);
    text-transform: capitalize;
}

.ttb-booking-recap small {
    color: var(--dc-muted);
    font-size: .82rem;
}

.ttb-booking-channel {
    min-width: 0;
    margin: 1.15rem 0 1rem;
    padding: 0;
    border: 0;
}

.ttb-booking-channel legend {
    margin-bottom: .5rem;
    color: var(--dc-ink);
    font-size: .88rem;
    font-weight: 700;
}

.ttb-booking-channel__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.ttb-booking-channel__options > label {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.ttb-booking-channel__options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ttb-booking-channel__card {
    display: flex;
    min-height: 5.7rem;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid #aebdcb;
    border-radius: 5px;
    background: #fff;
    color: var(--dc-ink);
    transition: background-color .15s, border-color .15s;
}

.ttb-booking-channel__card > svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
    margin-top: .1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ttb-booking-channel__card > span {
    display: grid;
    gap: .2rem;
}

.ttb-booking-channel__card strong {
    font-size: .9rem;
    line-height: 1.3;
}

.ttb-booking-channel__card small {
    color: var(--dc-muted);
    font-size: .8rem;
    line-height: 1.35;
}

.ttb-booking-channel__options input:checked + .ttb-booking-channel__card {
    border: 2px solid var(--dc-navy);
    background: #e3ecf8;
}

.ttb-booking-channel__options input:focus-visible + .ttb-booking-channel__card {
    outline: 2px solid #2b6fd6;
    outline-offset: 2px;
}

.ttb-booking-phone-field {
    margin: 0 0 1rem;
}

.ttb-booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.ttb-booking-fields .ttb-profile-field {
    min-width: 0;
    margin: 0;
}

.ttb-booking-fields textarea {
    min-height: 3rem;
}

.ttb-booking-fields input[readonly] {
    border-style: dashed;
    background: #f7f9fb;
}

.ttb-booking-step .ttb-profile-field + .ttb-profile-field {
    margin-top: 1rem;
}

.ttb-booking-step textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #a9b4c4;
    border-radius: 4px;
    background: #fff;
    color: var(--dc-ink);
    font: inherit;
    resize: vertical;
}

@media (max-width: 600px) {
    .ttb-ticket-booking {
        padding: 1.1rem;
    }

    .ttb-booking-quick__slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ttb-booking-dialog {
        width: 100%;
        max-height: calc(100dvh - 10px);
        margin: auto 0 0;
        border-radius: 15px 15px 0 0;
    }

    .ttb-booking-dialog__header {
        padding: 1.1rem 1.1rem .9rem;
    }

    .ttb-booking-dialog__header h2 {
        font-size: 1.5rem;
    }

    .ttb-booking-step {
        padding: 1rem 1.1rem 1.2rem;
    }

    .ttb-booking-channel__options,
    .ttb-booking-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttb-booking-days {
        gap: .25rem;
    }

    .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day {
        min-height: 4.2rem;
        font-size: .6rem;
    }

    .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day > span {
        font-size: .58rem;
    }

    .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day > strong {
        font-size: 1.2rem;
    }

    .ttb-booking-slot-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ttb-booking-footer {
        flex-wrap: wrap;
    }

    .ttb-booking-footer .ttb-button {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttb-booking-dialog[open] {
        animation: none;
    }
}

.ricorsi-ttb-user-area .dcs-account .ttb-account-mast h1 {
    color: #fff !important;
    font: 500 clamp(2.1rem, 5vw, 3.4rem)/1.08 var(--dc-serif) !important;
}

.ricorsi-ttb-user-area .dcs-account :is(h2, h3, h4) {
    font-weight: 600 !important;
}

.ricorsi-ttb-user-area .dcs-account h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
}

.ricorsi-ttb-user-area .dcs-account :is(h3, h4) {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
}

.ricorsi-ttb-user-area .dcs-account button,
.ricorsi-ttb-user-area .dcs-account :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    border-color: var(--dc-line) !important;
    border-radius: 3px !important;
}

.ricorsi-ttb-user-area .dcs-account button {
    border: 1px solid transparent !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open,
.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open:focus-visible {
    box-sizing: border-box !important;
    width: 2.8rem !important;
    min-width: 2.8rem !important;
    height: 2.8rem !important;
    min-height: 2.8rem !important;
    padding: 0 !important;
    border: 1px solid var(--dc-navy) !important;
    border-radius: 3px !important;
    background: var(--dc-navy) !important;
    color: #fff !important;
    transform: none !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open:focus-visible {
    outline: 3px solid rgb(6 75 131 / 25%);
    outline-offset: 2px;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open svg {
    display: block;
    flex: none;
    margin: 0;
}

.ricorsi-ttb-user-area .dcs-account :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    background-color: #fff !important;
    color: var(--dc-ink) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-button--secondary {
    border-color: var(--dc-navy) !important;
    background: #fff !important;
    color: var(--dc-navy) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools {
    display: flex;
    flex-wrap: wrap;
    align-content: end;
    align-items: center;
    gap: .5rem;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools [data-fiscal-suggestion],
.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools small {
    flex-basis: 100%;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools [data-fiscal-suggestion] {
    margin: 0;
}

.ricorsi-ttb-user-area .dcs-account #ttb-profile-identita .ttb-fiscal-code-tools {
    display: contents;
}

.ricorsi-ttb-user-area .dcs-account #ttb-profile-identita [data-fiscal-suggestion],
.ricorsi-ttb-user-area .dcs-account #ttb-profile-identita [data-fiscal-use] {
    grid-column: 1 / -1;
    justify-self: start;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools .ttb-button {
    align-self: end;
    box-sizing: border-box;
    height: 2.8rem;
    min-height: 2.8rem;
    width: auto !important;
    justify-self: start;
    border-color: var(--dc-navy) !important;
    background: #fff !important;
    color: var(--dc-navy) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools .ttb-button:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-tools .ttb-button:focus-visible {
    background: var(--dc-sky) !important;
    color: var(--dc-navy) !important;
}

.ricorsi-ttb-user-area .dcs-account [hidden] {
    display: none !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day,
.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-slot {
    border: 1px solid var(--dc-line) !important;
    background: #fff !important;
    color: var(--dc-navy) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:disabled {
    background: #f1f3f6 !important;
    color: #8490a0 !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day:not(:disabled)[aria-pressed="true"],
.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-slot[aria-pressed="true"] {
    border-color: var(--dc-navy) !important;
    background: var(--dc-navy) !important;
    color: #fff !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking dialog.ttb-booking-dialog button.ttb-booking-day[aria-pressed="true"] > * {
    color: #fff !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-booking-footer .ttb-button:disabled {
    border-color: #c3cbd7 !important;
    background: #f7f9fb !important;
    color: #667386 !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking .ttb-booking-quick__slot {
    border: 1px solid var(--dc-line) !important;
    background: #fff !important;
    color: var(--dc-navy) !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking .ttb-booking-quick__slot:hover,
.ricorsi-ttb-user-area .dcs-account .ttb-ticket-booking .ttb-booking-quick__slot:focus-visible {
    border-color: var(--dc-navy) !important;
    background: var(--dc-navy) !important;
    color: #fff !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-chat-reply__hint {
    right: 7.5rem;
    max-width: calc(100% - 10rem);
    white-space: normal;
}

.ricorsi-ttb-user-area .dcs-account :is(.ttb-record, .ttb-record__main, .ttb-record--order, .ttb-record__order-aside, .ttb-associated-order) {
    min-width: 0;
}

.ricorsi-ttb-user-area .dcs-account .ttb-record__products,
.ricorsi-ttb-user-area .dcs-account .ttb-associated-order h4 {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .ttb-cancel-event-dialog__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .ttb-cancel-event-dialog__actions .ttb-button {
        width: 100%;
        min-width: 0;
        padding-inline: .35rem;
        font-size: .78rem;
        white-space: nowrap;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-masthead {
        padding-bottom: .65rem;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-profile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-order-payment-form .ttb-profile-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-order-payment-form .ttb-order-checkout__amount--final,
    .ricorsi-ttb-user-area .dcs-account .ttb-order-payment-form [data-payment-submit] {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-profile-actions [data-profile-notice] {
        grid-column: 1 / -1;
        grid-row: 1;
        order: -1;
        margin: 0;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-profile-actions [data-profile-reset],
    .ricorsi-ttb-user-area .dcs-account .ttb-profile-actions [data-profile-submit] {
        width: 100%;
        min-width: 0;
        padding-inline: .4rem;
        font-size: .8rem;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--dc-line);
        background: #fff;
        box-shadow: 0 -8px 24px rgb(0 37 74 / 10%);
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs__select-label {
        display: none;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs ul {
        display: flex;
        width: 100%;
        margin: 0;
        padding: .15rem .25rem;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs li {
        flex: 1 1 20%;
        min-width: 0;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a,
    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"] {
        display: flex;
        min-height: 3rem;
        flex-direction: column;
        justify-content: center;
        gap: .15rem;
        padding: .15rem .1rem;
        border-radius: 4px;
        background: transparent !important;
        color: var(--dc-muted) !important;
        font-size: .62rem;
        line-height: 1.1;
        text-align: center;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs__label-full {
        display: none;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs__label-mobile {
        display: inline;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"] {
        color: var(--dc-navy) !important;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a:hover,
    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a:focus-visible,
    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a:active {
        background: transparent !important;
        color: var(--dc-muted) !important;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"]:hover,
    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"]:focus-visible,
    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a[aria-current="page"]:active {
        background: transparent !important;
        color: var(--dc-navy) !important;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-tabs a svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-account-sheet {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-chat-reply {
        bottom: calc(var(--ttb-mobile-nav-height) + env(safe-area-inset-bottom));
        margin-inline: 0;
    }

    .ricorsi-ttb-user-area .dcs-account .ttb-profile-actions {
        bottom: calc(var(--ttb-mobile-nav-height) + env(safe-area-inset-bottom) + .5rem);
        margin-inline: 0;
    }

    body:has(.ricorsi-ttb-user-area) .iubenda-tp-btn {
        position: fixed !important;
        top: max(.5rem, env(safe-area-inset-top)) !important;
        right: max(.5rem, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 45 !important;
        display: block !important;
    }
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: ttb-page-out .18s ease-in both;
}

::view-transition-new(root) {
    animation: ttb-page-in .24s ease-out both;
}

::view-transition-old(root):active-view-transition-type(forward) {
    animation: ttb-page-forward-out .2s ease-in both;
}

::view-transition-new(root):active-view-transition-type(forward) {
    animation: ttb-page-forward-in .28s ease-out both;
}

::view-transition-old(root):active-view-transition-type(back) {
    animation: ttb-page-back-out .2s ease-in both;
}

::view-transition-new(root):active-view-transition-type(back) {
    animation: ttb-page-back-in .28s ease-out both;
}

::view-transition-old(root):active-view-transition-type(open) {
    animation: ttb-page-open-out .16s ease-in both;
}

::view-transition-new(root):active-view-transition-type(open) {
    animation: ttb-page-open-in .28s ease-out both;
}

::view-transition-old(root):active-view-transition-type(close) {
    animation: ttb-page-close-out .2s ease-in both;
}

::view-transition-new(root):active-view-transition-type(close) {
    animation: ttb-page-close-in .28s ease-out both;
}

@keyframes ttb-page-out {
    to { opacity: 0; }
}

@keyframes ttb-page-in {
    from { opacity: 0; }
}

@keyframes ttb-page-forward-out {
    to { opacity: 0; translate: -1.25rem 0; }
}

@keyframes ttb-page-forward-in {
    from { opacity: 0; translate: 1.25rem 0; }
}

@keyframes ttb-page-back-out {
    to { opacity: 0; translate: 1.25rem 0; }
}

@keyframes ttb-page-back-in {
    from { opacity: 0; translate: -1.25rem 0; }
}

@keyframes ttb-page-open-out {
    to { opacity: 0; scale: .98; }
}

@keyframes ttb-page-open-in {
    from { opacity: 0; scale: 1.02; }
}

@keyframes ttb-page-close-out {
    to { opacity: 0; scale: 1.02; }
}

@keyframes ttb-page-close-in {
    from { opacity: 0; scale: .98; }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: .01ms;
    }

    .ttb-account-seal .s {
        animation: none;
        stroke-dashoffset: 0;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: .01ms !important;
    }
}

.ricorsi-ttb-user-area .ttb-button:is(:hover, :focus-visible, :active),
.ricorsi-ttb-user-area .dcs-account .ttb-button:is(:hover, :focus-visible, :active) {
    border-color: #001a35 !important;
    background: #001a35 !important;
    color: #fff !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-field__label {
    color: var(--dc-navy) !important;
    font-weight: 700 !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open {
    display: block !important;
    position: relative !important;
}

.ricorsi-ttb-user-area .dcs-account .ttb-fiscal-code-open svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.ricorsi-ttb-user-area .ttb-button:disabled:is(:hover, :focus-visible, :active),
.ricorsi-ttb-user-area .dcs-account .ttb-button:disabled:is(:hover, :focus-visible, :active) {
    border-color: #001a35 !important;
    background: #001a35 !important;
    color: #fff !important;
    opacity: 1;
}

.ricorsi-ttb-user-area .ttb-booking-close:is(:hover, :focus-visible, :active) {
    border-color: #001a35 !important;
    background: #001a35 !important;
    color: #fff !important;
    opacity: 1;
}
