/* Hermes reseller — overrides, mobile fixes, WhatsApp widget, contact form */

.hermes-reseller-bar {
  background: #1a2332; color: #fff; font-size: 0.85rem;
  padding: 8px 16px; text-align: center; z-index: 9999;
}
.hermes-reseller-bar a { color: #4ade80; font-weight: 600; margin-left: 12px; }

.hermes-reseller-footer {
  background: #0f172a; color: #cbd5e1; padding: 40px 20px 28px; margin-top: 40px;
  font-size: 0.9rem;
}
.hermes-reseller-footer a { color: #4ade80; text-decoration: none; }
.hermes-reseller-footer a:hover { color: #86efac; }
.hermes-reseller-footer .footer-inner { max-width: 1100px; margin: 0 auto; }
.hermes-reseller-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) 2fr minmax(160px, 0.9fr) minmax(200px, 1.1fr);
  gap: 28px 24px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hermes-reseller-footer .footer-brand strong {
  display: block; color: #fff; font-size: 1.05rem; margin-bottom: 8px;
}
.hermes-reseller-footer .footer-brand .tagline {
  color: #94a3b8; line-height: 1.5; font-size: 0.85rem;
}
.hermes-reseller-footer .footer-nav-main { display: grid; gap: 20px 16px; }

body.hermes-mirror img { max-width: 100%; height: auto; }
body.hermes-mirror { overflow-x: hidden; }

#usercentrics-root, #uc-center-root, #onetrust-consent-sdk, #onetrust-banner-sdk,
#CybotCookiebotDialog, [id^="usercentrics"], [class*="usercentrics"],
aside[data-testid="uc-app-container"] {
  display: none !important; visibility: hidden !important; pointer-events: none !important;
}

.hermes-reseller-footer .footer-nav-col h4 {
  margin: 0 0 10px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hermes-reseller-footer .footer-nav-col h4 a { color: #fff; }
.hermes-reseller-footer .footer-nav-col a.sub {
  display: block; color: #94a3b8; font-size: 0.84rem;
  margin-bottom: 5px; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.hermes-reseller-footer .footer-nav-col a.sub:hover { color: #4ade80; }
.hermes-reseller-footer .footer-contact,
.hermes-reseller-footer .footer-address {
  line-height: 1.65; font-size: 0.88rem; color: #94a3b8;
}
.hermes-reseller-footer .footer-contact strong,
.hermes-reseller-footer .footer-address strong {
  display: block; color: #fff; margin-bottom: 10px;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hermes-reseller-footer .footer-copy {
  text-align: center; margin-top: 22px; opacity: 0.65; font-size: 0.82rem;
}

@media (max-width: 960px) {
  .hermes-reseller-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hermes-reseller-footer .footer-nav-main {
    grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .hermes-reseller-footer .footer-top,
  .hermes-reseller-footer .footer-nav-main { grid-template-columns: 1fr; }
}

/* Mobile layout fixes */
html, body.hermes-mirror {
  min-width: 0 !important;
  max-width: 100%;
}
body.hermes-mirror {
  padding-bottom: 0 !important;
  width: 100% !important;
}
body.hermes-mirror .block-center {
  max-width: 100% !important;
  box-sizing: border-box;
}
body.hermes-mirror table,
body.hermes-mirror .compare-wrap {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1200px) {
  body.hermes-mirror { padding-bottom: 72px !important; }
  body.hermes-mirror .block-center {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
@media (max-width: 700px) {
  body.hermes-mirror header.main {
    height: auto !important;
    min-height: 0 !important;
  }
  body.hermes-mirror .block-center {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.hermes-mirror .block-content-full {
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
  body.hermes-mirror .block-advantages {
    margin-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.hermes-mirror .block-content-hdr nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  body.hermes-mirror .hermes-reseller-bar {
    font-size: 0.78rem;
    padding: 6px 12px;
    line-height: 1.4;
  }
}


/* Homepage mobile header — full width, no white strip / text cut-off */
@media (max-width: 1200px) {
  html {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  body.hermes-mirror {
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  body.hermes-mirror .frame,
  body.hermes-mirror header,
  body.hermes-mirror header.main,
  body.hermes-mirror article,
  body.hermes-mirror .block-center {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror .block-advantages {
    margin-top: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.hermes-mirror header.main .cloud {
    margin-bottom: 24px !important;
  }
}

@media (max-width: 700px) {
  body.hermes-mirror header.main {
    height: auto !important;
    overflow: visible !important;
    background-color: #00d360 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  body.hermes-mirror header.main .block-center {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 32px !important;
    background-color: #00d360 !important;
    background-image: url(vendor/typo3conf_ext_sitepackage_Resources_Public_Images_bg_header_home_mobile.png) !important;
    /* PNG has white margin on right — scale & anchor left to crop it out */
    background-position: left top !important;
    background-repeat: no-repeat !important;
    background-size: 140% auto !important;
    overflow: visible !important;
  }
  body.hermes-mirror header.main .about,
  body.hermes-mirror header.main .about .descr-wrap,
  body.hermes-mirror header.main .about .descr,
  body.hermes-mirror header.main .about .video-wrap,
  body.hermes-mirror header.main .about .descr-mobile {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror header.main .about h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    color: #fff !important;
  }
  body.hermes-mirror header.main .about p,
  body.hermes-mirror header.main .about .descr-mobile p {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    color: #fff !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  body.hermes-mirror header.main .about .video {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.hermes-mirror header.main .cloud {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 32px !important;
    margin-bottom: 40px !important;
    padding-bottom: 8px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
  }
  body.hermes-mirror header.main .cloud a {
    display: block !important;
    color: #fff !important;
  }
  body.hermes-mirror header.main .block-center {
    padding-bottom: 48px !important;
  }
  body.hermes-mirror article > .block-center:first-of-type {
    padding-top: 0 !important;
  }
  body.hermes-mirror .block-advantages {
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 16px !important;
    position: relative !important;
    z-index: 1 !important;
  }
  body.hermes-mirror .block-advantages a {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror .block-advantages a .descr {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 115px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1200px) and (min-width: 701px) {
  body.hermes-mirror header.main .block-center {
    background-color: #00d360 !important;
    background-size: cover !important;
    background-position: left top !important;
  }
}

/* Contact form template */
.hermes-contact-frame,
.hermes-contact-frame .frame {
  float: none !important; width: 100% !important; max-width: 100% !important;
  margin: 0 !important; padding: 0 !important; overflow: visible !important;
}
.hermes-contact-shell.block-center.block-content {
  float: none !important; width: 100% !important; max-width: 1100px !important;
  margin: 0 auto !important; padding: 40px 24px 60px !important;
  box-sizing: border-box !important; overflow: visible !important;
}
.hermes-contact-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 40px 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.hermes-brand-contact {
  width: 100%; max-width: none; margin: 0; padding: 0;
  box-sizing: border-box;
}
.hermes-brand-contact > p.intro {
  line-height: 1.65; margin-bottom: 28px; color: #444;
}
.hermes-wa-form {
  float: none !important; width: 100% !important; margin: 0 !important;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 28px 24px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hermes-wa-form h2 {
  font-size: 1.15rem; font-weight: 700; color: #333;
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid #30D365;
}
.hermes-wa-form .hermes-field { margin: 0 0 18px 0; padding: 0; }
.hermes-wa-form label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: #555; margin-bottom: 6px;
}
.hermes-wa-form input,
.hermes-wa-form select,
.hermes-wa-form textarea {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box !important;
  display: block !important; margin: 0 !important; float: none !important;
  padding: 10px 14px !important; min-height: 42px; height: auto !important;
  border: 1px solid #d0d0d0 !important; border-radius: 6px !important;
  background: #f6f6f6 !important; font-size: 15px !important;
}
.hermes-wa-form textarea { min-height: 120px; resize: vertical; }
.hermes-wa-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hermes-brand-contact .contact-actions { margin-top: 8px; clear: both; }
.hermes-brand-contact .contact-actions .btn {
  width: 100%; max-width: 100%; font-size: 13px; padding: 12px 24px;
}
.hermes-contact-sidebar {
  background: #f4f6f8;
  border-radius: 10px;
  padding: 28px 24px;
  line-height: 1.65;
}
.hermes-contact-sidebar h3 {
  font-size: 1.05rem; font-weight: 700; color: #333;
  margin: 0 0 16px;
}
.hermes-contact-sidebar p { margin: 0 0 12px; color: #555; font-size: 0.92rem; }
.hermes-contact-sidebar .contact-meta {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem; color: #666;
}
.hermes-contact-sidebar .btn {
  display: inline-block; margin-top: 8px;
  max-width: 100%; white-space: normal; word-break: break-word;
}

.hermes-brand-about {
  max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px;
  line-height: 1.7;
}
.page-about.hermes-brand-about,
.hermes-brand-about.page-about {
  margin-top: 0 !important;
  padding-right: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: 32px 40px !important;
  align-items: start !important;
  clear: both !important;
  overflow: visible !important;
}
.hermes-brand-about .content {
  float: none !important; width: auto !important; min-width: 0 !important;
}
.hermes-brand-about aside {
  float: none !important; width: auto !important; margin: 0 !important;
  padding: 20px !important; background: rgba(0,0,0,0.04) !important;
  border-radius: 8px !important; box-sizing: border-box !important;
  word-break: break-word !important;
}
.hermes-brand-about .content h3 { margin-top: 0; }
.hermes-brand-about .btn { display: inline-block; margin: 8px 8px 0 0; }
.hermes-brand-about .items-about {
  display: flex !important; flex-wrap: wrap !important; gap: 16px !important;
}
.hermes-brand-about .items-about .item {
  flex: 1 1 280px !important; width: auto !important;
  max-width: 100% !important; margin: 0 !important;
}

@media (max-width: 900px) {
  .hermes-contact-template { grid-template-columns: 1fr; gap: 32px; }
  .hermes-contact-sidebar { order: -1; }
  .hermes-wa-form .row-2 { grid-template-columns: 1fr; }
  .page-about.hermes-brand-about,
  .hermes-brand-about.page-about { grid-template-columns: 1fr !important; }
  .hermes-brand-about aside { order: -1; }
  .hermes-contact-shell.block-center.block-content {
    padding-left: 16px !important; padding-right: 16px !important;
  }
}

.block-advantages a .descr .ico { min-width: 74px; min-height: 72px; }
.block-advantages a .descr { min-height: 90px; }

/* WhatsApp floating widget */
.hermes-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hermes-wa-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.hermes-wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
@media (max-width: 700px) {
  .hermes-wa-float {
    bottom: 88px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .hermes-wa-float svg { width: 28px; height: 28px; }
}

/* ─── Downloads & inner pages — mobile layout fix ─── */
@media (max-width: 900px) {
  body.hermes-mirror nobr {
    white-space: normal !important;
  }
  body.hermes-mirror .block-content-hdr .title h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  body.hermes-mirror .block-content-hdr nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    line-height: 1.4 !important;
  }
  body.hermes-mirror .block-content-hdr nav a {
    font-size: 0.85rem !important;
    white-space: normal !important;
  }
  body.hermes-mirror .block-downloads {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    overflow: visible !important;
    clear: both !important;
  }
  body.hermes-mirror .items-downloads,
  body.hermes-mirror .items-downloads.col-1,
  body.hermes-mirror .items-downloads.col-2 {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.hermes-mirror .items-downloads.float {
    float: none !important;
    width: 100% !important;
  }
  body.hermes-mirror .items-downloads .item,
  body.hermes-mirror .items-downloads.col-1 .item,
  body.hermes-mirror .items-downloads.col-2 .item,
  body.hermes-mirror .items-downloads.col-2 .item.col-1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror .items-downloads .item .descr,
  body.hermes-mirror .items-downloads.col-1 .item .descr,
  body.hermes-mirror .items-downloads.col-2 .item.col-1 .descr,
  body.hermes-mirror .items-buy.products .item .descr {
    padding: 20px 16px 16px 16px !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror .items-downloads .item .descr img,
  body.hermes-mirror .items-downloads.col-1 .item .descr img,
  body.hermes-mirror .items-downloads.col-2 .item.col-1 img,
  body.hermes-mirror .items-buy.products .item .descr img {
    float: none !important;
    display: block !important;
    margin: 0 auto 14px auto !important;
    max-width: 90px !important;
    width: auto !important;
    height: auto !important;
  }
  body.hermes-mirror .items-downloads .item h2,
  body.hermes-mirror .items-downloads .item h3 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }
  body.hermes-mirror .items-downloads .cols,
  body.hermes-mirror .items-downloads.col-1 .cols {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin: 12px 0 0 0 !important;
    width: 100% !important;
  }
  body.hermes-mirror .cols .col,
  body.hermes-mirror .items-downloads.col-2 .cols .col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px 0 !important;
    flex: none !important;
  }
  body.hermes-mirror .items-downloads .item p,
  body.hermes-mirror aside.downloads p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  body.hermes-mirror aside.downloads {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 32px 0 !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    background: #f4f6f8;
    border-radius: 10px;
    clear: both !important;
  }
  body.hermes-mirror .block-content {
    padding-top: 24px !important;
    overflow: visible !important;
  }
  body.hermes-mirror header:not(.main) {
    height: auto !important;
    min-height: 0 !important;
  }
  body.hermes-mirror header:not(.main) .block-center {
    height: auto !important;
    padding-bottom: 16px !important;
    background-size: cover !important;
    background-position: top center !important;
  }
  body.hermes-mirror header:not(.main) .menus {
    padding-top: 24px !important;
  }
}

@media (max-width: 700px) {
  body.hermes-mirror .block-content-hdr nav a {
    font-size: 0.78rem !important;
  }
  body.hermes-mirror .items-downloads .item .descr,
  body.hermes-mirror .items-downloads.col-1 .item .descr {
    padding: 18px 14px 14px 14px !important;
  }
}

/* ─── Buy pages — mobile layout fix ─── */
@media (max-width: 900px) {
  /* Intro row with floated product image (licensing options) */
  body.hermes-mirror .row-content,
  body.hermes-mirror .row-services,
  body.hermes-mirror .row-update {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  body.hermes-mirror .row-content.about-product {
    padding: 0 0 24px 0 !important;
    margin-bottom: 32px !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    overflow: visible !important;
  }
  body.hermes-mirror .row-content.about-product img {
    float: none !important;
    display: block !important;
    margin: 0 auto 16px auto !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
  }
  body.hermes-mirror .row-content h3,
  body.hermes-mirror .row-services h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    word-wrap: break-word !important;
  }

  /* All buy item grids */
  body.hermes-mirror .items-buy,
  body.hermes-mirror .items-buy.flat,
  body.hermes-mirror .items-buy.products,
  body.hermes-mirror .items-buy.col-3,
  body.hermes-mirror .items-buy.services {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.hermes-mirror .items-buy .item,
  body.hermes-mirror .items-buy.flat .item,
  body.hermes-mirror .items-buy.products .item,
  body.hermes-mirror .items-buy.col-3 .item,
  body.hermes-mirror .items-buy.services .item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important;
  }
  body.hermes-mirror .items-buy.flat .item {
    background: none !important;
    box-shadow: none !important;
    padding: 0 0 8px 0 !important;
  }
  body.hermes-mirror .items-buy.flat .item h3 {
    font-size: 1.2rem !important;
    margin: 16px 0 10px 0 !important;
  }
  body.hermes-mirror .items-buy.flat .item p,
  body.hermes-mirror .items-buy .item p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.65 !important;
  }

  /* Product cards (online store) */
  body.hermes-mirror .items-buy.products .item .descr {
    padding: 20px 16px 16px 16px !important;
  }
  body.hermes-mirror .items-buy.products .item .descr img {
    float: none !important;
    display: block !important;
    margin: 0 auto 14px auto !important;
    max-width: 90px !important;
  }
  body.hermes-mirror .items-buy.products .item h4 {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
  }
  body.hermes-mirror .items-buy .price {
    font-size: 1.5rem !important;
  }
  body.hermes-mirror .items-buy.products .item .descr p .btn,
  body.hermes-mirror .items-buy.products .item .descr p a {
    display: inline-block !important;
    margin: 6px 8px 6px 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  body.hermes-mirror .ml15 {
    margin-left: 0 !important;
    display: inline-block !important;
  }

  /* Country list (resellers) */
  body.hermes-mirror .items-buy.countries {
    flex-direction: column !important;
  }
  body.hermes-mirror .items-buy.countries .item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px 0 !important;
  }
  body.hermes-mirror .items-buy.countries .item .descr {
    padding: 16px !important;
  }
  body.hermes-mirror .items-buy.countries .item a {
    line-height: 1.8 !important;
    word-wrap: break-word !important;
  }

  /* SaaS service cards */
  body.hermes-mirror .items-buy.services .item .descr {
    padding: 20px 16px !important;
  }
  body.hermes-mirror .items-buy.services .item .img {
    height: auto !important;
    line-height: normal !important;
    margin-bottom: 12px !important;
  }
  body.hermes-mirror .items-buy.services .item .img img {
    max-width: 100% !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
  }
  body.hermes-mirror .items-buy.services .item .descr h4 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 700px) {
  body.hermes-mirror .row-content.about-product {
    font-size: 0.95rem !important;
  }
  body.hermes-mirror .items-buy.products .item .descr {
    padding: 18px 14px !important;
  }
}
