/* POFO ai_22: componenti runtime condivisi e integrazioni CRM. */
.site-cart-badge{display:inline-flex;min-width:18px;height:18px;align-items:center;justify-content:center;border-radius:50%;background:#ff214f;color:#fff;font-size:10px;vertical-align:middle}
.ai-cookie-preference-link{border:0;background:transparent;color:inherit;text-decoration:underline;padding:0;margin-left:12px}
.portfolio-item figcaption{transform:translateY(100%);transition:transform .25s ease}.portfolio-item:hover figcaption{transform:translateY(0)}
@media (max-width:767px){.portfolio-item figcaption{position:static!important;transform:none}.top-space{margin-top:70px}}

/* Scelte dei form: checkbox e radio allineati a sinistra con la relativa etichetta. */
.contact-form .ai-form-choice {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.contact-form .ai-form-choice > input[type="checkbox"],
.contact-form .ai-form-choice > input[type="radio"] {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 3px 0 0;
}

.contact-form .ai-form-choice > span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Cookie consent e chat sito condivisi. */
.ai-cookie-banner,
.ai-cookie-overlay,
.ai-cookie-preference-link {
  font-family: inherit;
}

/* Unidigita: pagina login dinamica. */
.ai22-auth-page {
  min-height: 520px;
  padding: 80px 0;
  background: #f5f5f5;
}

.ai22-auth-card {
  padding: 48px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
}

.ai22-auth-card h2 {
  margin: 0 0 12px;
  color: #232323;
  font-weight: 700;
  text-align: center;
}

.ai22-auth-intro {
  margin: 0 0 28px;
  color: #6f6f6f;
  text-align: center;
}

.ai22-auth-form {
  display: grid;
  gap: 22px;
}

.ai22-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #232323;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ai22-auth-field .form-control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #232323;
}

.ai22-auth-field .form-control:focus {
  border-color: #232323;
  box-shadow: none;
}

.ai22-auth-options {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.ai22-auth-remember {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: #555;
  cursor: pointer;
}

.ai22-auth-remember input {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #000;
}

.ai22-auth-options a,
.ai22-auth-register a {
  color: #232323;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai22-auth-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.ai22-auth-submit:hover,
.ai22-auth-submit:focus {
  border-color: #ff214f;
  background: #ff214f;
  color: #fff !important;
}

.ai22-auth-submit-secondary {
  margin-top: -10px;
  border-color: #232323;
  background: #fff;
  color: #232323 !important;
}

.ai22-auth-register {
  margin: 2px 0 0;
  color: #6f6f6f;
  text-align: center;
}

.ai22-auth-form .form-messages {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dedede;
  color: #232323;
}

.ai22-auth-form .form-messages.form-error {
  border-color: #ff214f;
  background: rgba(255, 33, 79, .06);
}

@media (max-width: 767px) {
  .ai22-auth-page {
    min-height: 0;
    padding: 48px 0;
  }

  .ai22-auth-card {
    padding: 30px 22px;
  }

  .ai22-auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Unidigita: pagina carrello dinamica. */
.ai22-cart-page {
  min-height: 420px;
  padding: 80px 0;
  background: #fff;
}

.ai22-cart-heading {
  margin-bottom: 48px;
}

.ai22-cart-heading h1 {
  margin: 0;
  color: #232323;
  font-weight: 700;
}

.ai22-cart-group + .ai22-cart-group {
  margin-top: 48px;
}

.ai22-cart-group-title {
  margin: 0 0 24px;
  color: #232323;
  font-size: 24px;
  line-height: 1.25;
}

.ai22-cart-items {
  display: grid;
  gap: 16px;
}

.ai22-cart-item {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) minmax(360px, auto);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid #e8e8e8;
  background: #fff;
}

.ai22-cart-image:empty {
  display: none;
}

.ai22-cart-image {
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.ai22-cart-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai22-cart-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.ai22-cart-main h3 a {
  color: #232323;
}

.ai22-cart-description {
  margin: 0 0 12px;
  color: #6f6f6f;
}

.ai22-cart-gift-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  background: #232323;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.ai22-cart-fields {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.ai22-row-display-field > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.ai22-row-display-field strong {
  color: #232323;
  font-size: 12px;
}

.ai22-row-display-field span {
  color: #6f6f6f;
  font-size: 13px;
}

.ai22-row-option-props {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  padding-left: 10px;
  border-left: 2px solid #ff214f;
}

.ai22-row-option-props > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  max-width: 260px;
}

.ai22-cart-text-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #232323;
  background: transparent;
  color: #232323;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ai22-cart-meta {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(126px, auto) minmax(112px, auto) 40px;
  gap: 14px;
  align-items: start;
}

.ai22-cart-meta-no-prices {
  grid-template-columns: minmax(126px, auto) 40px;
}

.ai22-cart-value > span {
  display: block;
  margin-bottom: 7px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.ai22-cart-value strong {
  color: #232323;
}

.ai22-cart-price-breakdown {
  display: grid;
  gap: 4px;
}

.ai22-cart-price-breakdown em,
.ai22-cart-tax {
  display: block;
  color: #777;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.ai22-cart-qty {
  display: grid;
  grid-template-columns: 36px 48px 36px;
  width: 120px;
  height: 40px;
  border: 1px solid #dedede;
}

.ai22-cart-qty button,
.ai22-cart-qty input {
  height: 38px;
  border: 0;
  background: #fff;
  color: #232323;
  text-align: center;
}

.ai22-cart-qty button {
  cursor: pointer;
  font-size: 18px;
}

.ai22-cart-qty input {
  width: 48px;
  border-right: 1px solid #dedede;
  border-left: 1px solid #dedede;
  font-weight: 700;
}

.ai22-cart-qty-static {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
}

.ai22-cart-remove {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #f2f2f2;
  color: #232323;
  cursor: pointer;
}

.ai22-cart-remove:hover {
  background: #232323;
  color: #fff;
}

.ai22-cart-summary {
  width: min(100%, 430px);
  margin: 24px 0 0 auto;
  padding: 24px;
  background: #f5f5f5;
}

.ai22-summary-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 8px 0;
  color: #555;
}

.ai22-summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #d8d8d8;
  color: #232323;
  font-size: 18px;
}

.ai22-cart-checkout {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 22px;
  border: 1px solid #000;
  background: #000;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.ai22-cart-checkout:hover {
  border-color: #ff214f;
  background: #ff214f;
}

.ai22-cart-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 28px;
  background: #f5f5f5;
  text-align: center;
}

.ai22-cart-empty > i {
  color: #232323;
  font-size: 38px;
}

.ai22-cart-empty p {
  margin: 0;
  color: #555;
  font-size: 16px;
}

.ai22-cart-empty .ai22-cart-checkout {
  max-width: 280px;
}

.ai22-cart-page .d-none {
  display: none !important;
}

@media (max-width: 1199px) {
  .ai22-cart-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .ai22-cart-image {
    width: 100px;
  }

  .ai22-cart-meta {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
  }
}

@media (max-width: 767px) {
  .ai22-cart-page {
    padding: 52px 0;
  }

  .ai22-cart-heading {
    margin-bottom: 32px;
  }

  .ai22-cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .ai22-cart-image {
    width: 82px;
  }

  .ai22-cart-main h3 {
    font-size: 17px;
  }

  .ai22-cart-meta,
  .ai22-cart-meta-no-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai22-cart-remove {
    justify-self: end;
  }

  .ai22-cart-summary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ai22-cart-meta,
  .ai22-cart-meta-no-prices {
    grid-template-columns: 1fr;
  }

  .ai22-cart-remove {
    justify-self: start;
  }
}

.ai-cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 10024;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(48, 123, 196, 0.2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(39, 71, 96, 0.16);
  color: #274760;
}

.ai-cookie-banner-copy h2 {
  margin: 0 0 8px;
  color: #274760;
  font-size: 22px;
  line-height: 1.25;
}

.ai-cookie-banner-copy p,
.ai-cookie-panel-intro {
  margin: 0;
  color: rgba(39, 71, 96, 0.76);
  font-size: 15px;
  line-height: 1.55;
}

.ai-cookie-banner-copy a,
.ai-cookie-panel-intro a {
  color: #307bc4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-cookie-banner-actions,
.ai-cookie-panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ai-cookie-btn,
.ai-cookie-close,
.ai-cookie-preference-link {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-cookie-btn {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
}

.ai-cookie-btn:hover,
.ai-cookie-preference-link:hover {
  transform: translateY(-1px);
}

.ai-cookie-btn-primary {
  border-color: #307bc4;
  background: #307bc4;
  color: #fff;
}

.ai-cookie-btn-primary:hover {
  background: #274760;
  color: #fff;
}

.ai-cookie-btn-muted {
  border-color: rgba(39, 71, 96, 0.16);
  background: #eef5fb;
  color: #274760;
}

.ai-cookie-btn-ghost {
  border-color: rgba(48, 123, 196, 0.35);
  background: #fff;
  color: #274760;
}

.ai-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 31, 46, 0.48);
}

.ai-cookie-panel {
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: min(720px, 90vh);
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(13, 31, 46, 0.24);
  color: #274760;
  overflow: auto;
}

.ai-cookie-panel-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ai-cookie-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #307bc4;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-cookie-panel-header h2 {
  margin: 0;
  color: #274760;
  font-size: 34px;
  line-height: 1.15;
}

.ai-cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef5fb;
  color: #274760;
  font-size: 24px;
  line-height: 1;
}

.ai-cookie-close:hover {
  background: #274760;
  color: #fff;
}

.ai-cookie-categories {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.ai-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(48, 123, 196, 0.16);
  border-radius: 12px;
  background: #f7fbff;
}

.ai-cookie-category-body {
  display: grid;
  gap: 6px;
}

.ai-cookie-category-body strong {
  color: #274760;
  font-size: 18px;
}

.ai-cookie-category-body span {
  color: rgba(39, 71, 96, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.ai-cookie-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-cookie-toggle {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(39, 71, 96, 0.28);
}

.ai-cookie-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(39, 71, 96, 0.2);
  transition: transform 0.2s ease;
}

.ai-cookie-category input:checked + .ai-cookie-toggle {
  background: #307bc4;
}

.ai-cookie-category input:checked + .ai-cookie-toggle::after {
  transform: translateX(26px);
}

.ai-cookie-category input:disabled + .ai-cookie-toggle {
  background: #6fb18a;
}

.cs_banner.cs_style_2.ai_banner_cta_compact {
  padding: 36px 7% 36px 42%;
  background-position: center center;
}

.ai_banner_cta_compact .cs_section_heading {
  max-width: 560px;
}

.ai_banner_cta_compact p {
  font-size: 18px;
  line-height: 1.45;
}

.ai_banner_cta_compact_btn {
  margin-top: 18px;
}

.ai_banner_cta_compact_docs {
  max-width: 560px;
  margin-top: 18px;
}

@media (max-width: 1199px) {
  .cs_banner.cs_style_2.ai_banner_cta_compact {
    padding: 34px 5% 34px 36%;
  }
}

.ai-site-chat,
.ai-site-chat * {
  box-sizing: border-box;
}

.ai-site-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 10020;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: min(280px, calc(100vw - 48px));
  padding: 12px 18px 12px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ai-site-chat-launcher-bg, #274760);
  box-shadow: 0 16px 40px rgba(39, 71, 96, 0.22);
  color: var(--ai-site-chat-launcher-text, #fff);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ai-site-chat-badge {
  position: absolute;
  top: -14px;
  right: -12px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #ff2f45;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(125, 19, 31, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 47, 69, 0.18), 0 12px 28px rgba(239, 68, 68, 0.46);
}

.ai-site-chat-badge[hidden] {
  display: none;
}

.ai-site-chat-launcher:hover {
  background: var(--ai-site-chat-launcher-hover-bg, #307bc4);
  box-shadow: 0 20px 48px rgba(48, 123, 196, 0.28);
  transform: translateY(-2px);
}

.ai-site-chat-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ai-site-chat-launcher-icon-bg, rgba(255, 255, 255, 0.16));
  color: var(--ai-site-chat-launcher-icon-color, #fff);
  font-size: 17px;
}

.ai-site-chat-launcher-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.ai-site-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10025;
  background: rgba(13, 31, 46, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.ai-site-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10030;
  display: flex;
  flex-direction: column;
  width: min(480px, 94vw);
  height: 100vh;
  height: 100dvh;
  background: #f7fbff;
  box-shadow: -26px 0 70px rgba(13, 31, 46, 0.2);
  color: #274760;
  transform: translateX(104%);
  transition: transform 0.28s ease;
}

.ai-site-chat.is-open .ai-site-chat-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ai-site-chat.is-open .ai-site-chat-panel {
  transform: translateX(0);
}

.ai-site-chat.is-open .ai-site-chat-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.ai-site-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--ai-site-chat-header-bg, #fff);
  border-bottom: 1px solid rgba(48, 123, 196, 0.14);
}

.ai-site-chat-header h2,
.ai-site-chat-header .ai-site-chat-title {
  margin: 0;
  color: #274760;
  font-size: 24px;
  line-height: 1.2;
}

.cs_social_links_wrap .cs_social_links_title {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.ai-site-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef5fb;
  color: #274760;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ai-site-chat-close:hover {
  background: #274760;
  color: #fff;
}

.ai-site-chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-site-chat-empty {
  margin: auto;
  color: rgba(39, 71, 96, 0.68);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-line;
  text-align: center;
}

.ai-site-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.ai-site-chat-message.is-own {
  align-items: flex-end;
}

.ai-site-chat-bubble {
  max-width: min(320px, 82%);
  padding: 12px 14px;
  border: 1px solid rgba(48, 123, 196, 0.16);
  border-radius: 16px 16px 16px 5px;
  background: var(--ai-site-chat-bubble-in-bg, #fff);
  box-shadow: 0 8px 24px rgba(39, 71, 96, 0.08);
  color: var(--ai-site-chat-bubble-in-text, #274760);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ai-site-chat-message.is-own .ai-site-chat-bubble {
  border-color: var(--ai-site-chat-bubble-out-bg, #307bc4);
  border-radius: 16px 16px 5px 16px;
  background: var(--ai-site-chat-bubble-out-bg, #307bc4);
  color: var(--ai-site-chat-bubble-out-text, #fff);
}

.ai-site-chat-bubble a {
  display: inline-flex;
  margin-top: 8px;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-site-chat-attachment-image,
.ai-site-chat-attachment-file,
.ai-site-chat-attachment-audio {
  display: block;
  margin-top: 8px;
}

.ai-site-chat-attachment-image img {
  display: block;
  width: auto;
  max-width: min(260px, 76vw);
  max-height: 260px;
  border-radius: 10px;
  object-fit: contain;
}

.ai-site-chat-attachment-audio {
  display: grid;
  gap: 6px;
}

.ai-site-chat-attachment-audio audio {
  width: min(260px, 72vw);
  max-width: 100%;
}

.ai-site-chat-attachment-file {
  max-width: min(260px, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-site-chat-meta {
  max-width: min(320px, 82%);
  color: rgba(39, 71, 96, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.ai-site-chat-message.is-own .ai-site-chat-meta {
  text-align: right;
}

.ai-site-chat-guest {
  margin: 0 16px 14px;
  padding: 16px;
  border: 1px solid rgba(48, 123, 196, 0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(39, 71, 96, 0.1);
}

.ai-site-chat-typing {
  min-height: 18px;
  margin: 0 16px 10px;
  color: rgba(39, 71, 96, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.ai-site-chat-typing[hidden] {
  display: none;
}

.ai-site-chat-guest-title {
  color: #274760;
  font-size: 16px;
  font-weight: 800;
}

.ai-site-chat-guest-text {
  margin-top: 3px;
  color: rgba(39, 71, 96, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.ai-site-chat-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ai-site-chat-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #274760;
  font-size: 12px;
  font-weight: 800;
}

.ai-site-chat-grid input,
.ai-site-chat-composer textarea {
  width: 100%;
  border: 1px solid rgba(48, 123, 196, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #274760;
  font: inherit;
  outline: none;
}

.ai-site-chat-grid input {
  min-height: 42px;
  padding: 9px 11px;
}

.ai-site-chat-grid input:focus,
.ai-site-chat-composer textarea:focus {
  border-color: #307bc4;
  box-shadow: 0 0 0 3px rgba(48, 123, 196, 0.12);
}

.ai-site-chat-guest-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.ai-site-chat-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--ai-site-chat-action-bg, #274760);
  color: var(--ai-site-chat-action-text, #fff);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.ai-site-chat-composer {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(48, 123, 196, 0.14);
  background: #fff;
}

.ai-site-chat-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.ai-site-chat-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  position: relative;
}

.ai-site-chat-tools-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-site-chat-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 13px;
  resize: none;
}

.ai-site-chat-composer textarea:disabled {
  background: #eef5fb;
  color: rgba(39, 71, 96, 0.58);
  cursor: not-allowed;
}

.ai-site-chat-send {
  flex: 0 0 auto;
}

.ai-site-chat-composer button,
.ai-site-chat-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ai-site-chat-action-bg, #307bc4);
  color: var(--ai-site-chat-action-text, #fff);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ai-site-chat-tool {
  border: 1px solid rgba(48, 123, 196, 0.18);
  background: #f3f8fd;
  color: var(--ai-site-chat-action-bg, #274760);
}

.ai-site-chat-tools-toggle.ai-site-chat-tool {
  display: none;
}

.ai-site-chat-send {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.ai-site-chat-tool.is-recording {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.ai-site-chat-composer button:hover,
.ai-site-chat-tool:hover {
  background: var(--ai-site-chat-action-bg, #274760);
  color: var(--ai-site-chat-action-text, #fff);
  transform: translateY(-1px);
}

.ai-site-chat-tool.is-recording,
.ai-site-chat-tool.is-recording:hover,
.ai-site-chat-tool.is-recording:focus {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.ai-site-chat-composer.is-sending {
  opacity: 0.72;
  pointer-events: none;
}

.ai-site-chat-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(39, 71, 96, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.ai-site-chat-attachment[hidden] {
  display: none;
}

.ai-site-chat-attachment span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-site-chat-attachment button {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #307bc4;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-site-chat-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 31, 46, 0.62);
}

.ai-site-chat-camera-modal.is-open {
  display: flex;
}

.ai-site-chat-camera-panel {
  width: min(760px, 96vw);
  overflow: hidden;
  border-radius: 14px;
  background: #0b1220;
  box-shadow: 0 26px 70px rgba(13, 31, 46, 0.34);
}

.ai-site-chat-camera-panel video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.ai-site-chat-camera-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}

.ai-site-chat-camera-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  background: #eef5fb;
  color: #274760;
  font-weight: 800;
}

.ai-site-chat-camera-actions button:last-child {
  background: #307bc4;
  color: #fff;
}

.ai-site-chat-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .cs_banner.cs_style_2.ai_banner_cta_compact {
    padding: 32px 30px 32px 28%;
  }
}

@media (max-width: 767px) {
  .cs_banner.cs_style_2.ai_banner_cta_compact {
    padding: 30px 24px;
  }
}

.ai-cookie-preference-link {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 10px 14px;
  border: 1px solid rgba(48, 123, 196, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(39, 71, 96, 0.14);
  color: #274760;
  font-size: 13px;
}

@media (max-width: 991px) {
  .ai-cookie-banner {
    grid-template-columns: 1fr;
  }

  .ai-cookie-banner-actions,
  .ai-cookie-panel-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .ai-cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 18px;
  }

  .ai-cookie-banner-actions,
  .ai-cookie-panel-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ai-cookie-btn {
    width: 100%;
  }

  .ai-cookie-overlay {
    padding: 12px;
  }

  .ai-cookie-panel {
    padding: 20px;
  }

  .ai-cookie-panel-header h2 {
    font-size: 28px;
  }

  .ai-cookie-category {
    grid-template-columns: 1fr;
  }

  .ai-site-chat-launcher {
    right: 16px;
    bottom: 96px;
    min-height: 50px;
    padding: 10px 15px 10px 10px;
    font-size: 14px;
  }

  .ai-site-chat-panel {
    width: 100vw;
  }

  .ai-site-chat-header {
    padding: 18px;
  }

  .ai-site-chat-messages {
    padding: 16px;
  }

  .ai-site-chat-composer {
    padding: 12px 12px 14px;
  }

  .ai-site-chat-composer-row {
    gap: 6px;
  }

  .ai-site-chat-tools {
    gap: 4px;
  }

  .ai-site-chat-tools-toggle.ai-site-chat-tool {
    display: inline-flex;
  }

  .ai-site-chat-tools-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(48, 123, 196, 0.14);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(39, 71, 96, 0.16);
  }

  .ai-site-chat-tools.is-tools-open .ai-site-chat-tools-menu {
    display: flex;
  }

  .ai-site-chat-tool {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .ai-site-chat-send {
    width: 40px;
    height: 40px;
  }

  .ai-site-chat-composer textarea {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 15px;
  }

  .ai-site-chat-bubble,
  .ai-site-chat-meta {
    max-width: 88%;
  }
}

/* Unidigita: riduzione proporzionale del 30% riservata a h1 e h2. */
h1 {font-size:49px; line-height:49px}
h2 {font-size:38.5px; line-height:42px}
:is(h1,h2).title-large {font-size:70px; line-height:66.5px}
:is(h1,h2).title-extra-large {font-size:91px; line-height:84px}
:is(h1,h2).text-extra-small {font-size:7.7px; line-height:9.8px}
.text-small {font-size:12px; line-height:20px}
:is(h1,h2).text-medium {font-size:11.2px; line-height:16.1px}
:is(h1,h2).text-large {font-size:12.6px; line-height:18.2px}
:is(h1,h2).text-extra-large {font-size:14px; line-height:18.2px}
.ai-cookie-banner-copy h2 {font-size:15.4px; line-height:19.25px}
.ai-cookie-panel-header h2 {font-size:23.8px; line-height:27.37px}

@media (max-width:1199px) {
  h1 {font-size:45.5px; line-height:45.5px}
  h2 {font-size:35px; line-height:38.5px}
  :is(h1,h2).title-large {font-size:59.5px; line-height:59.5px}
}

@media (max-width:991px) {
  h1 {font-size:39.9px; line-height:40.6px}
  h2 {font-size:30.1px; line-height:33.6px}
  :is(h1,h2).title-large {font-size:49px; line-height:45.5px}
  :is(h1,h2).title-extra-large {font-size:70px; line-height:66.5px}
}

@media (max-width:767px) {
  h1 {font-size:25.9px; line-height:29.4px}
  h2 {font-size:21px; line-height:25.2px}
  :is(h1,h2).title-large {font-size:26.6px; line-height:30.8px}
  :is(h1,h2).title-extra-large {font-size:24.5px; line-height:28px}
  .page-title-large h1 {font-size:24.5px; line-height:24.5px}
  .page-title-medium h1 {font-size:17.5px; line-height:21px}
  .ai-cookie-panel-header h2 {font-size:19.6px; line-height:22.54px}
}
.ai-hp { position: absolute; top: -9999px; left: -9999px; width: 1px; height: 0; overflow: hidden; }

.js-cart-row-dynamic-fields .ai12-row-display-field > div > span {
  white-space: pre-line;
}

.campo-dinamico[data-campo-id="189"] .form-control {
  margin-bottom: 6px;
}
/* Unidigita: ordini cliente, calendario e valutazioni operazioni. */
.ai22-my-orders-page {
    padding: 70px 0;
}

.ai22-my-orders-intro {
    max-width: 720px;
    margin: 12px auto 0;
    color: #7E7E7E;
}

.ai22-my-orders-chat-edit-texts {
    display: none;
}

.ai22-my-orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.ai22-my-orders-filter {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #ececec;
    border-radius: 8px;
    color: #253D4E;
    font-weight: 700;
}

.ai22-my-orders-filter.is-active {
    background: #3BB77E;
    border-color: #3BB77E;
    color: #fff;
}

.ai22-my-orders-year-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ai22-my-orders-year-form label,
.ai22-my-orders-head span,
.ai22-my-orders-fields span {
    color: #7E7E7E;
    font-size: 13px;
    text-transform: uppercase;
}

.ai22-my-orders-year-form .form-control {
    min-width: 190px;
    height: 44px;
}

.ai22-my-orders-section-title {
    margin: 0 0 18px;
    color: #253D4E;
    font-size: 26px;
}

.ai22-my-orders-card {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.ai22-my-orders-head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
    background: #f7f8f9;
}

.ai22-my-orders-head strong,
.ai22-my-orders-fields strong {
    display: block;
    color: #253D4E;
}

.ai22-my-orders-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 5px;
    background: #3BB77E;
    color: #fff;
    font-weight: 700;
    font-style: normal;
}

.ai22-my-orders-body {
    padding: 22px;
}

.ai22-my-orders-card-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.ai22-my-orders-chat-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid #3BB77E;
    border-radius: 6px;
    background: #3BB77E;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai22-my-orders-chat-open:hover {
    border-color: #29A56C;
    background: #29A56C;
    color: #fff;
    transform: translateY(-1px);
}

.ai22-my-orders-chat-open i {
    font-size: 16px;
}

.ai22-my-orders-operation-sections {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.ai22-my-orders-operation-section {
    padding-bottom: 16px;
    border-bottom: 1px solid #ececec;
}

.ai22-my-orders-operation-section:last-child {
    padding-bottom: 0;
}

.ai22-my-orders-collection-title {
    margin: 0 0 14px;
    padding: 0 0 10px 12px;
    border-bottom: 1px solid #edf1f3;
    border-left: 2px solid #3BB77E;
    color: #253D4E;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.ai22-my-orders-collection-desc {
    margin: -6px 0 14px;
    color: #7E7E7E;
    font-size: 14px;
}

.ai22-my-orders-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 20px;
}

.ai22-my-orders-operation-section .ai22-my-orders-fields {
    margin-bottom: 0;
}

.ai22-my-orders-payment {
    display: grid;
    gap: 14px;
    max-width: 520px;
    margin: 12px 0 0 auto;
    padding: 16px 18px;
    border: 1px solid #dfeee7;
    border-radius: 8px;
    background: #fbfdfc;
}

.ai22-my-orders-payment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ai22-my-orders-payment-head h4 {
    margin: 0;
    color: #253D4E;
    font-size: 17px;
    font-weight: 800;
}

.ai22-my-orders-payment-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #FFF3CD;
    color: #8A5A00;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.ai22-my-orders-payment-status-paid {
    background: #DFF7EA;
    color: #1f7a4d;
}

.ai22-my-orders-payment-status-not-required {
    background: #edf1f3;
    color: #51636f;
}

.ai22-my-orders-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.ai22-my-orders-payment-grid span {
    display: block;
    margin-bottom: 4px;
    color: #7E7E7E;
    font-size: 12px;
    text-transform: uppercase;
}

.ai22-my-orders-payment-grid strong {
    display: block;
    color: #253D4E;
    font-size: 15px;
}

.ai22-my-orders-payment-method strong {
    font-size: 16px;
}

.ai22-my-orders-payment-method,
.ai22-my-orders-payment-instructions {
    grid-column: 1 / -1;
}

.ai22-my-orders-payment-instructions {
    padding-top: 12px;
    border-top: 1px solid #e4ece8;
}

.ai22-my-orders-payment-instructions p {
    margin: 0;
    color: #253D4E;
    line-height: 1.6;
}

.ai22-my-orders-payment-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #e4ece8;
}

.ai22-my-orders-payment-open span {
    color: #7E7E7E;
    font-weight: 700;
}

.ai22-my-orders-payment-open a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 5px;
    background: #3BB77E;
    color: #fff;
    font-weight: 800;
}

.ai22-my-orders-payment-open a:hover {
    background: #29A56C;
    color: #fff;
}

.ai22-my-orders-repeat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.ai22-my-orders-repeat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #3BB77E;
    border-radius: 6px;
    background: #fff;
    color: #267C56;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    transition: all .2s ease;
}

.ai22-my-orders-repeat-btn:hover {
    background: #3BB77E;
    color: #fff;
}

.ai22-my-orders-repeat-btn:disabled {
    cursor: default;
    opacity: .75;
}

.ai22-my-orders-repeat-status {
    min-height: 18px;
    color: #7E7E7E;
    font-size: 13px;
    font-weight: 700;
}

.ai22-my-orders-repeat-status.is-error {
    color: #D63638;
}

.ai22-my-orders-repeat-status.is-success {
    color: #267C56;
}

.ai22-my-orders-fields .is-wide {
    grid-column: 1 / -1;
}

.ai22-my-orders-fields strong {
    white-space: pre-line;
}

.ai22-my-orders-rows {
    display: grid;
    gap: 18px;
}

.ai22-my-orders-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.ai22-my-orders-row-main h4 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ai22-my-orders-row-main h4 a {
    color: #253D4E;
}

.ai22-my-orders-row-main p {
    margin: 0;
    color: #7E7E7E;
}

.ai22-my-orders-row-price {
    display: grid;
    gap: 7px;
    min-width: 260px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7f8f9;
    color: #253D4E;
}

.ai22-my-orders-row-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
}

.ai22-my-orders-row-price-line span,
.ai22-my-orders-row-tax {
    color: #7E7E7E;
    font-size: 13px;
    line-height: 1.35;
}

.ai22-my-orders-row-price-line strong {
    color: #253D4E;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ai22-my-orders-row-discount strong {
    max-width: 150px;
    color: #7E7E7E;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
}

.ai22-my-orders-row-total-net {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.ai22-my-orders-row-tax {
    display: block;
    text-align: right;
}

.ai22-my-orders-row-fields {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.ai22-my-orders-conteggi {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin: 22px 0 0 auto;
    padding: 16px 18px;
    border: 1px solid #e4ece8;
    border-radius: 8px;
    background: #fbfdfc;
}

.ai22-my-orders-conteggi-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.ai22-my-orders-conteggi-row span {
    color: #7E7E7E;
}

.ai22-my-orders-conteggi-row strong {
    color: #253D4E;
    font-size: 16px;
}

.ai22-my-orders-conteggi-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #e4ece8;
}

.ai22-my-orders-conteggi-total span,
.ai22-my-orders-conteggi-total strong {
    color: #253D4E;
    font-weight: 800;
}

.ai22-my-orders-chat-modal-open {
    overflow: hidden;
}

.ai22-my-orders-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ai22-my-orders-chat-modal.is-open {
    display: flex;
}

.ai22-my-orders-chat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 61, 78, 0.56);
    backdrop-filter: blur(5px);
}

.ai22-my-orders-chat-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #f7f8f9;
    box-shadow: 0 28px 80px rgba(37, 61, 78, 0.26);
}

.ai22-my-orders-chat-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
    color: #253D4E;
    font-size: 20px;
    line-height: 1;
}

.ai22-my-orders-chat-form {
    margin: 30px;
    padding: 20px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
}

.ai22-my-orders-chat-label {
    display: block;
    margin: 0 48px 8px 0;
    color: #253D4E;
    font-size: 20px;
    font-weight: 800;
}

.ai22-my-orders-chat-form p {
    margin: 0 0 14px;
    color: #7E7E7E;
    line-height: 1.45;
}

.ai22-my-orders-chat-form textarea {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
    color: #253D4E;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.ai22-my-orders-chat-form textarea:focus {
    outline: none;
    border-color: rgba(59, 183, 126, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.14);
}

.ai22-my-orders-chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.ai22-my-orders-chat-status {
    min-height: 20px;
    color: #7E7E7E;
    font-size: 13px;
    font-weight: 700;
}

.ai22-my-orders-chat-actions button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 18px;
    border: 0;
    border-radius: 6px;
    background: #3BB77E;
    color: #fff;
    font-weight: 800;
}

.ai22-my-orders-chat-actions button:disabled {
    opacity: 0.62;
    cursor: wait;
}

@media (max-width: 991px) {
    .ai22-my-orders-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai22-my-orders-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ai22-my-orders-toolbar,
    .ai22-my-orders-year-form {
        align-items: stretch;
        flex-direction: column;
    }

    .ai22-my-orders-year-form .form-control {
        width: 100%;
    }

    .ai22-my-orders-head,
    .ai22-my-orders-fields,
    .ai22-my-orders-payment-grid,
    .ai22-my-orders-row {
        grid-template-columns: 1fr;
    }

    .ai22-my-orders-row-price {
        min-width: 0;
        width: 100%;
    }

    .ai22-my-orders-payment-head,
    .ai22-my-orders-payment-open {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai22-my-orders-conteggi {
        max-width: none;
        margin-left: 0;
    }

    .ai22-my-orders-payment {
        max-width: none;
        margin-left: 0;
    }

    .ai22-my-orders-repeat {
        align-items: stretch;
    }

    .ai22-my-orders-repeat-btn {
        width: 100%;
    }

    .ai22-my-orders-chat-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ai22-my-orders-chat-open,
    .ai22-my-orders-chat-actions button {
        width: 100%;
    }

    .ai22-my-orders-chat-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .ai22-my-orders-chat-form {
        margin: 16px;
    }
}

.ai22-customer-calendar-page {
    padding: 70px 0;
    background: #f7f8f9;
}

.customer-calendar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.customer-calendar-head .text-center {
    text-align: left !important;
}

.customer-calendar-intro {
    max-width: 740px;
    margin: 12px 0 0;
    color: #7E7E7E;
}

.customer-calendar-edit-texts {
    display: none;
}

.customer-calendar-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 420px;
}

.customer-calendar-types span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    color: #253D4E;
    font-size: 13px;
    font-weight: 700;
}

.customer-calendar-shell,
.customer-calendar-empty {
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.customer-calendar-empty {
    padding: 34px;
    color: #253D4E;
    text-align: center;
}

.customer-calendar-widget {
    padding: 22px;
}

.customer-calendar-widget .fc {
    color: #253D4E;
    font-family: inherit;
}

.customer-calendar-widget .fc .fc-toolbar-title {
    color: #253D4E;
    font-size: 26px;
    font-weight: 800;
    text-transform: capitalize;
}

.customer-calendar-widget .fc .fc-button {
    border: 0;
    border-radius: 999px;
    background: #F2F3F4;
    color: #253D4E;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.customer-calendar-widget .fc .fc-button:hover,
.customer-calendar-widget .fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #3BB77E;
    color: #fff;
}

.customer-calendar-widget .fc .fc-daygrid-day.fc-day-today,
.customer-calendar-widget .fc .fc-timegrid-col.fc-day-today {
    background: rgba(59, 183, 126, 0.08);
}

.customer-calendar-widget .fc .fc-event {
    border: 0;
    border-radius: 8px;
    padding: 2px;
    background: #3BB77E;
    color: #fff;
}

.customer-calendar-widget .fc .fc-daygrid-event-dot {
    display: none;
}

.customer-calendar-event {
    min-width: 0;
    padding: 3px 5px;
    line-height: 1.25;
}

.customer-calendar-event-main,
.customer-calendar-event-products {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-calendar-event-main {
    font-size: 12px;
    font-weight: 800;
}

.customer-calendar-event-products {
    font-size: 11px;
    opacity: 0.88;
}

.customer-calendar-modal-open {
    overflow: hidden;
}

.customer-calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.customer-calendar-modal.is-open {
    display: flex;
}

.customer-calendar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 61, 78, 0.58);
    backdrop-filter: blur(4px);
}

.customer-calendar-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #f7f8f9;
    box-shadow: 0 28px 80px rgba(37, 61, 78, 0.26);
}

.customer-calendar-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid #ececec;
    border-radius: 50%;
    background: #fff;
    color: #253D4E;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.customer-calendar-modal-content {
    max-height: min(86vh, 860px);
    overflow: auto;
}

.customer-calendar-modal-loading,
.customer-calendar-modal-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 48px;
    color: #253D4E;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.customer-calendar-modal-error {
    color: #A32121;
}

.customer-calendar-detail {
    color: #253D4E;
}

.customer-calendar-detail-hero {
    padding: 34px 72px 28px 34px;
    border-bottom: 1px solid #ececec;
    background: linear-gradient(135deg, #fff 0%, #f0fff7 100%);
}

.customer-calendar-detail-hero h2 {
    margin: 0;
    color: #253D4E;
    font-size: 30px;
    font-weight: 900;
}

.customer-calendar-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.customer-calendar-detail-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #253D4E;
    font-size: 13px;
    font-weight: 800;
}

.customer-calendar-detail-section,
.customer-calendar-detail-products,
.customer-calendar-detail-empty-block {
    margin: 24px 34px;
}

.customer-calendar-detail-section,
.customer-calendar-detail-product {
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.customer-calendar-detail-section-head {
    padding: 18px 20px 0;
}

.customer-calendar-detail-section-head h3,
.customer-calendar-detail-products > h3,
.customer-calendar-detail-product-title {
    margin: 0;
    color: #253D4E;
    font-size: 18px;
    font-weight: 900;
}

.customer-calendar-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 20px;
}

.customer-calendar-detail-field {
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    background: #f7f8f9;
}

.customer-calendar-detail-label {
    margin-bottom: 6px;
    color: #7E7E7E;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-calendar-detail-value {
    overflow-wrap: anywhere;
    color: #253D4E;
    font-size: 15px;
    font-weight: 800;
}

.customer-calendar-detail-value.is-status {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
}

.customer-calendar-detail-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-calendar-detail-file {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 8px;
    background: #fff;
    color: #253D4E;
    font-size: 13px;
    font-weight: 800;
}

.customer-calendar-detail-file.is-image {
    padding: 0;
    overflow: hidden;
}

.customer-calendar-detail-file img {
    display: block;
    width: 116px;
    height: 76px;
    object-fit: cover;
}

.customer-calendar-detail-product {
    margin-top: 14px;
}

.customer-calendar-detail-product-title {
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
    font-size: 15px;
}

.customer-calendar-detail-product .customer-calendar-detail-section {
    margin: 16px;
}

.customer-calendar-chat {
    margin: 34px;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.customer-calendar-chat-label {
    display: block;
    margin: 0 44px 8px 0;
    color: #253D4E;
    font-size: 18px;
    font-weight: 800;
}

.customer-calendar-chat p {
    margin: 0 0 12px;
    color: #7E7E7E;
}

.customer-calendar-chat textarea {
    display: block;
    width: 100%;
    min-height: 106px;
    padding: 13px 14px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    color: #253D4E;
    font: inherit;
    resize: vertical;
}

.customer-calendar-chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.customer-calendar-chat-status {
    min-height: 20px;
    color: #7E7E7E;
    font-size: 13px;
    font-weight: 700;
}

.customer-calendar-chat button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: #3BB77E;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 991px) {
    .customer-calendar-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-calendar-types {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .customer-calendar-widget {
        padding: 14px;
    }

    .customer-calendar-widget .fc .fc-toolbar,
    .customer-calendar-chat-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .customer-calendar-widget .fc .fc-toolbar-title {
        font-size: 22px;
    }

    .customer-calendar-widget .fc .fc-button {
        padding: 6px 9px;
        font-size: 12px;
    }

    .customer-calendar-modal {
        padding: 12px;
    }

    .customer-calendar-detail-hero {
        padding: 28px 62px 24px 22px;
    }

    .customer-calendar-detail-hero h2 {
        font-size: 24px;
    }

    .customer-calendar-detail-grid {
        grid-template-columns: 1fr;
    }

    .customer-calendar-chat,
    .customer-calendar-detail-section,
    .customer-calendar-detail-products,
    .customer-calendar-detail-empty-block {
        margin-right: 14px;
        margin-left: 14px;
    }

    .customer-calendar-chat button {
        width: 100%;
    }
}

/* Valutazioni operazioni cliente */
.operation-rating-inline { margin:16px 0; padding:16px 18px; border:1px solid rgba(48,123,196,.18); border-radius:16px; background:#f8fbfe; }
.operation-rating-inline > div:first-child { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
.operation-rating-inline > div:first-child strong { color:#183b58; font-size:16px; }
.operation-rating-inline > div:first-child span { color:rgba(39,71,96,.65); font-size:13px; }
.operation-rating-stars { display:flex; gap:6px; margin:12px 0; }
.operation-rating-stars label { position:relative; cursor:pointer; }
.operation-rating-stars input { position:absolute; opacity:0; }
.operation-rating-stars span { display:block; color:#cbd5df; font-size:31px; line-height:1; }
.operation-rating-stars em { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.operation-rating-stars:has(input[value="5"]:checked) label span,
.operation-rating-stars:has(input[value="4"]:checked) label:nth-child(-n+4) span,
.operation-rating-stars:has(input[value="3"]:checked) label:nth-child(-n+3) span,
.operation-rating-stars:has(input[value="2"]:checked) label:nth-child(-n+2) span,
.operation-rating-stars:has(input[value="1"]:checked) label:first-child span { color:#f1b600; }
.operation-rating-inline textarea { width:100%; min-height:64px; padding:10px 12px; border:1px solid rgba(39,71,96,.18); border-radius:10px; background:#fff; resize:vertical; }
.operation-rating-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.operation-rating-actions small { color:#a32121; }
.operation-rating-actions button { padding:9px 17px; border:0; border-radius:999px; background:#274760; color:#fff; font-weight:700; }
.operation-rating-actions button:disabled { opacity:.55; }
.operation-rating-result { display:flex; align-items:center; gap:12px; margin-top:9px; }
.operation-rating-result b { color:#f1b600; font-size:25px; letter-spacing:2px; }
.operation-rating-inline.is-rated p { margin:9px 0 0; }
.customer-calendar-modal { display:none; position:fixed; inset:0; z-index:9999; }
