/*
Theme Name: Tellimed Divi 5
Theme URI: https://tellimed.de
Description: Modernes, performantes Divi 5 Child Theme für tellimed.de
Author: tellimed Dev
Template: Divi
Version: 1.2.0
*/

:root {
  --tm-red: #9f0720;
  --tm-red-dark: #7a0519;
  --tm-red-light: #fbecee;
  --tm-green: #8bbc5f;
  --tm-green-dark: #2e7d32;
  --tm-green-light: #e8f5ee;
  --tm-dark: #222222;
  --tm-gray: #555555;
  --tm-light-gray: #f8f9fa;
  --tm-border: #e2e6ea;
  --tm-radius: 12px;
  --tm-radius-pill: 30px;
}

/* Global Reset & Typography */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--tm-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Global Link Colors (Override default browser & Divi cyan/blue #2ea3f2) */
a {
  color: var(--tm-red, #9f0720);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus {
  color: var(--tm-red-dark, #7a0519);
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.bbp-breadcrumb a {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 13px !important;
}
.woocommerce-breadcrumb a:hover,
.bbp-breadcrumb a:hover {
  color: var(--tm-red, #9f0720) !important;
  text-decoration: underline !important;
}

/* Product Meta & Legal Links (zzgl. Versandkosten, Kategorie, etc.) */
.woocommerce-product-details__short-description a,
.product_meta a,
.wc-gzd-additional-info a,
.woocommerce-shipping-calculator a,
.woocommerce-privacy-policy-link {
  color: #64748b !important;
  text-decoration: underline !important;
  transition: color 0.15s ease;
}
.woocommerce-product-details__short-description a:hover,
.product_meta a:hover,
.wc-gzd-additional-info a:hover,
.woocommerce-shipping-calculator a:hover,
.woocommerce-privacy-policy-link:hover {
  color: var(--tm-red, #9f0720) !important;
}

/* Phone & Contact Links */
a[href^="tel:"],
a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: var(--tm-red, #9f0720);
}

/* Content area links */
.woocommerce-Tabs-panel a,
#tab-description a,
.entry-content a:not(.button):not(.et_pb_button) {
  color: var(--tm-red, #9f0720);
  text-decoration: underline;
}
.woocommerce-Tabs-panel a:hover,
#tab-description a:hover,
.entry-content a:not(.button):not(.et_pb_button):hover {
  color: var(--tm-red-dark, #7a0519);
}

#page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#et-main-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* -------------------------------------------------------------
   TELLIMED CUSTOM HEADER & NAVIGATION
------------------------------------------------------------- */
.tellimed-top-bar {
  background-color: var(--tm-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 0;
  line-height: 1.4;
  white-space: nowrap;
}
.tellimed-top-bar a {
  color: #ffffff !important;
  text-decoration: none;
}
.tellimed-top-bar a:hover {
  text-decoration: underline;
}
.tellimed-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.tellimed-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tellimed-top-left, .tellimed-top-right {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
}

/* Main Header */
.tellimed-main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--tm-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 999;
}
.tellimed-brand {
  padding: 8px 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 130px;
}
.tellimed-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tellimed-logo-img {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  max-width: 155px !important;
  object-fit: contain;
  display: block;
}

/* Primary Navigation Container */
.tellimed-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.tellimed-navigation {
  display: flex;
  align-items: center;
}
.tellimed-navigation ul.tellimed-main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 22px);
}
.tellimed-navigation ul.tellimed-main-menu > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.tellimed-navigation ul.tellimed-main-menu > li > a {
  color: var(--tm-dark) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 14px 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  transition: color 0.15s ease;
  line-height: 1.2;
}
.tellimed-navigation ul.tellimed-main-menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 11px;
  color: #777;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.tellimed-navigation ul.tellimed-main-menu > li:hover > a::after {
  transform: rotate(180deg);
}
.tellimed-navigation ul.tellimed-main-menu > li > a:hover,
.tellimed-navigation ul.tellimed-main-menu > li.current-menu-item > a {
  color: var(--tm-red) !important;
}

/* Dropdown Sub-Menu */
.tellimed-navigation ul.tellimed-main-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--tm-border);
  border-top: 3px solid var(--tm-red);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  list-style: none;
  z-index: 1000;
  margin: 0;
}
.tellimed-navigation ul.tellimed-main-menu li:hover > ul.sub-menu {
  display: block;
}
.tellimed-navigation ul.tellimed-main-menu ul.sub-menu li {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tellimed-navigation ul.tellimed-main-menu ul.sub-menu li a {
  padding: 9px 18px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--tm-dark) !important;
  text-decoration: none !important;
  display: block;
  white-space: nowrap !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.tellimed-navigation ul.tellimed-main-menu ul.sub-menu li a:hover {
  background: var(--tm-red-light);
  color: var(--tm-red) !important;
}

/* -------------------------------------------------------------
   MEGA MENU: NOTRUFSYSTEME-SHOP (Desktop)
------------------------------------------------------------- */
@media (min-width: 981px) {
  .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu {
    position: relative;
  }
  .tellimed-mega-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 820px;
    max-width: 95vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--tm-red);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 20px 22px 16px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    z-index: 9999;
    box-sizing: border-box;
  }
  .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu:hover .tellimed-mega-menu,
  .tellimed-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .tellimed-mega-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
  }
  body.test-mega-menu .tellimed-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

.tellimed-mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.tellimed-mega-header .mega-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}
.tellimed-mega-header .mega-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-red);
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.tellimed-mega-header .mega-all-link:hover {
  color: #7f0518;
  text-decoration: underline !important;
}

.tellimed-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tellimed-mega-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 10px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
}
.tellimed-mega-card:hover {
  border-color: var(--tm-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.tellimed-mega-card .mega-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.mega-card-badge.tag-green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.mega-card-badge.tag-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.mega-card-badge.tag-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.mega-card-badge.tag-gray {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tellimed-mega-card .mega-card-thumb {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px 0;
  width: 100%;
}
.tellimed-mega-card .mega-card-thumb img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.tellimed-mega-card:hover .mega-card-thumb img {
  transform: scale(1.06);
}
.tellimed-mega-card .mega-card-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: auto;
}
.tellimed-mega-card .mega-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 2px;
  line-height: 1.3;
}
.tellimed-mega-card:hover .mega-card-name {
  color: var(--tm-red) !important;
}
.tellimed-mega-card .mega-card-sub,
.tellimed-mega-card .mega-card-desc {
  font-size: 11.5px;
  color: #64748b !important;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 30px;
}
.tellimed-mega-card .mega-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tm-red) !important;
  margin-top: auto;
  line-height: 1.2;
}
.tellimed-mega-card .mega-card-price small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #64748b !important;
  margin-top: 2px;
}

.tellimed-mega-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #475569;
}
.tellimed-mega-footer .check-icon {
  color: #10b981;
  font-weight: 800;
  margin-right: 4px;
}
.tellimed-mega-footer .mega-footer-cta {
  background: var(--tm-red);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.tellimed-mega-footer .mega-footer-cta:hover {
  background: #7f0518;
}

/* Header Actions */
.tellimed-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tellimed-cta-kasse {
  background: var(--tm-green-light);
  color: var(--tm-green-dark) !important;
  border: 1px solid var(--tm-green);
  padding: 7px 14px;
  border-radius: var(--tm-radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(139, 188, 95, 0.2);
}
.tellimed-cta-kasse:hover {
  background: var(--tm-green);
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(139, 188, 95, 0.35);
}
.tellimed-cart-btn {
  background: #f4f6f8;
  border: 1px solid var(--tm-border);
  color: var(--tm-dark) !important;
  padding: 7px 12px;
  border-radius: var(--tm-radius-pill);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.tellimed-cart-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}
.tellimed-cart-count {
  background: transparent !important;
  color: var(--tm-red) !important;
  font-size: 14px;
  font-weight: 800;
  padding: 0;
  min-width: auto;
  border-radius: 0;
  text-align: center;
  line-height: 1;
}
.tellimed-mobile-nav-cta {
  display: none;
}

/* Intermediate screens (981px - 1180px) */
@media (max-width: 1180px) and (min-width: 981px) {
  .tellimed-header-container {
    padding: 0 12px;
    gap: 10px;
  }
  .tellimed-navigation ul.tellimed-main-menu {
    gap: 8px;
  }
  .tellimed-navigation ul.tellimed-main-menu > li > a {
    font-size: 13px !important;
    padding: 12px 2px;
  }
  .tellimed-cta-kasse {
    font-size: 12px;
    padding: 6px 10px;
  }
  .tellimed-cart-btn {
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .tellimed-top-bar {
    font-size: 11px;
  }
}

/* Mobile & Tablet Toggle (< 981px) */
.tellimed-mobile-toggle {
  display: none;
  background: #f4f6f8;
  border: 1px solid var(--tm-border);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--tm-radius-pill);
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.tellimed-mobile-toggle:hover {
  background: #e9ecef;
}
.tellimed-mobile-toggle:focus {
  outline: none;
}
.tellimed-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tm-dark);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.2s;
}

@media (max-width: 980px) {
  .tellimed-top-bar {
    white-space: normal;
    padding: 4px 8px;
  }
  .tellimed-top-right {
    display: none;
  }
  .tellimed-top-left {
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 11px;
    white-space: normal;
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  .tellimed-brand {
    order: 1;
    min-width: auto;
  }
  .tellimed-header-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .tellimed-mobile-toggle {
    display: flex;
  }
  .tellimed-header-actions .tellimed-cta-kasse {
    display: none;
  }
  .tellimed-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--tm-red);
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
  }
  .tellimed-nav-wrap.active {
    display: block;
  }
  .tellimed-navigation ul.tellimed-main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .tellimed-navigation ul.tellimed-main-menu > li {
    width: 100%;
    display: block;
  }
  .tellimed-navigation ul.tellimed-main-menu > li > a {
    padding: 12px 4px;
    font-size: 15px !important;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tellimed-navigation ul.tellimed-main-menu > li.menu-item-has-children > a::after {
    font-size: 14px;
    color: var(--tm-gray);
    transition: transform 0.2s ease;
  }
  .tellimed-navigation ul.tellimed-main-menu > li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
    color: var(--tm-red);
  }
  /* Mobile Sub-Menu: Default closed, clean light background, NO left border */
  .tellimed-navigation ul.tellimed-main-menu ul.sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    margin: 4px 0 10px 0;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .tellimed-navigation ul.tellimed-main-menu li.open > ul.sub-menu {
    display: block;
  }
  .tellimed-navigation ul.tellimed-main-menu ul.sub-menu li a {
    padding: 9px 10px !important;
    font-size: 14px !important;
    color: #444444 !important;
    border-bottom: 1px solid #eeeeee !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .tellimed-navigation ul.tellimed-main-menu ul.sub-menu li:last-child a {
    border-bottom: none !important;
  }
  /* Mobile Mega Menu */
  .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu {
    position: relative;
    width: 100%;
  }
  .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu .tellimed-mega-menu {
    position: static;
    display: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 8px !important;
    background: #f1f5f9 !important;
    margin: 6px 0 12px 0 !important;
    box-sizing: border-box !important;
  }
  .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu.open .tellimed-mega-menu {
    display: block !important;
  }
  .tellimed-mega-header {
    display: none !important;
  }
  .tellimed-mega-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .tellimed-mega-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 6px !important;
  }
  .tellimed-mega-card .mega-card-badge {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
    font-size: 8.5px !important;
    padding: 2px 4px !important;
  }
  .tellimed-mega-card .mega-card-thumb {
    height: 60px !important;
    margin: 4px 0 !important;
  }
  .tellimed-mega-card .mega-card-thumb img {
    max-height: 52px !important;
  }
  .tellimed-mega-card .mega-card-name {
    font-size: 12.5px !important;
  }
  .tellimed-mega-card .mega-card-sub,
  .tellimed-mega-card .mega-card-desc {
    font-size: 10px !important;
    min-height: auto !important;
    margin-bottom: 4px !important;
    display: none !important;
  }
  .tellimed-mega-card .mega-card-price {
    font-size: 12px !important;
  }
  .tellimed-mega-footer {
    display: block !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
  }
  .tellimed-mega-footer .mega-footer-left {
    display: none !important;
  }
  .tellimed-mega-footer .mega-footer-cta {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
  }
  body.test-mobile-menu .tellimed-nav-wrap {
    display: block !important;
  }
  body.test-mobile-menu .tellimed-navigation ul.tellimed-main-menu > li.tellimed-has-mega-menu .tellimed-mega-menu {
    display: block !important;
  }
  .tellimed-mobile-nav-cta {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
  }
  .tellimed-mobile-nav-cta .tellimed-cta-kasse {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* -------------------------------------------------------------
   ROBUST 2-COLUMN HERO GRID (SPLIT 55/45)
------------------------------------------------------------- */
.tellimed-hero-section {
  position: relative;
  background-color: #f7f9fa;
  background-image: 
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 46%, rgba(255, 255, 255, 0.72) 75%, rgba(255, 255, 255, 0.40) 100%),
    url('/wp-content/uploads/2020/10/tellimed-home-mood-scaled.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--tm-border);
  padding: 55px 0 65px 0;
}
.tellimed-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.tellimed-hero-content {
  text-align: left;
}
.tellimed-hero-badge {
  background: var(--tm-red-light);
  color: var(--tm-red);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--tm-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
}
.tellimed-hero-title {
  color: var(--tm-dark);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15em;
  margin: 0 0 16px 0;
}
.tellimed-hero-lead {
  color: var(--tm-gray);
  font-size: 17px;
  line-height: 1.6em;
  margin: 0 0 20px 0;
}
.tellimed-kasse-box {
  background: var(--tm-green-light);
  border-left: 4px solid var(--tm-green-dark);
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 25px;
}
.tellimed-kasse-box strong {
  color: var(--tm-green-dark);
  font-size: 15px;
}
.tellimed-kasse-box span {
  font-size: 13px;
  color: #444;
}
.tellimed-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
.tellimed-btn-primary {
  background: var(--tm-red) !important;
  color: #ffffff !important;
  padding: 14px 30px !important;
  border-radius: var(--tm-radius-pill) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s ease !important;
}
.tellimed-btn-primary:hover {
  background: var(--tm-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(159, 7, 32, 0.3);
}
.tellimed-btn-secondary {
  background: #ffffff !important;
  color: var(--tm-red) !important;
  border: 2px solid var(--tm-red) !important;
  padding: 12px 28px !important;
  border-radius: var(--tm-radius-pill) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s ease !important;
}
.tellimed-btn-secondary:hover {
  background: var(--tm-red-light) !important;
  transform: translateY(-2px);
}

/* Hero Right: Product Visual */
.tellimed-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fcecee 0%, rgba(255,255,255,0) 70%);
  padding: 20px;
}
.tellimed-hero-visual img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}
.tellimed-trust-floating-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: -15px;
  position: relative;
  z-index: 2;
  text-align: center;
}

@media (max-width: 900px) {
  .tellimed-hero-section {
    background-image: 
      linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.70) 100%),
      url('/wp-content/uploads/2020/10/tellimed-home-mood-scaled.jpg');
    background-position: center top;
    padding: 35px 0 45px 0;
  }
  .tellimed-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }
  .tellimed-hero-content {
    text-align: center;
  }
  .tellimed-hero-title {
    font-size: 32px;
  }
  .tellimed-hero-buttons {
    justify-content: center;
  }
}

/* -------------------------------------------------------------
   GLOBAL CARD & WOOCOMMERCE STYLES
------------------------------------------------------------- */
.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.woocommerce ul.products li.product .price {
  color: var(--tm-red) !important;
  font-size: 1.25em !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------------------
   WOOCOMMERCE FULL-WIDTH & CLEAN DETAIL VIEW
------------------------------------------------------------- */
.single-product #sidebar,
.woocommerce-page #sidebar,
.woocommerce #sidebar {
  display: none !important;
}
.single-product #left-area,
.woocommerce-page #left-area,
.woocommerce #left-area {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 30px 20px 60px 20px !important;
  box-sizing: border-box !important;
}

/* Responsive Content Width - maximize usable screen width on mobile */
@media (max-width: 980px) {
  .single-product #main-content .container,
  .woocommerce-page #main-content .container,
  .woocommerce #main-content .container,
  #main-content .container {
    width: 92% !important;
    max-width: 92% !important;
    margin: 0 auto !important;
  }
  .single-product #left-area,
  .woocommerce-page #left-area,
  .woocommerce #left-area {
    padding: 20px 10px 40px 10px !important;
  }
}

@media (max-width: 768px) {
  .single-product #main-content .container,
  .woocommerce-page #main-content .container,
  .woocommerce #main-content .container,
  #main-content .container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .single-product #left-area,
  .woocommerce-page #left-area,
  .woocommerce #left-area {
    padding: 10px 0 40px 0 !important;
    width: 100% !important;
  }
  .single-product .product .summary,
  .woocommerce div.product div.summary {
    padding: 0 !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  .single-product .product .images,
  .woocommerce div.product div.images.woocommerce-product-gallery {
    padding: 0 !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  .tellimed-model-switcher-wrap {
    padding: 12px 10px;
    margin: 14px 0 20px 0;
  }
}

/* Remove Divi vertical sidebar divider line completely */
.single-product #main-content .container:before,
.woocommerce-page #main-content .container:before,
.woocommerce #main-content .container:before,
#main-content .container:before,
#content-area:before,
.container:before {
  display: none !important;
  width: 0 !important;
  background: none !important;
  border: none !important;
  content: none !important;
}

/* Hide native variations table on tellimed Home (replaced by visual cards) */
.postid-7629 .variations,
.single-product.postid-7629 form.cart table.variations {
  display: none !important;
}

/* Hide duplicate images in WooCommerce loop / Related products */
.woocommerce ul.products li.product a .et_shop_image ~ .et_shop_image,
.woocommerce ul.products li.product a .et_shop_image:nth-of-type(n+2) {
  display: none !important;
}

/* Product Main Columns */
.single-product .product .images,
.woocommerce div.product div.images.woocommerce-product-gallery {
  width: 46% !important;
  float: left !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-sizing: border-box !important;
}
.single-product .product .summary,
.woocommerce div.product div.summary {
  width: 50% !important;
  float: right !important;
  box-sizing: border-box !important;
}
@media (max-width: 820px) {
  .single-product .product .images,
  .woocommerce div.product div.images.woocommerce-product-gallery,
  .single-product .product .summary,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px !important;
  }
}

/* Main Gallery Image & Thumbnails */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  background: #ffffff;
  width: 100% !important;
  height: auto !important;
  display: block;
}
.woocommerce div.product div.images .flex-control-thumbs {
  margin-top: 14px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 !important;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: calc(25% - 8px) !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
  border-color: var(--tm-red) !important;
  box-shadow: 0 2px 8px rgba(159,7,32,0.2) !important;
}

/* Product Typography & Pricing */
.single-product .product .product_title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 0 0 14px 0 !important;
}
.single-product .product p.price,
.single-product .product span.price {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--tm-red) !important;
  margin: 0 0 16px 0 !important;
}
.single-product .product p.price ins,
.single-product .product span.price ins {
  text-decoration: none !important;
}
.single-product .summary .price-info {
  display: none !important;
}
.single-product .product p.stock.in-stock {
  color: #166534 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 12px 0 !important;
}
.single-product .product p.stock.in-stock::before {
  content: '✓';
  display: inline-block;
  font-weight: 800;
}

/* Quantity & Add to Cart Button Container */
.single-product .product form.cart {
  margin: 22px 0 !important;
  display: block !important;
}
.single-product .product form.cart:not(.variations_form),
.single-product .product .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 20px 0 16px 0 !important;
  flex-wrap: wrap !important;
}

/* Modern Quantity Input with Stepper */
.single-product .product form.cart .quantity {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  height: 52px !important;
  width: 130px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.single-product .product form.cart .quantity:focus-within {
  border-color: var(--tm-red) !important;
  box-shadow: 0 0 0 3px rgba(159,7,32,0.12) !important;
}
.single-product .product form.cart .quantity input.qty {
  height: 100% !important;
  width: 48px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center !important;
  box-shadow: none !important;
  outline: none !important;
  -moz-appearance: textfield !important;
}
.single-product .product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product .product form.cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.tellimed-qty-btn {
  width: 38px !important;
  height: 100% !important;
  background: #f1f5f9 !important;
  border: none !important;
  color: #475569 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.tellimed-qty-btn:hover {
  background: #e2e8f0 !important;
  color: var(--tm-red) !important;
}
.tellimed-qty-btn.minus {
  border: none !important;
  border-right: 1px solid #e2e8f0 !important;
}
.tellimed-qty-btn.plus {
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
}

/* Premium In den Warenkorb Button (Desktop & Mobile) */
.single-product .product form.cart .single_add_to_cart_button {
  height: 52px !important;
  background: var(--tm-red) !important;
  color: #ffffff !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  border-radius: 10px !important;
  padding: 0 28px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(159,7,32,0.28) !important;
  flex: 1 1 200px !important;
  min-width: 200px !important;
  box-sizing: border-box !important;
}
.single-product .product form.cart .single_add_to_cart_button:hover {
  background: #7f0518 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(159,7,32,0.38) !important;
  padding: 0 28px !important;
}
.single-product .product form.cart .single_add_to_cart_button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(159,7,32,0.2) !important;
}
.single-product .product form.cart .single_add_to_cart_button.disabled,
.single-product .product form.cart .single_add_to_cart_button:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Remove Divi's sliding icon on WooCommerce buttons so it never overlaps text */
.single-product .product form.cart .single_add_to_cart_button:after,
.single-product .product form.cart .single_add_to_cart_button:before,
.single-product .product form.cart .single_add_to_cart_button:hover:after,
.single-product .product form.cart .single_add_to_cart_button:hover:before,
.woocommerce button.button.single_add_to_cart_button:after,
.woocommerce button.button.single_add_to_cart_button:before,
.woocommerce button.button.single_add_to_cart_button:hover:after,
.woocommerce button.button.single_add_to_cart_button:hover:before,
.woocommerce .single_add_to_cart_button:after,
.woocommerce .single_add_to_cart_button:before,
.woocommerce .single_add_to_cart_button:hover:after,
.woocommerce .single_add_to_cart_button:hover:before,
.woocommerce #respond input#submit:after,
.woocommerce a.button:after,
.woocommerce button.button:after,
.woocommerce input.button:after,
.woocommerce #respond input#submit:hover:after,
.woocommerce a.button:hover:after,
.woocommerce button.button:hover:after,
.woocommerce input.button:hover:after {
  display: none !important;
  content: "" !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Modern Swatches for WooCommerce Variations */
.tellimed-swatches-wrap {
  margin: 18px 0 20px 0;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
}
.tellimed-swatch-group {
  margin-bottom: 14px;
}
.tellimed-swatch-group:last-child {
  margin-bottom: 0;
}
.tellimed-swatch-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tellimed-swatch-label .selected-val {
  font-weight: 700;
  text-transform: none;
  color: var(--tm-red);
  letter-spacing: 0;
}
.tellimed-swatch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tellimed-swatch-pill {
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.tellimed-swatch-pill:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  transform: translateY(-1px);
}
.tellimed-swatch-pill.is-active {
  border-color: var(--tm-red);
  background: #fff8f8;
  color: var(--tm-red);
  box-shadow: 0 2px 8px rgba(159,7,32,0.12);
}
.tellimed-swatch-pill .swatch-check {
  display: none;
  font-weight: 800;
}
.tellimed-swatch-pill.is-active .swatch-check {
  display: inline-block;
}

/* Hide native variations table when swatches are active */
.has-tellimed-swatches table.variations {
  display: none !important;
}

/* Fallback styling for native variations table */
table.variations {
  width: 100% !important;
  margin: 16px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}
table.variations tr {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
table.variations th.label {
  padding: 0 !important;
  text-align: left !important;
}
table.variations th.label label {
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #334155 !important;
}
table.variations td.value {
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
}
table.variations select {
  width: 100% !important;
  height: 48px !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0 40px 0 14px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
table.variations select:focus {
  border-color: var(--tm-red) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(159,7,32,0.12) !important;
}
.reset_variations {
  display: inline-block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #64748b !important;
  text-decoration: underline !important;
}

/* -------------------------------------------------------------
   TELLIMED MODEL SWITCHER
------------------------------------------------------------- */
.tellimed-model-switcher-wrap {
  margin: 18px 0 24px 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tellimed-model-switcher-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin-bottom: 12px;
}
.tellimed-model-switcher-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tellimed-model-card {
  display: block;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  color: #334155 !important;
  box-sizing: border-box;
  overflow: hidden;
}
.tellimed-model-card:hover {
  border-color: #cbd5e1;
  background: #fafafa;
}
.tellimed-model-card.is-active {
  border-color: var(--tm-red);
  background: #fff8f8;
  box-shadow: 0 4px 14px rgba(159,7,32,0.08);
}
.tellimed-model-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
}
.tellimed-model-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tellimed-model-card.is-active .tellimed-model-radio {
  border-color: var(--tm-red);
}
.tellimed-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.tellimed-model-card.is-active .tellimed-radio-dot {
  background: var(--tm-red);
}
.tellimed-model-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tellimed-model-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.tellimed-model-card.is-active .tellimed-model-title {
  color: var(--tm-red);
}
.tellimed-model-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  line-height: 1.3;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
}
.tellimed-model-card.is-active .tellimed-model-badge {
  background: #fee2e2;
  color: #991b1b;
}
.tellimed-model-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-left: 28px;
  margin-bottom: 8px;
}
.tellimed-model-footer {
  margin-left: 28px;
  font-size: 12px;
  font-weight: 700;
}
.tellimed-model-footer .active-status {
  color: #166534;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tellimed-model-footer .switch-action {
  color: var(--tm-red);
  text-decoration: underline;
}

.tellimed-model-badge.badge-soldout {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}
.tellimed-model-badge.badge-in-stock {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

@media (max-width: 640px) {
  .tellimed-model-card {
    padding: 12px 14px;
  }
  .tellimed-model-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .tellimed-model-title {
    font-size: 14px;
    width: 100%;
  }
  .tellimed-model-badge {
    align-self: flex-start;
    font-size: 11px;
    padding: 2.5px 7px;
  }
  .tellimed-model-desc {
    margin-left: 28px;
    font-size: 12.5px;
  }
  .tellimed-model-footer {
    margin-left: 28px;
  }
}

/* Stock Alert Box */
.tellimed-stock-alert-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
  max-width: 100%;
}
.tellimed-stock-alert-box .alert-icon {
  font-size: 24px;
  line-height: 1;
}
.tellimed-stock-alert-box strong {
  font-size: 15px;
  color: #9a3412;
  display: block;
  margin-bottom: 4px;
}
.tellimed-stock-alert-box p {
  font-size: 13.5px;
  color: #7c2d12;
  margin: 0 0 10px 0;
  line-height: 1.45;
}
.tellimed-stock-alert-box .alert-btn {
  display: inline-block;
  background: var(--tm-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.tellimed-stock-alert-box .alert-btn:hover {
  background: #7f0518;
}

/* Modern Monthly Pricing Card */
.tellimed-monthly-pricing-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  box-sizing: border-box;
}
.monthly-pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.monthly-pricing-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.monthly-pricing-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--tm-red);
  line-height: 1;
}
.monthly-pricing-price .price-period {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}
.monthly-pricing-vat {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}
.monthly-pricing-subsidy {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #065f46;
  margin-bottom: 12px;
}
.monthly-pricing-subsidy .subsidy-badge {
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.monthly-pricing-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}
.monthly-pricing-perks span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.monthly-pricing-perks .perk-check {
  color: #10b981;
  font-weight: 800;
}

/* Home Pflege Pill */
.tellimed-home-pflege-pill {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}
.tellimed-home-pflege-pill .pill-badge {
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 8px;
}
.tellimed-home-pflege-pill .pill-head strong {
  font-size: 14px;
  color: #065f46;
}
.tellimed-home-pflege-pill .pill-body {
  font-size: 13px;
  color: #047857;
  margin-top: 6px;
  line-height: 1.45;
}

/* -------------------------------------------------------------
   TELLIMED RICH PRODUCT SECTIONS (Below Single Product Summary)
------------------------------------------------------------- */
.tellimed-product-rich-sections {
  clear: both;
  width: 100%;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}
.tellimed-section-rich {
  margin-bottom: 60px;
}
.tellimed-rich-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 35px auto;
}
.tellimed-rich-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--tm-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.tellimed-rich-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.25;
}
.tellimed-rich-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 4 Steps Grid */
.tellimed-rich-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tellimed-rich-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.tellimed-rich-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
}
.tellimed-rich-step-card .step-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--tm-red);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(159,7,32,0.3);
}
.tellimed-rich-step-card .step-icon-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.tellimed-rich-step-card .step-icon-wrap img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.tellimed-rich-step-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.tellimed-rich-step-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Features Grid */
.tellimed-rich-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tellimed-rich-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 18px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.tellimed-rich-feature-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.tellimed-rich-feature-card .feat-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.tellimed-rich-feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.tellimed-rich-feature-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Downloads & Service */
.tellimed-service-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tellimed-service-card, .tellimed-download-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.tellimed-service-card .service-card-icon, .tellimed-download-card .download-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.tellimed-service-card h3, .tellimed-download-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.tellimed-service-card p, .tellimed-download-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex-grow: 1;
}
.tellimed-btn-outline {
  display: inline-block;
  padding: 12px 20px;
  border: 1.5px solid var(--tm-red);
  color: var(--tm-red) !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  text-align: center;
}
.tellimed-btn-outline:hover {
  background: var(--tm-red);
  color: #fff !important;
}
.tellimed-btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--tm-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  text-align: center;
}
.tellimed-btn-primary:hover {
  background: #7f0518;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159,7,32,0.25);
}

/* Kasse Callout */
.tellimed-kasse-callout {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 35px 30px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  box-sizing: border-box;
}
.kasse-callout-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.kasse-callout-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.kasse-callout-inner h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.kasse-callout-inner p {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0 0 24px 0;
  line-height: 1.6;
}
.kasse-callout-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tellimed-btn-success {
  display: inline-block;
  padding: 13px 24px;
  background: #10b981;
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.tellimed-btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.tellimed-btn-white {
  display: inline-block;
  padding: 13px 22px;
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.tellimed-btn-white:hover {
  background: rgba(255,255,255,0.25);
}

/* Mobile Breakpoints for Detail Page */
@media (max-width: 980px) {
  .tellimed-rich-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tellimed-rich-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .tellimed-rich-steps-grid {
    grid-template-columns: 1fr;
  }
  .tellimed-rich-features-grid {
    grid-template-columns: 1fr;
  }
  .tellimed-service-download-grid {
    grid-template-columns: 1fr;
  }
  .kasse-callout-buttons {
    flex-direction: column;
  }
}

/* -------------------------------------------------------------
   MODERN WOOCOMMERCE TABS REDESIGN (Bild 2 Feedback)
------------------------------------------------------------- */
.woocommerce-tabs.wc-tabs-wrapper {
  margin-top: 40px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
  overflow: hidden !important;
}
.woocommerce-tabs ul.tabs {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 16px !important;
  margin: 0 !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  list-style: none !important;
}
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 16px 22px !important;
  transition: all 0.2s ease !important;
}
.woocommerce-tabs ul.tabs li:before,
.woocommerce-tabs ul.tabs li:after {
  display: none !important;
}
.woocommerce-tabs ul.tabs li a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li.active {
  background: #ffffff !important;
  border-bottom-color: var(--tm-red) !important;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--tm-red) !important;
}
.woocommerce-tabs .panel {
  padding: 30px 32px !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}
.woocommerce-tabs .panel > h2:first-child,
.woocommerce-tabs .panel > h2.woocommerce-Tabs-panel--description_heading {
  display: none !important;
}

/* Beautiful Product Description in Tabs */
.woocommerce-Tabs-panel--description {
  color: #334155 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}
.woocommerce-Tabs-panel--description p.tellimed-desc-lead {
  font-size: 16.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.6 !important;
}
.woocommerce-Tabs-panel--description h3.tellimed-desc-section-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 28px 0 16px 0 !important;
  letter-spacing: -0.2px;
}
.tellimed-desc-checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 18px 0 24px 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 768px) {
  .tellimed-desc-checklist {
    grid-template-columns: 1fr !important;
  }
}
.tellimed-desc-checklist li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  font-size: 14px !important;
  color: #334155 !important;
}
.tellimed-desc-checklist .desc-icon {
  font-size: 20px !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}
.tellimed-desc-checklist strong {
  color: #0f172a !important;
  font-weight: 700 !important;
  display: inline-block !important;
  margin-right: 4px !important;
}
.tellimed-desc-highlight-box {
  background: #f8fafc !important;
  border-left: 4px solid var(--tm-red) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 18px 22px !important;
  margin: 24px 0 !important;
  font-size: 14.5px !important;
  color: #1e293b !important;
  line-height: 1.6 !important;
}
.tellimed-desc-contact-box {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 14px !important;
  color: #065f46 !important;
}
.tellimed-desc-contact-box a {
  color: #047857 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
/* Hide unstyled legacy duplicate downloads inside tab panel */
.woocommerce-Tabs-panel--description .downloads {
  display: none !important;
}

/* -------------------------------------------------------------
   MODERN RELATED PRODUCTS REDESIGN (Bild 3 Feedback)
------------------------------------------------------------- */
.related.products,
.upsells.products {
  margin-top: 50px !important;
  padding-top: 40px !important;
  border-top: 1px solid #e2e8f0 !important;
  clear: both !important;
}
.related.products > h2,
.upsells.products > h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center !important;
  margin-bottom: 30px !important;
}
.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products,
.woocommerce.single-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* CRITICAL: Remove WooCommerce & Divi ::before and ::after pseudo-elements which become blank grid cells */
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after,
.woocommerce .upsells.products ul.products::before,
.woocommerce .upsells.products ul.products::after,
.woocommerce.single-product ul.products::before,
.woocommerce.single-product ul.products::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce.single-product ul.products li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 22px 18px !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}
.woocommerce .related.products ul.products li.product:hover,
.woocommerce .upsells.products ul.products li.product:hover,
.woocommerce.single-product ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  border-color: #cbd5e1 !important;
}
.woocommerce .related.products ul.products li.product a img,
.woocommerce .upsells.products ul.products li.product a img,
.woocommerce.single-product ul.products li.product a img {
  max-height: 200px !important;
  width: auto !important;
  margin: 0 auto 16px auto !important;
  display: block !important;
  object-fit: contain !important;
}
/* Ensure loop cards don't show video players with controls, but clean product image */
.woocommerce .related.products ul.products li.product a .woocommerce-product-gallery__image:has(video),
.woocommerce .related.products ul.products li.product a div[data-rsfv-video-id],
.woocommerce .related.products ul.products li.product a video.rsfv-video {
  display: none !important;
}
.woocommerce .related.products ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce .upsells.products ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce.single-product ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.35 !important;
}
.woocommerce .related.products ul.products li.product .price,
.woocommerce .upsells.products ul.products li.product .price,
.woocommerce.single-product ul.products li.product .price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--tm-red) !important;
  margin: 0 0 8px 0 !important;
}
@media (max-width: 820px) {
  .woocommerce .related.products ul.products,
  .woocommerce .upsells.products ul.products,
  .woocommerce.single-product ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .woocommerce .related.products ul.products,
  .woocommerce .upsells.products ul.products,
  .woocommerce.single-product ul.products {
    grid-template-columns: 1fr !important;
  }
}

.tellimed-shop-header {
  background: #ffffff;
  border-bottom: 1px solid var(--tm-border);
  padding: 50px 20px 40px 20px;
  text-align: center;
}
.tellimed-options-section {
  padding: 40px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--tm-border);
}
.tellimed-options-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  box-sizing: border-box;
}
.tellimed-option-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.tellimed-option-card.card-green {
  border-left: 5px solid var(--tm-green);
}
.tellimed-option-card.card-red {
  border-left: 5px solid var(--tm-red);
}
.tellimed-option-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.tellimed-option-card.card-green h3 {
  color: var(--tm-green-dark);
}
.tellimed-option-card.card-red h3 {
  color: var(--tm-red);
}
.tellimed-option-card p {
  font-size: 15px;
  color: var(--tm-gray);
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}
.tellimed-option-card a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}
.tellimed-option-card.card-green a {
  color: var(--tm-green-dark);
}
.tellimed-option-card.card-red a {
  color: var(--tm-red);
}
.tellimed-services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  box-sizing: border-box;
}
.tellimed-service-card {
  background: #f8f9fa;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 30px;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .tellimed-options-container,
  .tellimed-services-grid {
    grid-template-columns: 1fr;
  }
}


/* -------------------------------------------------------------
   USP TRUST BAR
------------------------------------------------------------- */
.tellimed-usp-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--tm-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 24px 0;
  width: 100%;
}
.tellimed-usp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  box-sizing: border-box;
}
.tellimed-usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tellimed-usp-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--tm-red-light);
  color: var(--tm-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tellimed-usp-item:nth-child(2) .tellimed-usp-icon {
  background: var(--tm-green-light);
  color: var(--tm-green-dark);
}
.tellimed-usp-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--tm-dark);
  line-height: 1.25;
}
.tellimed-usp-text span {
  display: block;
  font-size: 13px;
  color: var(--tm-gray);
  line-height: 1.35;
  margin-top: 2px;
}
@media (max-width: 980px) {
  .tellimed-usp-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 580px) {
  .tellimed-usp-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* -------------------------------------------------------------
   INTERACTIVE SCHNELL-BERATER
------------------------------------------------------------- */
.tellimed-finder-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--tm-border);
}
.tellimed-finder-card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 20px;
  padding: 45px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.tellimed-finder-header {
  text-align: center;
  margin-bottom: 35px;
}
.tellimed-finder-badge {
  background: var(--tm-red-light);
  color: var(--tm-red);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: var(--tm-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 12px;
}
.tellimed-finder-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--tm-dark);
  margin: 0 0 10px 0;
}
.tellimed-finder-header p {
  font-size: 16px;
  color: var(--tm-gray);
  margin: 0;
}
.tellimed-finder-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.tellimed-finder-opt {
  border: 2px solid var(--tm-border);
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}
.tellimed-finder-opt:hover {
  border-color: var(--tm-red);
  transform: translateY(-2px);
}
.tellimed-finder-opt.active {
  border-color: var(--tm-red);
  background: #fff8f8;
  box-shadow: 0 4px 15px rgba(159, 7, 32, 0.1);
}
.tellimed-finder-opt-icon {
  font-size: 38px;
  margin-bottom: 10px;
  display: block;
}
.tellimed-finder-opt strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--tm-dark);
  margin-bottom: 6px;
}
.tellimed-finder-opt.active strong {
  color: var(--tm-red);
}
.tellimed-finder-opt span {
  display: block;
  font-size: 13.5px;
  color: var(--tm-gray);
  line-height: 1.4;
}
.tellimed-finder-result {
  background: #fdfdfd;
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
}
.tellimed-finder-result-badge {
  color: var(--tm-green-dark);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}
.tellimed-finder-result h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--tm-dark);
  margin: 0 0 10px 0;
}
.tellimed-finder-result p {
  font-size: 15px;
  color: var(--tm-gray);
  max-width: 650px;
  margin: 0 auto 18px auto;
  line-height: 1.6;
}
.tellimed-finder-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--tm-red);
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .tellimed-finder-options {
    grid-template-columns: 1fr;
  }
  .tellimed-finder-card {
    padding: 30px 20px;
  }
}

/* -------------------------------------------------------------
   HOW IT WORKS (STEPS)
------------------------------------------------------------- */
.tellimed-steps-section {
  padding: 70px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--tm-border);
}
.tellimed-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}
.tellimed-section-badge {
  background: var(--tm-green-light);
  color: var(--tm-green-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: var(--tm-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 12px;
}
.tellimed-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--tm-dark);
  margin: 0 0 12px 0;
}
.tellimed-section-header p {
  font-size: 17px;
  color: var(--tm-gray);
  line-height: 1.6;
  margin: 0;
}
.tellimed-steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  box-sizing: border-box;
}
.tellimed-step-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 16px;
  padding: 40px 25px 30px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.tellimed-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.tellimed-step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tm-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(159, 7, 32, 0.3);
}
.tellimed-step-card img {
  height: 75px;
  width: auto;
  margin: 10px auto 18px auto;
  display: block;
  object-fit: contain;
}
.tellimed-step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--tm-dark);
  margin: 0 0 10px 0;
}
.tellimed-step-card p {
  font-size: 15px;
  color: var(--tm-gray);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .tellimed-steps-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* -------------------------------------------------------------
   POPULAR PRODUCTS GRID
------------------------------------------------------------- */
.tellimed-products-section {
  padding: 70px 0;
  background: #f8f9fa;
  border-bottom: 1px solid var(--tm-border);
}
.tellimed-products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  box-sizing: border-box;
}
.tellimed-product-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
}
.tellimed-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}
.tellimed-product-badge-wrap {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}
.tellimed-product-tag {
  background: var(--tm-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--tm-radius-pill);
}
.tellimed-product-tag.tag-kasse {
  background: var(--tm-green-dark);
}
.tellimed-product-thumb {
  position: relative;
  background: #ffffff;
  padding: 30px 20px 15px 20px;
  text-align: center;
  border-bottom: 1px solid #f1f3f5;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tellimed-product-thumb img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.tellimed-product-card:hover .tellimed-product-thumb img {
  transform: scale(1.04);
}
.tellimed-product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tellimed-product-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--tm-dark);
  margin: 0 0 6px 0;
}
.tellimed-product-subtitle {
  font-size: 13.5px;
  color: var(--tm-gray);
  margin-bottom: 16px;
  font-weight: 500;
}
.tellimed-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: #444;
  line-height: 1.9;
  flex-grow: 1;
}
.tellimed-product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tellimed-product-features li span {
  color: var(--tm-green-dark);
  font-weight: 700;
}
.tellimed-product-footer {
  border-top: 1px solid #f1f3f5;
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tellimed-product-footer {
  gap: 12px;
}
.tellimed-product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--tm-red);
  min-width: 0;
  flex: 1;
}
.tellimed-product-price small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: var(--tm-gray);
  line-height: 1.35;
}
.tellimed-product-btn {
  background: var(--tm-red);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--tm-radius-pill);
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.tellimed-product-btn:hover {
  background: var(--tm-red-dark);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .tellimed-products-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   PFLEGEKASSE PROMO BANNER
------------------------------------------------------------- */
.tellimed-kasse-banner-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.tellimed-kasse-banner {
  background: linear-gradient(135deg, #eaf5ed 0%, #f4fbf6 100%);
  border: 2px solid var(--tm-green);
  border-radius: 20px;
  padding: 40px 45px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(139, 188, 95, 0.15);
  box-sizing: border-box;
}
.tellimed-kasse-banner-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--tm-green-dark);
  margin: 0 0 10px 0;
}
.tellimed-kasse-banner-content p {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  margin: 0;
}
.tellimed-kasse-banner-action {
  text-align: right;
}
.tellimed-btn-green {
  background: var(--tm-green-dark) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: var(--tm-radius-pill) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  white-space: nowrap;
}
.tellimed-btn-green:hover {
  background: #256629 !important;
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .tellimed-kasse-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  .tellimed-kasse-banner-action {
    text-align: center;
  }
}

/* -------------------------------------------------------------
   WHY TELLIMED / TRUST PILLARS
------------------------------------------------------------- */
.tellimed-why-section {
  padding: 70px 0 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--tm-border);
}
.tellimed-why-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  box-sizing: border-box;
}
.tellimed-why-card {
  background: #f8f9fa;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
  transition: transform 0.2s ease;
  box-sizing: border-box;
}
.tellimed-why-card:hover {
  transform: translateY(-3px);
}
.tellimed-why-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.tellimed-why-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--tm-dark);
  margin: 0 0 8px 0;
}
.tellimed-why-card p {
  font-size: 13.5px;
  color: var(--tm-gray);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 980px) {
  .tellimed-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .tellimed-why-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean spacing reset for custom sections */
.tellimed-hero-section p,
.tellimed-usp-bar p,
.tellimed-finder-section p,
.tellimed-steps-section p,
.tellimed-products-section p,
.tellimed-kasse-banner p,
.tellimed-why-section p {
  margin-top: 0;
}

/* =============================================================
   ZUBEHÖR PAGES REDESIGN (Pages 5018, 2646, 5036, 4509)
   ============================================================= */
.page-id-5018 #main-content .container,
.page-id-2646 #main-content .container,
.page-id-5036 #main-content .container,
.page-id-4509 #main-content .container {
  width: 100% !important;
  max-width: 1240px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.page-id-5018 #left-area,
.page-id-2646 #left-area,
.page-id-5036 #left-area,
.page-id-4509 #left-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 20px 0 60px 0 !important;
}

.page-id-5018 #sidebar,
.page-id-2646 #sidebar,
.page-id-5036 #sidebar,
.page-id-4509 #sidebar,
.page-id-5018 .entry-title.main_title,
.page-id-2646 .entry-title.main_title,
.page-id-5036 .entry-title.main_title,
.page-id-4509 .entry-title.main_title {
  display: none !important;
}

.tellimed-zubehoer-page {
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.tellimed-zubehoer-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px auto;
  padding: 0 10px;
}

.tellimed-zubehoer-badge {
  display: inline-block;
  background: rgba(159, 7, 32, 0.08);
  color: var(--tm-red, #9f0720);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.tellimed-zubehoer-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
}

.tellimed-zubehoer-subtitle {
  font-size: 16px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Category Navigation Pills */
.tellimed-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 40px auto;
  max-width: 900px;
  padding: 0 10px;
}

.tellimed-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #475569 !important;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.tellimed-cat-link:hover {
  border-color: #9f0720;
  color: #9f0720 !important;
  background: #fffafa;
  transform: translateY(-1px);
}

.tellimed-cat-link.is-active {
  background: #9f0720 !important;
  border-color: #9f0720 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(159, 7, 32, 0.28);
}

.tellimed-cat-icon {
  font-size: 14px;
  line-height: 1;
}

/* Hub Category Cards Grid */
.tellimed-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.tellimed-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tellimed-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.tellimed-cat-card-img-wrap {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.tellimed-cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tellimed-cat-card:hover .tellimed-cat-card-img-wrap img {
  transform: scale(1.05);
}

.tellimed-cat-card-content {
  padding: 22px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tellimed-cat-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: #9f0720;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.tellimed-cat-card-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.3 !important;
}

.tellimed-cat-card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 20px 0 !important;
  flex-grow: 1;
}

.tellimed-cat-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tellimed-cat-card-btn span {
  transition: transform 0.2s ease;
}

.tellimed-cat-card:hover .tellimed-cat-card-btn {
  background: #9f0720;
  border-color: #9f0720;
  color: #ffffff !important;
}

.tellimed-cat-card:hover .tellimed-cat-card-btn span {
  transform: translateX(4px);
}

/* Banner Preview */
.tellimed-banner-preview {
  max-width: 820px;
  margin: 0 auto 35px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.tellimed-banner-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section divider */
.tellimed-zubehoer-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 40px 0 45px 0;
}

/* Products Heading */
.tellimed-zubehoer-products-heading {
  text-align: center;
  margin-bottom: 30px;
}

.tellimed-zubehoer-products-heading h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 8px 0 !important;
}

.tellimed-zubehoer-products-heading p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* WooCommerce Products Grid in Zubehör Pages */
.tellimed-zubehoer-page .woocommerce ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
  margin: 0 auto 50px auto !important;
  padding: 0 !important;
  list-style: none !important;
}

.tellimed-zubehoer-page .woocommerce ul.products:before,
.tellimed-zubehoer-page .woocommerce ul.products:after {
  display: none !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product {
  flex: 0 1 calc(33.333% - 16px) !important;
  max-width: 380px !important;
  min-width: 260px !important;
  margin: 0 !important;
  float: none !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
  border-color: #cbd5e1 !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-grow: 1 !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link .et_shop_image:first-of-type {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 200px !important;
  margin-bottom: 14px !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link .et_shop_image:nth-of-type(n+2),
.tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link .et_shop_image ~ .et_shop_image {
  display: none !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
  max-height: 190px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  transition: transform 0.25s ease !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  margin: 4px 0 10px 0 !important;
  padding: 0 !important;
  min-height: 44px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product .price {
  color: #9f0720 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  margin: 4px 0 8px 0 !important;
  display: block !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product .wc-gzd-additional-info {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin: 1px 0 !important;
  line-height: 1.35 !important;
}

.tellimed-zubehoer-page .woocommerce ul.products li.product .wc-gzd-additional-info a {
  color: #64748b !important;
  text-decoration: underline !important;
}

/* Responsiveness */
@media (max-width: 980px) {
  .tellimed-cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product {
    flex: 0 1 calc(50% - 12px) !important;
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .tellimed-cat-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tellimed-cat-card-img-wrap {
    height: 180px;
  }
  .tellimed-zubehoer-title {
    font-size: 24px !important;
  }
  .tellimed-cat-nav {
    gap: 8px;
  }
  .tellimed-cat-link {
    font-size: 13px;
    padding: 8px 16px;
  }
  .tellimed-zubehoer-page .woocommerce ul.products {
    gap: 12px !important;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product {
    flex: 0 1 calc(50% - 6px) !important;
    min-width: 140px !important;
    padding: 12px !important;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link .et_shop_image {
    height: 140px !important;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
    max-height: 130px !important;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    min-height: 38px !important;
  }
  .tellimed-zubehoer-page .woocommerce ul.products li.product .price {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 380px) {
  .tellimed-zubehoer-page .woocommerce ul.products li.product {
    flex: 0 1 100% !important;
    min-width: 100% !important;
  }
}

/* Modern Download Cards in Product Descriptions */
.tellimed-downloads-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin: 20px 0 28px 0 !important;
}
.tellimed-downloads-grid p {
  display: none !important;
}
.tellimed-download-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.tellimed-download-card:hover {
  border-color: var(--tm-red, #9f0720) !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}
.tellimed-download-card .download-icon {
  font-size: 28px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.tellimed-download-card .download-title {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  margin-bottom: 2px !important;
}
.tellimed-download-card:hover .download-title {
  color: var(--tm-red, #9f0720) !important;
}
.tellimed-download-card .download-sub {
  font-size: 12px !important;
  color: #64748b !important;
}
@media (max-width: 640px) {
  .tellimed-downloads-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------------
   MODERN ACCESSORY DETAIL SECTIONS
------------------------------------------------------------- */
.tellimed-accessory-extra-section {
  margin: 60px auto 40px auto !important;
  max-width: 1200px !important;
  padding: 0 20px !important;
}
.tellimed-accessory-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin-top: 30px !important;
}
.tellimed-accessory-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 28px 24px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.tellimed-accessory-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07) !important;
  border-color: #cbd5e1 !important;
}
.tellimed-accessory-card .acc-card-icon {
  font-size: 34px !important;
  line-height: 1 !important;
  margin-bottom: 16px !important;
  width: 64px !important;
  height: 64px !important;
  background: #f8fafc !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
}
.tellimed-accessory-card h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}
.tellimed-accessory-card p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  margin: 0 !important;
}
.tellimed-accessory-card.tellimed-acc-card-cta .tellimed-btn-outline {
  margin-top: 16px !important;
  display: inline-block !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--tm-red, #9f0720) !important;
  border: 1.5px solid var(--tm-red, #9f0720) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.tellimed-accessory-card.tellimed-acc-card-cta .tellimed-btn-outline:hover {
  background: var(--tm-red, #9f0720) !important;
  color: #ffffff !important;
}

@media (max-width: 860px) {
  .tellimed-accessory-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .tellimed-accessory-card {
    padding: 22px 18px !important;
  }
}

/* Accessory Short Description Callout */
.woocommerce-product-details__short-description {
  background: #f8fafc;
  border-left: 3px solid var(--tm-red, #9f0720);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 16px 0 20px 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}
.woocommerce-product-details__short-description p {
  margin: 0 !important;
}

/* -------------------------------------------------------------
   MODERN "ÜBER UNS" & TEAM PAGE
------------------------------------------------------------- */
.tellimed-about-hero {
  background: #fdfefe;
  padding: 60px 20px 45px 20px;
  text-align: center;
  border-bottom: 1px solid #eef0f3;
}
.tellimed-about-hero .about-badge {
  display: inline-block;
  background: #fbecee;
  color: var(--tm-red, #9f0720);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.tellimed-about-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px 0;
  line-height: 1.25;
}
.tellimed-about-hero p {
  font-size: 18px;
  color: #475569;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Key Stats Bar */
.tellimed-stats-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 35px 20px;
}
.tellimed-stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.tellimed-stat-item .stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--tm-red, #9f0720);
  line-height: 1;
  margin-bottom: 8px;
}
.tellimed-stat-item .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

/* Story & Values Section */
.tellimed-story-section {
  max-width: 1200px;
  margin: 60px auto 50px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.tellimed-story-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.3;
}
.tellimed-story-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 16px;
}
.tellimed-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tellimed-value-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  transition: all 0.2s ease;
}
.tellimed-value-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.tellimed-value-card .value-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.tellimed-value-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.tellimed-value-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Team Section */
.tellimed-team-section {
  background: #f8fafc;
  padding: 70px 20px 80px 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.tellimed-team-container {
  max-width: 1240px;
  margin: 0 auto;
}
.tellimed-team-header {
  text-align: center;
  margin-bottom: 45px;
}
.tellimed-team-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.tellimed-team-header p {
  font-size: 17px;
  color: #64748b;
  margin: 0;
}

/* Department Groups */
.tellimed-team-group {
  margin-bottom: 48px;
}
.tellimed-team-group:last-child {
  margin-bottom: 0;
}
.tellimed-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.tellimed-group-title .group-count {
  font-size: 13px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Team Grid */
.tellimed-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tellimed-team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.tellimed-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.tellimed-team-card .team-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f1f5f9;
}
.tellimed-team-card .team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tellimed-team-card .team-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.tellimed-team-card .team-role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tm-red, #9f0720);
  margin: 0 0 12px 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}
.tellimed-team-card .team-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 12px;
  transition: all 0.2s ease;
  margin-top: auto;
}
.tellimed-team-card .team-tel:hover {
  background: #ffffff;
  color: var(--tm-red, #9f0720);
  border-color: var(--tm-red, #9f0720);
}

/* Partners & Verbände */
.tellimed-partners-section {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}
.tellimed-partners-section h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 35px;
}
.tellimed-partners-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}
.tellimed-partners-grid img {
  max-height: 55px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}
.tellimed-partners-grid img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* Suppress wpautop empty paragraphs in grids */
.tellimed-team-grid > p,
.tellimed-stats-grid > p,
.tellimed-values-grid > p,
.tellimed-story-section > p {
  display: none !important;
}
.tellimed-about-cta-btns br {
  display: none !important;
}

/* Contact CTA at bottom */
.tellimed-about-cta {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 60px 20px !important;
  text-align: center !important;
}
.tellimed-about-cta-inner {
  max-width: 800px !important;
  margin: 0 auto !important;
}
.tellimed-about-cta h2 {
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}
.tellimed-about-cta p {
  color: #cbd5e1 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin-bottom: 28px !important;
}
.tellimed-about-cta-btns {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
.tellimed-about-cta-btns a.cta-btn-primary {
  background: var(--tm-red, #9f0720) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}
.tellimed-about-cta-btns a.cta-btn-primary:hover {
  background: #b90926 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}
.tellimed-about-cta-btns a.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}
.tellimed-about-cta-btns a.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .tellimed-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tellimed-story-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tellimed-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tellimed-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tellimed-about-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  .tellimed-team-grid {
    grid-template-columns: 1fr;
  }
  .tellimed-values-grid {
    grid-template-columns: 1fr;
  }
}




/* ================================================================
   REPARATUR-SERVICE CUSTOM STYLES
   ================================================================ */
:root {
		--tm-primary: #9f0720;
		--tm-primary-hover: #7a0519;
		--tm-primary-subtle: #fce8ea;
		--tm-success: #2e7d32;
		--tm-success-subtle: #e8f5ee;
		--tm-transition: 0.2s ease;
		--tm-gray-light: #f9f9f9;
		--tm-gray-border: #e2e6ea;
		--tm-text-main: #222222;
		--tm-text-muted: #666666;
		--tm-radius: 8px;
		--tm-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	}

	.reparatur-page-wrapper {
		max-width: 1200px;
		margin: 0 auto;
		box-sizing: border-box;
		color: var(--tm-text-main);
		line-height: 1.6;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
		padding: 40px 15px;
	}

	/* Hero Section */
	.reparatur-hero {
		text-align: center;
		margin-bottom: 40px;
		padding: 40px 20px;
		background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-hover) 100%);
		border-radius: var(--tm-radius);
		color: #ffffff;
		box-shadow: var(--tm-shadow);
	}

	.reparatur-hero h1 {
		color: #ffffff !important;
		font-size: 32px !important;
		margin-bottom: 10px;
		font-weight: 700 !important;
	}

	.reparatur-hero p {
		font-size: 16px;
		opacity: 0.9;
		margin: 0 auto;
		max-width: 650px;
	}

	/* Grid Layout */
	.reparatur-grid {
		display: grid;
		grid-template-columns: 1.1fr 1fr;
		gap: 30px;
		align-items: start;
	}

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

	.reparatur-card {
		background: #ffffff;
		border-radius: var(--tm-radius);
		padding: 30px;
		box-shadow: var(--tm-shadow);
		border: 1px solid var(--tm-gray-border);
		margin-bottom: 30px;
	}

	.reparatur-card h2 {
		color: var(--tm-primary) !important;
		font-size: 20px !important;
		font-weight: 600 !important;
		margin-top: 0;
		margin-bottom: 20px;
		padding-bottom: 10px;
		border-bottom: 2px solid var(--tm-primary-subtle);
	}

	/* Preistabelle */
	.reparatur-price-list {
		margin-bottom: 20px;
	}

	.reparatur-price-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 0;
		border-bottom: 1px dashed var(--tm-gray-border);
	}

	.reparatur-price-item:last-child {
		border-bottom: none;
	}

	.reparatur-price-name {
		font-weight: 600;
	}

	.reparatur-price-val {
		color: var(--tm-primary);
		font-weight: 700;
		font-size: 16px;
	}

	.reparatur-price-note {
		font-size: 12px;
		color: var(--tm-text-muted);
		background: var(--tm-gray-light);
		padding: 10px;
		border-radius: 4px;
		border-left: 3px solid var(--tm-primary);
	}

	/* Prozess-Timeline */
	.reparatur-timeline {
		position: relative;
		padding-left: 30px;
		margin-top: 15px;
	}

	.reparatur-timeline::before {
		content: '';
		position: absolute;
		left: 10px;
		top: 5px;
		bottom: 5px;
		width: 2px;
		background: var(--tm-primary-subtle);
	}

	.reparatur-timeline-item {
		position: relative;
		margin-bottom: 25px;
	}

	.reparatur-timeline-item:last-child {
		margin-bottom: 0;
	}

	.reparatur-timeline-badge {
		position: absolute;
		left: -30px;
		top: 0;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		background: var(--tm-primary);
		color: #ffffff;
		font-size: 11px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.reparatur-timeline-title {
		font-weight: 600;
		font-size: 15px;
		margin-bottom: 4px;
	}

	.reparatur-timeline-desc {
		font-size: 13px;
		color: var(--tm-text-muted);
		margin: 0;
	}

	/* Address Box */
	.reparatur-address-box {
		background: var(--tm-gray-light);
		border: 1px solid var(--tm-gray-border);
		border-radius: 4px;
		padding: 15px;
		margin-top: 15px;
	}

	.reparatur-address-box p {
		margin: 0 0 5px;
	}

	/* Form-Layout */
	#reparatur-form-wrapper {
		position: relative;
	}

	/* Progress Indicator */
	.reparatur-progress {
		display: flex;
		justify-content: space-between;
		margin-bottom: 25px;
		position: relative;
	}

	.reparatur-progress::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		top: 15px;
		height: 2px;
		background: var(--tm-gray-border);
		z-index: 1;
	}

	.progress-step {
		position: relative;
		z-index: 2;
		text-align: center;
		flex: 1;
	}

	.progress-dot {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: #ffffff;
		border: 2px solid var(--tm-gray-border);
		color: var(--tm-text-muted);
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto 5px;
		transition: all 0.3s ease;
		font-size: 13px;
	}

	.progress-label {
		font-size: 11px;
		color: var(--tm-text-muted);
		display: block;
		font-weight: 500;
	}

	.progress-step.is-active .progress-dot {
		border-color: var(--tm-primary);
		color: var(--tm-primary);
		background: var(--tm-primary-subtle);
	}

	.progress-step.is-active .progress-label {
		color: var(--tm-primary);
		font-weight: 600;
	}

	.progress-step.is-complete .progress-dot {
		background: var(--tm-primary);
		border-color: var(--tm-primary);
		color: #ffffff;
	}

	/* Form Steps */
	.form-step {
		display: none;
	}

	.form-step.is-active {
		display: block;
	}

	.form-step h3 {
		font-size: 16px !important;
		color: var(--tm-text-main) !important;
		margin-bottom: 20px;
		margin-top: 0;
		font-weight: 600 !important;
	}

	/* Form Elements */
	.reparatur-page-wrapper .form-group {
		margin-bottom: 18px;
	}

	.reparatur-page-wrapper .form-row {
		display: flex;
		gap: 15px;
	}

	.reparatur-page-wrapper .form-row .form-group {
		flex: 1;
	}

	@media (max-width: 575px) {
		.reparatur-page-wrapper .form-row {
			flex-direction: column;
			gap: 0;
		}
	}

	.reparatur-page-wrapper .form-label {
		display: block;
		font-size: 13px;
		font-weight: 600;
		margin-bottom: 6px;
	}

	.reparatur-page-wrapper .form-label span {
		color: var(--tm-primary);
	}

	.reparatur-page-wrapper .form-control {
		width: 100%;
		border: 1px solid var(--tm-gray-border);
		border-radius: 4px;
		padding: 10px 12px;
		font-size: 14px;
		transition: border-color var(--tm-transition);
		background-color: var(--tm-gray-light);
	}

	.reparatur-page-wrapper .form-control:focus {
		outline: none;
		border-color: var(--tm-primary);
		background-color: #ffffff;
	}

	.reparatur-page-wrapper textarea.form-control {
		resize: vertical;
		min-height: 90px;
	}

	/* Form Checkbox */
	.reparatur-page-wrapper .form-checkbox {
		margin-bottom: 15px;
		position: relative;
	}

	.reparatur-page-wrapper .form-checkbox-label {
		display: flex;
		align-items: flex-start;
		cursor: pointer;
		font-size: 13px;
		font-weight: normal;
	}

	.reparatur-page-wrapper .form-checkbox-label input[type="checkbox"] {
		margin-top: 3px;
		margin-right: 10px;
		flex-shrink: 0;
	}

	/* Errors & Messages */
	.error-msg {
		color: var(--tm-primary);
		font-size: 11px;
		margin-top: 4px;
		display: block;
		font-weight: 500;
	}

	.reparatur-errors-summary {
		background: #fdf0ef;
		border: 1px solid #f5c6cb;
		border-radius: 4px;
		padding: 15px;
		color: #721c24;
		margin-bottom: 20px;
		font-size: 14px;
	}

	.reparatur-errors-summary ul {
		margin: 5px 0 0;
		padding-left: 20px;
	}

	/* Buttons Nav */
	.reparatur-form-nav {
		display: flex;
		justify-content: space-between;
		margin-top: 25px;
		padding-top: 20px;
		border-top: 1px solid var(--tm-gray-border);
	}

	.reparatur-btn {
		padding: 12px 24px;
		border-radius: 4px;
		font-weight: 600;
		font-size: 14px;
		cursor: pointer;
		transition: all 0.2s ease;
		border: none;
		text-align: center;
		display: inline-block;
	}

	.reparatur-btn-primary {
		background: var(--tm-primary) !important;
		color: #ffffff !important;
	}

	.reparatur-btn-primary:hover {
		background: var(--tm-primary-hover) !important;
		color: #ffffff !important;
	}

	.reparatur-btn-secondary {
		background: #e2e8f0 !important;
		color: #1e293b !important;
	}

	.reparatur-btn-secondary:hover {
		background: #cbd5e1 !important;
		color: #0f172a !important;
	}

	/* Signature area */
	.signature-wrap {
		border: 1px solid var(--tm-gray-border);
		border-radius: 4px;
		background: var(--tm-gray-light);
		padding: 12px;
		margin-bottom: 10px;
	}

	.signature-canvas-wrap {
		background: #ffffff;
		border: 1px solid #ced4da;
		border-radius: 4px;
		position: relative;
		height: 120px;
	}

	.signature-canvas-wrap canvas {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		cursor: crosshair;
		touch-action: none;
	}

	.signature-canvas-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 5px;
		font-size: 12px;
		color: var(--tm-text-muted);
	}

	#clear-signature {
		color: var(--tm-primary);
		text-decoration: underline;
		cursor: pointer;
		font-weight: 600;
	}

	/* Success Screen */
	.reparatur-success {
		text-align: center;
		padding: 40px 20px;
	}

	.reparatur-success-icon {
		width: 64px;
		height: 64px;
		border-radius: 50%;
		background: var(--tm-success-subtle);
		color: var(--tm-success);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32px;
		margin: 0 auto 20px;
	}

	.reparatur-success h2 {
		color: var(--tm-success) !important;
		font-size: 24px !important;
		margin-bottom: 10px;
	}

	.reparatur-success-summary {
		background: var(--tm-gray-light);
		border: 1px solid var(--tm-gray-border);
		border-radius: var(--tm-radius);
		padding: 20px;
		text-align: left;
		margin: 30px auto;
		max-width: 600px;
	}

	.reparatur-success-summary h3 {
		font-size: 15px !important;
		color: var(--tm-text-main) !important;
		margin-top: 0;
		margin-bottom: 10px;
		font-weight: 600 !important;
	}

/* ================================================================
   DOWNLOADS & FORMULARE PAGE STYLES (SCOPED)
   ================================================================ */
.tellimed-downloads-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  box-sizing: border-box;
  font-family: inherit;
  color: #1e293b;
}

.tellimed-downloads-hero {
  text-align: center;
  margin-bottom: 45px;
  padding: 45px 25px;
  background: linear-gradient(135deg, #9f0720 0%, #7a0519 100%);
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(159, 7, 32, 0.15);
}

.downloads-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tellimed-downloads-hero h1 {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.tellimed-downloads-hero p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 720px;
  color: #fce8ea;
}

.tellimed-dl-page-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  align-items: start !important;
}

.tellimed-dl-page-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
}

.tellimed-dl-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  padding: 26px 24px !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  display: block !important;
}

.tellimed-dl-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
}

.dl-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.dl-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-card-header h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
}

.dl-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.download-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tellimed-dl-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #9f0720 !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 6px rgba(159, 7, 32, 0.15) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.tellimed-dl-btn:hover {
  background: #7a0519 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(159, 7, 32, 0.25) !important;
}

.tellimed-dl-btn.dl-btn-highlight {
  background: linear-gradient(135deg, #9f0720 0%, #b80d29 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dl-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.dl-btn-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.35;
}

.dl-btn-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.dl-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tellimed-dl-btn:hover .dl-btn-icon {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.28);
}

/* Help & Contact Banner */
.tellimed-downloads-help {
  margin-top: 50px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #9f0720;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tellimed-downloads-help .help-content h3 {
  margin: 0 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.tellimed-downloads-help .help-content p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.tellimed-downloads-help .help-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.tellimed-downloads-help .help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tellimed-downloads-help .help-btn-phone {
  background: #9f0720 !important;
  color: #ffffff !important;
}

.tellimed-downloads-help .help-btn-phone:hover {
  background: #7a0519 !important;
  color: #ffffff !important;
}

.tellimed-downloads-help .help-btn-email {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

.tellimed-downloads-help .help-btn-email:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Responsive */
@media (max-width: 991px) {
  .tellimed-dl-page-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  .tellimed-downloads-help {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .tellimed-downloads-help .help-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .tellimed-downloads-help .help-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .tellimed-downloads-hero {
    padding: 30px 18px;
  }
  .tellimed-downloads-hero h1 {
    font-size: 24px !important;
  }
  .tellimed-dl-card {
    padding: 20px 16px !important;
  }
  .tellimed-dl-btn {
    padding: 10px 14px !important;
  }
}

/* -------------------------------------------------------------
   TELLIMED ANTRAG / AUFTRAG PAGE
------------------------------------------------------------- */
.tellimed-antrag-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tellimed-antrag-hero {
  text-align: center;
  margin-bottom: 35px;
  padding: 45px 25px;
  background: linear-gradient(135deg, #9f0720 0%, #7a0519 100%);
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(159, 7, 32, 0.15);
}

.antrag-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tellimed-antrag-hero h1 {
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.tellimed-antrag-hero p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 720px;
  color: #fce8ea;
}

.tellimed-antrag-content {
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .tellimed-antrag-wrapper {
    padding: 20px 14px 60px;
  }
  .tellimed-antrag-hero {
    padding: 30px 18px;
    margin-bottom: 25px;
  }
  .tellimed-antrag-hero h1 {
    font-size: 23px !important;
  }
  .tellimed-antrag-hero p {
    font-size: 14px;
  }
}

/* -------------------------------------------------------------
   TELLIMED WIDERRUF PAGE
------------------------------------------------------------- */
.tellimed-widerruf-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tellimed-widerruf-hero {
  text-align: center;
  margin-bottom: 35px;
  padding: 45px 25px;
  background: linear-gradient(135deg, #9f0720 0%, #7a0519 100%);
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(159, 7, 32, 0.15);
}

.widerruf-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tellimed-widerruf-hero h1 {
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.tellimed-widerruf-hero p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 680px;
  color: #fce8ea;
}

/* Info Cards Row */
.tellimed-widerruf-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.widerruf-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.widerruf-info-card .info-card-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.widerruf-info-card .info-card-text h4 {
  margin: 0 0 4px 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.widerruf-info-card .info-card-text p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Card Wrapping the Form */
.tellimed-widerruf-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Form Styles Override for tellimed-widerrufsbutton */
.twb-formular-wrap {
  max-width: 100% !important;
  margin: 0 !important;
}

.twb-formular-wrap h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.twb-formular-wrap p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 24px;
}

.twb-form .twb-field {
  margin-bottom: 20px !important;
}

.twb-form .twb-field label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}

.twb-required {
  color: #9f0720 !important;
  font-weight: 800 !important;
}

.twb-form .twb-field input[type="text"],
.twb-form .twb-field input[type="email"] {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.twb-form .twb-field textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  min-height: 90px;
}

.twb-form .twb-field input:focus,
.twb-form .twb-field textarea:focus {
  border-color: #9f0720 !important;
  box-shadow: 0 0 0 3px rgba(159, 7, 32, 0.12) !important;
}

.twb-hinweis {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3px solid #9f0720 !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #475569 !important;
  margin: 24px 0 !important;
  line-height: 1.5 !important;
}

.twb-submit-btn {
  background: #9f0720 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(159, 7, 32, 0.28) !important;
  display: inline-block !important;
  width: auto !important;
}

.twb-submit-btn:hover {
  background: #7a0519 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(159, 7, 32, 0.38) !important;
}

/* Confirmation Card */
.twb-bestaetigung {
  background: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  border-radius: 12px !important;
  padding: 36px 30px !important;
  text-align: center !important;
}

.twb-bestaetigung-icon {
  width: 52px;
  height: 52px;
  background: #16a34a;
  color: #ffffff !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px !important;
  font-weight: 800;
  margin-bottom: 16px !important;
}

.twb-bestaetigung h2 {
  color: #166534 !important;
  font-size: 24px !important;
  margin-bottom: 12px !important;
}

.twb-bestaetigung p {
  color: #1e293b !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

@media (max-width: 768px) {
  .tellimed-widerruf-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tellimed-widerruf-card {
    padding: 24px 18px;
  }
  .twb-submit-btn {
    width: 100% !important;
  }
}

/* -------------------------------------------------------------
   TELLIMED FAQ PAGE
------------------------------------------------------------- */
.tellimed-faq-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tellimed-faq-hero {
  text-align: center;
  margin-bottom: 35px;
  padding: 45px 25px;
  background: linear-gradient(135deg, #9f0720 0%, #7a0519 100%);
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(159, 7, 32, 0.15);
}

.faq-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tellimed-faq-hero h1 {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.tellimed-faq-hero p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 720px;
  color: #fce8ea;
}

/* Search Box */
.tellimed-faq-search-wrap {
  margin-bottom: 25px;
}

.faq-search-box {
  position: relative;
  max-width: 100%;
}

.faq-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.faq-search-box input[type="text"] {
  width: 100% !important;
  height: 52px !important;
  padding: 0 45px 0 50px !important;
  font-size: 15.5px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.faq-search-box input[type="text"]:focus {
  border-color: #9f0720 !important;
  box-shadow: 0 0 0 3px rgba(159, 7, 32, 0.12) !important;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.faq-no-results {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 14.5px;
}

/* Filter Bar */
.tellimed-faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.faq-filter-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.faq-filter-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.faq-filter-btn.is-active {
  background: #9f0720 !important;
  border-color: #9f0720 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(159, 7, 32, 0.25) !important;
}

/* FAQ Sections */
.tellimed-faq-section {
  margin-bottom: 45px;
}

.faq-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.section-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff8f8;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.faq-section-header h2 {
  margin: 0 0 4px 0 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.faq-section-header p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #64748b !important;
}

/* Accordion Group & Items */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tellimed-faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tellimed-faq-item:hover {
  border-color: #cbd5e1;
}

.tellimed-faq-item[open] {
  border-color: #9f0720;
  box-shadow: 0 4px 14px rgba(159, 7, 32, 0.06);
}

.tellimed-faq-summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15.5px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  list-style: none;
  user-select: none;
}

.tellimed-faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q-title {
  flex: 1;
  line-height: 1.4;
}

.faq-chevron {
  font-size: 18px;
  color: #9f0720;
  font-weight: 800;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.tellimed-faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.tellimed-faq-answer {
  padding: 14px 20px 20px 20px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
}

.tellimed-faq-answer p {
  margin: 0 0 10px 0;
}

.tellimed-faq-answer p:last-child {
  margin-bottom: 0;
}

.tellimed-faq-answer ul,
.tellimed-faq-answer ol {
  margin: 8px 0 12px 0;
  padding-left: 20px;
}

.tellimed-faq-answer li {
  margin-bottom: 6px;
}

.tellimed-faq-answer a {
  color: #9f0720;
  font-weight: 600;
  text-decoration: underline;
}

.tellimed-faq-answer a:hover {
  color: #7a0519;
}

@media (max-width: 768px) {
  .tellimed-faq-wrapper {
    padding: 20px 14px 60px;
  }
  .tellimed-faq-hero {
    padding: 30px 18px;
    margin-bottom: 25px;
  }
  .tellimed-faq-hero h1 {
    font-size: 24px !important;
  }
  .tellimed-faq-hero p {
    font-size: 14px;
  }
  .faq-filter-btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .tellimed-faq-summary {
    padding: 14px 16px;
    font-size: 14.5px;
  }
  .tellimed-faq-answer {
    padding: 12px 16px 16px 16px;
    font-size: 13.5px;
  }
}

/* ==========================================================================
   tellimed Programmierservice (Overview & Device Form Pages)
   ========================================================================== */

.tellimed-programm-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 35px 20px 80px;
  box-sizing: border-box;
}

/* Hero Section */
.tellimed-programm-hero {
  background: linear-gradient(135deg, #820518 0%, #a62639 50%, #c41e3a 100%);
  border-radius: 18px;
  padding: 45px 35px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 35px;
  box-shadow: 0 10px 30px rgba(166, 38, 57, 0.16);
  position: relative;
  overflow: hidden;
}

.tellimed-programm-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.programm-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.tellimed-programm-hero h1 {
  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
}

.tellimed-programm-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.programm-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Wichtige Vorbereitung Box */
.programm-notice-box {
  background: #fff8f8;
  border: 1.5px solid #fecdd3;
  border-left: 6px solid #a62639;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 45px;
  box-shadow: 0 4px 18px rgba(166, 38, 57, 0.05);
}

.notice-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.notice-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.notice-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #820518;
}

.notice-header p {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
}

.notice-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.notice-step-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.notice-step-card .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #a62639;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-step-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.notice-step-card p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.notice-step-card strong {
  color: #820518;
}

/* Geräteauswahl Section Header */
.programm-section-title {
  text-align: center;
  margin-bottom: 30px;
}

.programm-section-title h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.programm-section-title p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Device Selection Grid */
.programm-device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

.programm-device-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.programm-device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(166, 38, 57, 0.12);
  border-color: #fca5a5;
}

.card-img-wrap {
  position: relative;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.card-img-wrap img {
  max-height: 190px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.programm-device-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 11px;
  border-radius: 20px;
}

.card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 18px;
  min-height: 42px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.card-features li {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.card-features .check-icon {
  color: #16a34a;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.programm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.25);
  transition: all 0.2s ease;
  text-align: center;
}

.programm-btn:hover {
  background: linear-gradient(135deg, #820518 0%, #600210 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 38, 57, 0.35);
  color: #ffffff !important;
}

.programm-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.programm-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Ablauf Section */
.programm-steps-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 38px 30px;
  margin-bottom: 45px;
}

.steps-heading {
  text-align: center;
  margin-bottom: 30px;
}

.steps-heading h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.steps-heading p {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-item {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.step-badge {
  display: inline-block;
  background: #fee2e2;
  color: #a62639;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.step-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.step-item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.step-arrow {
  font-size: 22px;
  color: #cbd5e1;
  font-weight: bold;
  flex-shrink: 0;
}

/* FAQ Section */
.programm-faq-section {
  margin-bottom: 50px;
}

.faq-heading h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 24px;
  text-align: center;
}

.programm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.programm-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.programm-faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.programm-faq-summary {
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.programm-faq-summary::-webkit-details-marker {
  display: none;
}

.programm-faq-summary .faq-toggle-icon {
  font-size: 20px;
  font-weight: 600;
  color: #a62639;
  transition: transform 0.2s ease;
}

.programm-faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

.programm-faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* ==========================================================================
   tellimed Device Form Subpage Styles
   ========================================================================== */

.programm-back-nav {
  margin-bottom: 20px;
}

.programm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #a62639;
  text-decoration: none !important;
  transition: color 0.2s;
}

.programm-back-link:hover {
  color: #820518;
  text-decoration: underline !important;
}

.device-form-hero {
  padding: 34px 28px;
  margin-bottom: 30px;
}

.tellimed-programm-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

/* Checklist Block Styling */
.form-checklist-block {
  background: #fffbfa;
  border: 2px solid #a62639;
  border-radius: 14px;
  padding: 30px 28px;
  margin-bottom: 35px;
  box-shadow: 0 4px 18px rgba(166, 38, 57, 0.08);
}

.form-checklist-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: #a62639 !important;
  margin: 0 0 8px;
}

.form-checklist-block .checklist-intro {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.5;
}

.form-checklist-block .checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form-checklist-block .checklist-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  user-select: none;
}

.form-checklist-block .checklist-item:hover {
  border-color: #a62639;
  background: #fff5f5;
}

.form-checklist-block .checklist-item.is-checked {
  border-color: #22c55e !important;
  background: #f0fdf4 !important;
}

.form-checklist-block .checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: #a62639;
  cursor: pointer;
  margin: 0 12px 0 0 !important;
}

.form-checklist-block .checklist-item label {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  margin: 0 !important;
  width: 100%;
  display: flex;
  align-items: center;
}

.form-checklist-block .checklist-item.is-checked label {
  color: #15803d;
}

.form-checklist-block .checklist-hint {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checklist-block .checklist-hint-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.form-checklist-block .checklist-hint-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-checklist-block .checklist-hint-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* CF7 Form Body */
.programmierservice-body {
  animation: fadeIn 0.4s ease-out;
}

.programmierservice-body .form-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 24px;
  margin-bottom: 24px;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.programmierservice-body .form-block h2 {
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.field-normal {
  width: 100%;
}

.field-mid {
  width: calc(50% - 8px);
}

.field-small {
  width: calc(20% - 13px);
}

.field-big {
  width: calc(80% - 8px);
}

.programmierservice-body label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  width: 100%;
}

.programmierservice-body input[type="text"],
.programmierservice-body input[type="email"],
.programmierservice-body input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

.programmierservice-body input[type="text"]:focus,
.programmierservice-body input[type="email"]:focus,
.programmierservice-body input[type="tel"]:focus {
  border-color: #a62639;
  outline: none;
  box-shadow: 0 0 0 3px rgba(166, 38, 57, 0.12);
}

.programmierservice-body .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.programmierservice-body .wpcf7-list-item {
  margin: 0 !important;
}

.programmierservice-body .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.programmierservice-body .form-info {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.programmierservice-body .acceptance {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 24px;
  width: 100%;
}

.programmierservice-body .acceptance a {
  color: #a62639;
  font-weight: 600;
  text-decoration: underline;
}

.programmierservice-body input[type="submit"].wpcf7-submit {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.3);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 20px auto 0;
  text-align: center;
}

.programmierservice-body input[type="submit"].wpcf7-submit:hover {
  background: linear-gradient(135deg, #820518 0%, #600210 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 38, 57, 0.4);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .notice-steps-grid {
    grid-template-columns: 1fr;
  }
  .programm-device-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    flex-direction: column;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .field-small {
    width: calc(50% - 8px);
  }
  .field-big {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .tellimed-programm-wrapper {
    padding: 20px 14px 60px;
  }
  .tellimed-programm-hero {
    padding: 30px 18px;
    margin-bottom: 25px;
  }
  .tellimed-programm-hero h1 {
    font-size: 24px !important;
  }
  .tellimed-programm-hero p {
    font-size: 14px;
  }
  .notice-header {
    flex-direction: column;
  }
  .field-mid {
    width: 100%;
  }
  .field-small {
    width: 100%;
  }
  .tellimed-programm-form-card {
    padding: 22px 14px;
  }
  .form-checklist-block {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   tellimed Rechtliche Seiten / Legal Pages (Impressum, Datenschutz, AGB, etc.)
   ========================================================================== */

.tellimed-legal-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 35px 20px 80px;
  box-sizing: border-box;
}

/* Hero Section */
.tellimed-legal-hero {
  background: linear-gradient(135deg, #820518 0%, #a62639 50%, #c41e3a 100%);
  border-radius: 18px;
  padding: 42px 32px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(166, 38, 57, 0.16);
  position: relative;
  overflow: hidden;
}

.tellimed-legal-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.legal-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}

.tellimed-legal-hero h1 {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.25;
}

.tellimed-legal-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Legal Quick Navigation Bar */
.tellimed-legal-nav {
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
}

.legal-nav-track {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 25px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.legal-nav-pill:hover {
  border-color: #a62639;
  color: #a62639;
  background: #fff5f5;
}

.legal-nav-pill.is-active {
  background: #a62639;
  border-color: #a62639;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(166, 38, 57, 0.25);
}

/* Legal Content Card */
.tellimed-legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 45px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  font-size: 15.5px;
  line-height: 1.75;
  color: #334155;
}

.tellimed-legal-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.tellimed-legal-card h2:first-child {
  margin-top: 0;
}

.tellimed-legal-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 26px 0 10px;
}

.tellimed-legal-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin: 20px 0 8px;
}

.tellimed-legal-card p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: #334155;
}

.tellimed-legal-card strong {
  color: #0f172a;
}

.tellimed-legal-card ul,
.tellimed-legal-card ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.tellimed-legal-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.tellimed-legal-card a {
  color: #a62639;
  font-weight: 600;
  text-decoration: underline;
}

.tellimed-legal-card a:hover {
  color: #820518;
}

.tellimed-legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}

.tellimed-legal-card th,
.tellimed-legal-card td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.tellimed-legal-card th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.tellimed-legal-card blockquote {
  background: #fff8f8;
  border-left: 4px solid #a62639;
  margin: 24px 0;
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Legal Highlight Boxes & Cards */
.legal-highlight-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 26px 0;
}

.legal-highlight-box h3 {
  margin-top: 0 !important;
  color: #0f172a;
}

.legal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.legal-feature-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
}

.legal-feature-card h3 {
  margin-top: 0 !important;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #820518;
}

.legal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.25);
  transition: all 0.2s ease;
  margin: 10px 0;
}

.legal-action-btn:hover {
  background: linear-gradient(135deg, #820518 0%, #600210 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 38, 57, 0.35);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .tellimed-legal-wrapper {
    padding: 20px 14px 60px;
  }
  .tellimed-legal-hero {
    padding: 30px 18px;
    margin-bottom: 20px;
  }
  .tellimed-legal-hero h1 {
    font-size: 24px !important;
  }
  .tellimed-legal-hero p {
    font-size: 14px;
  }
  .tellimed-legal-card {
    padding: 26px 18px;
    font-size: 14.5px;
  }
  .legal-nav-track {
    justify-content: flex-start;
  }
  .legal-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TELLIMED WOOCOMMERCE NOTICES & ADD-TO-CART CONFIRMATION
   ========================================================================== */

/* Spacing and container reset */
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper {
  margin-bottom: 24px !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

/* Clear Divi float fixes & borders */
.woocommerce-message::after,
.woocommerce-error::after,
.woocommerce-info::after {
  display: none !important;
}

/* Base notice container overrides for Divi */
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message,
div.woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info,
div.woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error,
div.woocommerce-error {
  margin: 0 0 26px 0 !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
  line-height: 1.5 !important;
}

/* SUCCESS (Warenkorb & Erfolgsmeldungen) */
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message,
div.woocommerce-message {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 6px solid #16a34a !important;
  color: #14532d !important;
}

/* INFO */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info,
div.woocommerce-info {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-left: 6px solid #0284c7 !important;
  color: #0369a1 !important;
}

/* ERROR */
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error,
div.woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 6px solid #dc2626 !important;
  color: #991b1b !important;
}

/* Fallback icons & layout for standard WooCommerce messages (when custom inner HTML isn't active) */
.woocommerce .woocommerce-message:not(:has(.tellimed-cart-notice-inner)),
.woocommerce-page .woocommerce-message:not(:has(.tellimed-cart-notice-inner)) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px 18px !important;
}

.woocommerce .woocommerce-message:not(:has(.tellimed-cart-notice-inner))::before,
.woocommerce-page .woocommerce-message:not(:has(.tellimed-cart-notice-inner))::before {
  content: "" !important;
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: #16a34a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px !important;
  vertical-align: middle !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

.woocommerce .woocommerce-message:not(:has(.tellimed-cart-notice-inner)) .button {
  margin-left: auto !important;
}

.woocommerce .woocommerce-message:has(.tellimed-cart-notice-inner)::before,
.woocommerce-page .woocommerce-message:has(.tellimed-cart-notice-inner)::before {
  display: none !important;
}

.woocommerce .woocommerce-info::before,
.woocommerce-page .woocommerce-info::before {
  content: "" !important;
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: #0284c7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px !important;
  vertical-align: middle !important;
  margin-right: 12px !important;
}

.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before {
  content: "" !important;
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: #dc2626 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px !important;
  vertical-align: middle !important;
  margin-right: 12px !important;
}

/* Custom Tellimed Cart Notice Component Structure */
.tellimed-cart-notice-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 20px !important;
}

.tellimed-cart-notice-content {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex: 1 1 auto !important;
}

.tellimed-cart-notice-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background-color: #16a34a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28) !important;
}

.tellimed-cart-notice-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.tellimed-cart-notice-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #14532d !important;
  letter-spacing: -0.2px !important;
}

.tellimed-cart-notice-msg {
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: #166534 !important;
  line-height: 1.4 !important;
}

.tellimed-notice-product-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.tellimed-notice-qty {
  color: #64748b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

.tellimed-cart-notice-actions {
  flex-shrink: 0 !important;
}

/* Tellimed Action Buttons inside notices */
.woocommerce .woocommerce-message .button,
.woocommerce-page .woocommerce-message .button,
.tellimed-cart-notice-btn,
.woocommerce .woocommerce-info .button,
.woocommerce-page .woocommerce-info .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 9px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(166, 38, 57, 0.22) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce .woocommerce-message .button:hover,
.woocommerce-page .woocommerce-message .button:hover,
.tellimed-cart-notice-btn:hover,
.woocommerce .woocommerce-info .button:hover,
.woocommerce-page .woocommerce-info .button:hover {
  background: linear-gradient(135deg, #820518 0%, #5f010f 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(166, 38, 57, 0.32) !important;
}

.woocommerce .woocommerce-message .button svg,
.tellimed-cart-notice-btn svg {
  transition: transform 0.2s ease !important;
}

.woocommerce .woocommerce-message .button:hover svg,
.tellimed-cart-notice-btn:hover svg {
  transform: translateX(3px) !important;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  .woocommerce .woocommerce-message,
  .woocommerce-page .woocommerce-message,
  div.woocommerce-message,
  .woocommerce .woocommerce-info,
  .woocommerce-page .woocommerce-info,
  div.woocommerce-info,
  .woocommerce .woocommerce-error,
  .woocommerce-page .woocommerce-error,
  div.woocommerce-error {
    padding: 14px 16px !important;
    margin-bottom: 20px !important;
  }

  .tellimed-cart-notice-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .tellimed-cart-notice-content {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .tellimed-cart-notice-badge {
    width: 36px !important;
    height: 36px !important;
    margin-top: 2px !important;
    background-size: 17px !important;
  }

  .tellimed-cart-notice-title {
    font-size: 15px !important;
  }

  .tellimed-cart-notice-msg {
    font-size: 13.5px !important;
  }

  .tellimed-cart-notice-actions {
    width: 100% !important;
  }

  .woocommerce .woocommerce-message .button,
  .woocommerce-page .woocommerce-message .button,
  .tellimed-cart-notice-btn {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 18px !important;
    font-size: 14.5px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   TELLIMED MODERN WARENKORB REDESIGN
   ========================================================================== */

/* Page container resets */
.woocommerce-cart .entry-title.main_title {
  display: none !important;
}

.woocommerce-cart #left-area {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 !important;
}

.woocommerce-cart #sidebar {
  display: none !important;
}

.woocommerce-cart #content-area {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 10px 16px 60px !important;
}

.woocommerce-cart .container {
  max-width: 1240px !important;
  width: 100% !important;
}

/* Cart Header & Stepper */
.tellimed-cart-header {
  margin-bottom: 30px;
}

.tellimed-cart-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.tellimed-cart-heading {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.4px !important;
}

.tellimed-cart-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.tellimed-checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tellimed-checkout-stepper .stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14.5px;
}

.tellimed-checkout-stepper .stepper-step.active {
  color: #a62639;
  font-weight: 700;
}

.tellimed-checkout-stepper .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tellimed-checkout-stepper .stepper-step.active .step-num {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(166, 38, 57, 0.35);
}

.tellimed-checkout-stepper .stepper-line {
  flex: 0 1 80px;
  height: 2px;
  background: #e2e8f0;
}

/* Two Column Desktop Layout */
@media (min-width: 992px) {
  .woocommerce-cart .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 32px !important;
  }

  .woocommerce-cart .woocommerce-notices-wrapper,
  .woocommerce-cart .tellimed-cart-header {
    width: 100% !important;
  }

  .woocommerce-cart form.woocommerce-cart-form {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: calc(64% - 16px) !important;
  }

  .woocommerce-cart .cart-collaterals {
    width: calc(36% - 16px) !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 90px !important;
  }
}

/* Cart Table Styles */
.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 24px !important;
}

.woocommerce-cart table.shop_table.cart thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-cart table.shop_table.cart tbody td {
  padding: 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

/* Remove button */
.woocommerce-cart table.shop_table.cart a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #fef2f2 !important;
  color: #ef4444 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart a.remove:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

/* Product thumbnail */
.woocommerce-cart table.shop_table.cart th.product-thumbnail {
  width: 120px !important;
}
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
  width: 120px !important;
  text-align: center !important;
  padding: 16px 12px !important;
}
.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 104px !important;
  height: 104px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 6px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease !important;
}
.woocommerce-cart table.shop_table.cart .product-thumbnail a:hover img {
  transform: scale(1.04) !important;
}

/* Product title & variations */
.woocommerce-cart table.shop_table.cart .product-name a {
  color: #0f172a !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart .product-name a:hover {
  color: #a62639 !important;
}

.woocommerce-cart table.shop_table.cart dl.variation {
  margin: 6px 0 0 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
}

.woocommerce-cart table.shop_table.cart dl.variation dt {
  font-weight: 600 !important;
  color: #475569 !important;
}

.woocommerce-cart table.shop_table.cart dl.variation dd {
  margin-bottom: 2px !important;
}

/* Price & Subtotal */
.woocommerce-cart table.shop_table.cart .product-price {
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: #a62639 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Quantity input */
.woocommerce-cart table.shop_table.cart .quantity input.qty {
  width: 58px !important;
  height: 40px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

/* Cart Actions / Coupon Row */
.woocommerce-cart table.shop_table.cart td.actions {
  padding: 18px 20px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.woocommerce-cart table.shop_table.cart td.actions #coupon_code {
  height: 42px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  width: 170px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"] {
  height: 42px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"]:hover {
  background: #1e293b !important;
  transform: translateY(-1px) !important;
}

.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  height: 42px !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"]:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Benefits Card under Table */
.tellimed-cart-benefits-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.benefits-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
}

.benefit-text span {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.benefit-text a {
  color: inherit;
  text-decoration: underline;
}

/* Cart Totals Box */
.woocommerce-cart .cart_totals {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 26px 24px !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05) !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

.woocommerce-cart .cart_totals table.shop_table {
  width: 100% !important;
  border: none !important;
  border-collapse: collapse !important;
  margin: 0 0 20px 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table tr th {
  padding: 12px 0 !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  text-align: left !important;
}

.woocommerce-cart .cart_totals table.shop_table tr td {
  padding: 12px 0 !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-align: right !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.woocommerce-cart .cart_totals tr.order-total th {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding-top: 16px !important;
}

.woocommerce-cart .cart_totals tr.order-total td {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  color: #a62639 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  padding-top: 16px !important;
}

/* Shipping Calculator Form Redesign */
.woocommerce-cart .shipping-calculator-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #820518 !important;
  text-decoration: none !important;
  padding: 5px 12px !important;
  border-radius: 7px !important;
  background: #fff5f5 !important;
  border: 1px solid #fed7d7 !important;
  margin-top: 8px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart .shipping-calculator-button:hover {
  color: #ffffff !important;
  background: #820518 !important;
  border-color: #820518 !important;
}

.woocommerce-cart .shipping-calculator-form {
  text-align: left !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px 16px !important;
  margin-top: 14px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.woocommerce-cart .shipping-calculator-form p.form-row {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  text-align: left !important;
  clear: both !important;
}

.woocommerce-cart .shipping-calculator-form label {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.woocommerce-cart .shipping-calculator-form label .required {
  color: #dc2626 !important;
}

.woocommerce-cart .shipping-calculator-form label .optional {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-size: 11.5px !important;
}

/* Shipping inputs overriding Divi's aggressive #eee */
.woocommerce form .form-row input.input-text#calc_shipping_city,
.woocommerce form .form-row input.input-text#calc_shipping_postcode,
.woocommerce-cart .shipping-calculator-form input.input-text,
.woocommerce-cart .shipping-calculator-form input[type="text"],
.woocommerce-cart table.shop_table .shipping-calculator-form input {
  width: 100% !important;
  height: 42px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  line-height: normal !important;
  box-shadow: none !important;
  text-align: left !important;
}

.woocommerce form .form-row input.input-text#calc_shipping_city:focus,
.woocommerce form .form-row input.input-text#calc_shipping_postcode:focus,
.woocommerce-cart .shipping-calculator-form input.input-text:focus {
  border-color: #a62639 !important;
  box-shadow: 0 0 0 3px rgba(166, 38, 57, 0.12) !important;
}

/* Shipping select2 custom styling */
.woocommerce-cart .shipping-calculator-form .select2-container {
  width: 100% !important;
  text-align: left !important;
}

.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection--single {
  height: 42px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart .shipping-calculator-form .select2-container--open .select2-selection--single,
.woocommerce-cart .shipping-calculator-form .select2-container--focus .select2-selection--single {
  border-color: #a62639 !important;
  box-shadow: 0 0 0 3px rgba(166, 38, 57, 0.12) !important;
}

.woocommerce-cart .shipping-calculator-form .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 0 !important;
  padding-right: 24px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.woocommerce-cart .shipping-calculator-form .select2-selection__arrow {
  height: 40px !important;
  right: 10px !important;
  top: 0 !important;
}

/* Shipping calculator submit button overriding Divi #2ea3f2 */
.woocommerce .cart-collaterals .shipping-calculator-form button.button,
.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"],
.woocommerce-page .cart-collaterals .shipping-calculator-form button {
  width: 100% !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
  transition: all 0.2s ease !important;
  margin: 8px 0 0 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  float: none !important;
}

.woocommerce .cart-collaterals .shipping-calculator-form button.button:hover,
.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"]:hover,
.woocommerce-page .cart-collaterals .shipping-calculator-form button:hover {
  background: #1e293b !important;
  background-color: #1e293b !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28) !important;
}

/* Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce .cart-collaterals .cart_totals a.button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 15px 22px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.28) !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 16px 0 0 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .cart-collaterals .cart_totals a.button.alt:hover {
  background: linear-gradient(135deg, #820518 0%, #5f010f 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(166, 38, 57, 0.42) !important;
}

/* Sidebar Trust & Support Box */
.tellimed-cart-sidebar-trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.trust-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 18px;
}

.feat-check {
  color: #16a34a;
  font-weight: 800;
  margin-right: 6px;
}

.trust-payments-section {
  margin-bottom: 18px;
}

.payments-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.payments-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.trust-support-box {
  padding: 14px 16px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  text-align: center;
}

.support-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #820518;
  margin-bottom: 2px;
}

.support-desc {
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 8px;
}

.support-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #820518 !important;
  font-weight: 800;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid #feb2b2;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.support-phone-btn:hover {
  background: #820518;
  color: #ffffff !important;
}

/* Empty Cart State */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .return-to-shop {
  display: none !important;
}

.tellimed-empty-cart-container {
  padding: 20px 0 60px;
}

.empty-cart-card {
  max-width: 660px;
  margin: 20px auto 60px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 50px 36px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.empty-cart-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 2px solid #fed7d7;
}

.empty-cart-heading {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
}

.empty-cart-text {
  font-size: 15px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  max-width: 480px !important;
  margin: 0 auto 28px !important;
}

.empty-cart-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 24px;
}

.empty-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.25);
  transition: all 0.2s ease;
}

.empty-btn-primary:hover {
  background: linear-gradient(135deg, #820518 0%, #5f010f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 38, 57, 0.35);
}

.empty-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.empty-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.empty-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #065f46 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.empty-btn-light:hover {
  background: #d1fae5;
}

.empty-cart-helpline {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.empty-cart-helpline a {
  color: #820518;
  text-decoration: none;
}

/* Responsive Mobile Layout for Cart */
@media (max-width: 991px) {
  .tellimed-cart-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tellimed-checkout-stepper {
    padding: 12px 10px;
    gap: 6px;
  }

  .tellimed-checkout-stepper .stepper-step {
    font-size: 12px;
    gap: 5px;
  }

  .tellimed-checkout-stepper .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .tellimed-checkout-stepper .stepper-line {
    flex: 0 1 20px;
  }

  .woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }

  .woocommerce-cart table.shop_table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: block !important;
    position: relative !important;
    padding: 16px !important;
    border-bottom: 8px solid #f1f5f9 !important;
  }

  .woocommerce-cart table.shop_table.cart a.remove {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 2;
  }

  .woocommerce-cart table.shop_table.cart tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f8fafc !important;
    text-align: right !important;
  }

  .woocommerce-cart table.shop_table.cart tbody td.product-thumbnail::before,
  .woocommerce-cart table.shop_table.cart tbody td.product-remove::before,
  .woocommerce-cart table.shop_table.cart tbody td.product-name::before {
    display: none !important;
    content: "" !important;
  }

  .woocommerce-cart table.shop_table.cart tbody td.product-thumbnail {
    justify-content: flex-start !important;
    border-bottom: none !important;
    padding-bottom: 4px !important;
  }

  .woocommerce-cart table.shop_table.cart tbody td.product-thumbnail img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .woocommerce-cart table.shop_table.cart tbody td.product-name {
    text-align: left !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
    padding-right: 44px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .woocommerce-cart table.shop_table.cart tbody td.actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions #coupon_code {
    width: 100% !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions button[name="apply_coupon"],
  .woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
    width: 100% !important;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .empty-cart-card {
    padding: 36px 20px;
  }
}

/* ==========================================================================
   MODERN CHECKOUT EXPERIENCE (TELLIMED REDESIGN)
   ========================================================================== */

/* Page Container & Divi Resets */
.woocommerce-checkout .entry-title.main_title {
  display: none !important;
}

.woocommerce-checkout #left-area {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 !important;
}

.woocommerce-checkout #sidebar {
  display: none !important;
}

.woocommerce-checkout #content-area {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 10px 16px 60px !important;
}

.woocommerce-checkout .container {
  max-width: 1240px !important;
  width: 100% !important;
}

/* Stepper Header */
.tellimed-checkout-header {
  margin-bottom: 28px;
}

.tellimed-checkout-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.tellimed-checkout-heading {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.4px !important;
  font-family: inherit !important;
}

.tellimed-checkout-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.tellimed-checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tellimed-checkout-stepper .stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14.5px;
}

.tellimed-checkout-stepper .stepper-step a {
  color: inherit;
  text-decoration: none;
}

.tellimed-checkout-stepper .stepper-step.completed {
  color: #16a34a;
}

.tellimed-checkout-stepper .stepper-step.completed .step-num {
  background: #ecfdf5;
  color: #16a34a;
  border: 1.5px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tellimed-checkout-stepper .stepper-step.active {
  color: #a62639;
  font-weight: 700;
}

.tellimed-checkout-stepper .stepper-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tellimed-checkout-stepper .stepper-step.active .step-num {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(166, 38, 57, 0.35);
}

.tellimed-checkout-stepper .stepper-line {
  flex: 0 1 80px;
  height: 2px;
  background: #e2e8f0;
}

.tellimed-checkout-stepper .stepper-line.active {
  background: #16a34a;
}

/* Coupon & Login Notices */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
  margin-bottom: 24px;
}

.woocommerce-checkout .woocommerce-info {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid #a62639 !important;
  border-radius: 10px !important;
  color: #334155 !important;
  font-size: 14.5px !important;
  padding: 14px 20px 14px 52px !important;
  position: relative !important;
}

.woocommerce-checkout .woocommerce-info::before {
  left: 18px !important;
  color: #a62639 !important;
}

.woocommerce-checkout .woocommerce-info a {
  color: #a62639 !important;
  font-weight: 700 !important;
}

/* 2-Column Desktop Grid */
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 32px !important;
  }

  .woocommerce-checkout #customer_details {
    width: calc(58% - 16px) !important;
    flex: 0 0 calc(58% - 16px) !important;
    float: none !important;
  }

  .woocommerce-checkout #order_review {
    width: calc(42% - 16px) !important;
    flex: 0 0 calc(42% - 16px) !important;
    float: none !important;
    position: sticky !important;
    top: 90px !important;
  }
}

/* Customer Details Cards */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 26px 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout #customer_details h3 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

/* Form Fields & Labels */
.woocommerce-checkout form .form-row {
  margin-bottom: 16px !important;
  padding: 0 !important;
}

.woocommerce-checkout form .form-row label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}

.woocommerce-checkout form .form-row label .required {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

.woocommerce-checkout form .form-row label .optional {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}

/* Crisp Input Styling (Overriding Divi #eee) */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row textarea {
  width: 100% !important;
  height: 44px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.woocommerce-checkout textarea,
.woocommerce-checkout .woocommerce form .form-row textarea {
  height: 90px !important;
  padding: 12px 14px !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  border-color: #a62639 !important;
  box-shadow: 0 0 0 3px rgba(166, 38, 57, 0.12) !important;
  background-color: #ffffff !important;
}

/* Select2 in checkout */
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 44px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 0 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
}

.woocommerce-checkout .select2-selection__arrow {
  height: 42px !important;
  right: 12px !important;
}

/* Ship to different address checkbox header */
.woocommerce-checkout #ship-to-different-address {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce-checkout #ship-to-different-address label {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #a62639 !important;
  cursor: pointer !important;
}

/* Order Review & Payment Card (Right Column) */
.woocommerce-checkout #order_review {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 26px 24px !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout #order_payment_heading,
.woocommerce-checkout #order_review_heading {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

/* Payment Container Resets (Remove grey background) */
.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-payment {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Payment Methods list */
.woocommerce-checkout ul.wc_payment_methods {
  background: transparent !important;
  background-color: transparent !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  border: none !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
  margin-right: 10px !important;
  accent-color: #a62639 !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method label {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  display: inline !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method img {
  max-height: 24px !important;
  width: auto !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method .payment_box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}

/* Order Review Table */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  margin-bottom: 24px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
  padding: 12px 18px !important;
  background: #f1f5f9 !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  text-align: left !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-total {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: right !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-align: left !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  text-align: right !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  color: #a62639 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* Germanized Legal Checkboxes */
.woocommerce-checkout .woocommerce-gzd-legal-checkboxes,
.woocommerce-checkout .wc-gzd-checkbox-placeholder {
  margin: 18px 0 !important;
  padding: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}

.woocommerce-checkout .woocommerce-gzd-legal-checkboxes input[type="checkbox"],
.woocommerce-checkout .wc-gzd-checkbox-placeholder input[type="checkbox"] {
  accent-color: #a62639 !important;
  margin-right: 8px !important;
}

/* Place Order CTA Button override Divi */
.woocommerce-checkout #place_order,
.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%) !important;
  background-color: #a62639 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 16px 22px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(166, 38, 57, 0.32) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  margin-top: 16px !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #payment #place_order:hover {
  background: linear-gradient(135deg, #820518 0%, #5f010f 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(166, 38, 57, 0.44) !important;
}

/* Trust box below submit button */
.tellimed-checkout-trust-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.tellimed-checkout-trust-box .trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 14px;
}

.tellimed-checkout-trust-box .trust-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tellimed-checkout-trust-box .trust-check {
  color: #16a34a;
  font-weight: 800;
}

.tellimed-checkout-trust-box .help-banner {
  padding: 12px 14px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  font-size: 12.5px;
  color: #820518;
  text-align: center;
  line-height: 1.4;
}

.tellimed-checkout-trust-box .help-banner strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.tellimed-checkout-trust-box .help-banner a {
  color: #820518;
  font-weight: 800;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .tellimed-checkout-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tellimed-checkout-badge-secure {
    font-size: 12px;
    padding: 5px 12px;
  }

  .tellimed-checkout-stepper {
    padding: 10px 12px;
    gap: 6px;
    justify-content: space-between;
  }

  .tellimed-checkout-stepper .stepper-step {
    font-size: 11.5px;
    gap: 5px;
    white-space: nowrap;
  }

  .tellimed-checkout-stepper .step-num {
    width: 22px;
    height: 22px;
    font-size: 10.5px;
    flex-shrink: 0;
  }

  .tellimed-checkout-stepper .stepper-line {
    flex: 1 1 12px;
    min-width: 8px;
  }

  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2,
  .woocommerce-checkout #order_review {
    padding: 20px 16px !important;
  }
}

/* ==========================================================================
   ORDER RECEIVED / THANK YOU PAGE REDESIGN
   ========================================================================== */

.woocommerce-order-received .entry-title.main_title {
  display: none !important;
}

.woocommerce-order-received #left-area {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 !important;
}

.woocommerce-order-received #sidebar {
  display: none !important;
}

.woocommerce-order-received #content-area {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 10px 16px 60px !important;
}

/* Hide default plain unstyled notice */
.woocommerce-order-received p.woocommerce-thankyou-order-received {
  display: none !important;
}

/* Thank You Hero Banner */
.tellimed-thankyou-hero-wrapper {
  margin-bottom: 32px;
}

.thankyou-stepper {
  margin-bottom: 24px;
}

.thankyou-stepper .stepper-step.step-success .step-num {
  background: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35) !important;
}

.thankyou-stepper .stepper-step.step-success {
  color: #16a34a !important;
  font-weight: 700 !important;
}

.tellimed-thankyou-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 36px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.tellimed-thankyou-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 38, 57, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.thankyou-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.thankyou-title-area {
  flex: 1;
}

.thankyou-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.thankyou-heading {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.4px !important;
  line-height: 1.2 !important;
}

.thankyou-subtext {
  color: #cbd5e1;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.thankyou-subtext strong {
  color: #ffffff;
}

/* 4-Card Order Overview with clearfix resets */
.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after,
.woocommerce-order-received ul.order_details::before,
.woocommerce-order-received ul.order_details::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.order_details,
.woocommerce-order-received ul.order_details,
.woocommerce-order-received ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 36px 0 !important;
  border: none !important;
  float: none !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce ul.order_details li,
.woocommerce-order-received ul.order_details li,
.woocommerce-order-received ul.woocommerce-order-overview li {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li.total strong {
  color: #a62639 !important;
  font-size: 20px !important;
}

/* Order Details Table */
.woocommerce-order-received .woocommerce-order-details {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 28px 26px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 32px !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.woocommerce-order-received .woocommerce-order-details__title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

.woocommerce-order-received table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  margin-bottom: 0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details th,
.woocommerce-order-received table.woocommerce-table--order-details td {
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details thead th {
  background: #f8fafc !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tbody td.product-name a {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
}
.woocommerce-order-received table.woocommerce-table--order-details tbody td.product-name a:hover {
  color: #a62639 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tbody td.product-total {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: right !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot th {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  text-align: left !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot td {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  text-align: right !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:nth-last-child(2) th {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border-top: 2px solid #e2e8f0 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #a62639 !important;
  border-top: 2px solid #e2e8f0 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* Customer Addresses Grid */
.woocommerce-order-received .woocommerce-customer-details {
  margin-bottom: 32px !important;
  clear: both !important;
}

.woocommerce-order-received .woocommerce-columns--addresses,
.woocommerce-order-received .col2-set.addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-order-received .woocommerce-columns--addresses::before,
.woocommerce-order-received .woocommerce-columns--addresses::after {
  display: none !important;
}

.woocommerce-order-received .woocommerce-column--billing-address,
.woocommerce-order-received .woocommerce-column--shipping-address,
.woocommerce-order-received .col2-set .col-1,
.woocommerce-order-received .col2-set .col-2 {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px 22px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.woocommerce-order-received .woocommerce-column__title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

.woocommerce-order-received address {
  font-style: normal !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: #334155 !important;
  border: none !important;
  padding: 0 !important;
}

.woocommerce-order-received address p {
  margin: 8px 0 0 0 !important;
  color: #64748b !important;
  font-size: 13.5px !important;
}

/* Next Steps Section */
.tellimed-thankyou-next-steps {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 32px;
  clear: both !important;
}

.next-steps-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 22px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  letter-spacing: -0.3px !important;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.next-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.step-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a62639;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.next-step-card h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.next-step-card p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.thankyou-support-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fdf2f4;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  margin-bottom: 24px;
}

.support-info strong {
  display: block;
  font-size: 14px;
  color: #820518;
  margin-bottom: 2px;
}

.support-info span {
  font-size: 12.5px;
  color: #9b1c2e;
}

.support-phone-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #820518;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.support-phone-button:hover {
  background: #5f010f;
}

.thankyou-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thankyou-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(166, 38, 57, 0.25);
}
.thankyou-btn-primary:hover {
  background: linear-gradient(135deg, #820518 0%, #5f010f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 38, 57, 0.35);
}

.thankyou-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.thankyou-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .thankyou-stepper {
    padding: 10px 8px !important;
    gap: 4px !important;
    justify-content: space-between !important;
  }
  .thankyou-stepper .stepper-step {
    font-size: 11px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .thankyou-stepper .step-num {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    flex-shrink: 0 !important;
  }
  .thankyou-stepper .step-num svg {
    width: 10px !important;
    height: 10px !important;
  }
  .thankyou-stepper .stepper-line {
    flex: 1 1 6px !important;
    min-width: 6px !important;
  }
  .tellimed-thankyou-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .thankyou-heading {
    font-size: 22px !important;
  }
  .woocommerce ul.order_details,
  .woocommerce-order-received ul.order_details,
  .woocommerce-order-received ul.woocommerce-order-overview {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .woocommerce-order-received .woocommerce-columns--addresses,
  .woocommerce-order-received .col2-set.addresses {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .next-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .thankyou-support-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .thankyou-actions {
    flex-direction: column;
    width: 100%;
  }
  .thankyou-btn-primary, .thankyou-btn-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .woocommerce-order-received table.woocommerce-table--order-details th,
  .woocommerce-order-received table.woocommerce-table--order-details td {
    padding: 10px 12px !important;
    font-size: 13.5px !important;
  }
  .woocommerce-order-received .woocommerce-order-details {
    padding: 20px 16px !important;
  }
}

/* Fallback styling for guest email verification form */
.woocommerce-order-received form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  max-width: 540px;
  margin: 30px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.woocommerce-order-received form input[type="email"],
.woocommerce-order-received form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}
.woocommerce-order-received form button[type="submit"],
.woocommerce-order-received form input[type="submit"] {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}

/* =============================================================
   PRODUCT DESCRIPTION STYLING (CARINO & GENERAL)
   ============================================================= */
.tellimed-product-description {
  color: #334155;
  line-height: 1.65;
  font-size: 15px;
}
.tellimed-product-description h3 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
}
.tellimed-product-description .lead-text {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 14px;
}
.product-highlights-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #a62639;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.product-highlights-box h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
}
.product-highlights-box ul.highlights-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.product-highlights-box ul.highlights-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}
.product-highlights-box ul.highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
}
.product-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.feature-detail-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.feature-detail-card .feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fdf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-detail-card .feature-text h5 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}
.feature-detail-card .feature-text p {
  font-size: 14px;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}
.product-downloads-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.product-downloads-section h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
}
.download-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}
.download-card-bar .download-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-card-bar .download-info strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}
.download-card-bar .download-info span {
  display: block;
  font-size: 13px;
  color: #64748b;
}
.download-button-styled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(166, 38, 57, 0.25);
  transition: all 0.2s ease;
}
.download-button-styled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(166, 38, 57, 0.35);
  color: #ffffff !important;
}
@media (max-width: 767px) {
  .download-card-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .download-button-styled {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   tellimed 404 Error Page (.tellimed-404-page)
   ========================================================================== */
.tellimed-404-page {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 50px 20px 80px;
}

.tellimed-404-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 404 Hero Banner */
.tellimed-404-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 22px;
  padding: 52px 44px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tellimed-404-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(166, 38, 57, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.tellimed-404-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.tellimed-404-code {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.8px;
}

.tellimed-404-status {
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tellimed-404-title {
  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  max-width: 760px;
  margin: 0 auto 16px !important;
  padding: 0 !important;
}

.tellimed-404-subtitle {
  color: #cbd5e1 !important;
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  max-width: 680px;
  margin: 0 auto 32px !important;
}

.tellimed-404-subtitle strong {
  color: #ffffff;
}

.tellimed-404-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tellimed-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.22s ease;
}

.tellimed-404-btn--primary {
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(166, 38, 57, 0.35);
}

.tellimed-404-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(166, 38, 57, 0.48);
  color: #ffffff !important;
}

.tellimed-404-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.tellimed-404-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Quicklinks Grid */
.tellimed-404-quicklinks {
  margin-bottom: 44px;
}

.tellimed-404-section-title {
  text-align: center;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
}

.tellimed-404-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tellimed-404-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.tellimed-404-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.tellimed-404-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tellimed-404-card-icon--red {
  background: #fef2f2;
  color: #a62639;
  border: 1px solid #fecdd3;
}

.tellimed-404-card-icon--green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.tellimed-404-card-icon--slate {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.tellimed-404-card-body {
  flex: 1;
}

.tellimed-404-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a62639;
  background: #fff1f2;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tellimed-404-card-tag--green {
  color: #15803d;
  background: #dcfce7;
}

.tellimed-404-card-tag--slate {
  color: #334155;
  background: #f1f5f9;
}

.tellimed-404-card-body h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.tellimed-404-card-body p {
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.tellimed-404-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #a62639;
}

.tellimed-404-card:hover .tellimed-404-card-link span {
  transform: translateX(4px);
}

.tellimed-404-card-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Support Banner */
.tellimed-404-support {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 6px solid #a62639;
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tellimed-404-support-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tellimed-404-support-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a62639 0%, #820518 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(166, 38, 57, 0.25);
}

.tellimed-404-support-info h3 {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

.tellimed-404-support-info p {
  font-size: 14.5px !important;
  color: #475569 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tellimed-404-support-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tellimed-404-support-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tellimed-404-support-phone:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.tellimed-404-support-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tellimed-404-support-mail:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .tellimed-404-page {
    padding: 30px 16px 60px;
  }
  .tellimed-404-hero {
    padding: 36px 22px;
    margin-bottom: 34px;
  }
  .tellimed-404-title {
    font-size: 25px !important;
  }
  .tellimed-404-subtitle {
    font-size: 15px !important;
  }
  .tellimed-404-btn {
    width: 100%;
    box-sizing: border-box;
  }
  .tellimed-404-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tellimed-404-card {
    padding: 20px;
    gap: 16px;
  }
  .tellimed-404-support {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .tellimed-404-support-actions {
    width: 100%;
    flex-direction: column;
  }
  .tellimed-404-support-phone,
  .tellimed-404-support-mail {
    width: 100%;
    box-sizing: border-box;
  }
}

