.features {
    background-color: white;
    padding: 1rem 1.5rem;
  }
  .feature-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .features-title {
    font-weight: bold;
    color: black;
  }
  .features-section {
    background-color: rgba(var(--vz-light-rgb), var(--vz-bg-opacity)) !important;
    white-space: nowrap;
    width: 13rem;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    box-sizing: border-box;
    border-radius: 0.4rem;
  }
  .feature-title {
    color: grey;
  }
  .feature-detail {
    font-size: 0.8rem;
  }
  .add-to-cart {
    margin-top: 1rem;
    background-color: white;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .add-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: none;
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }
  
  .counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: #f1f3f5;
  }
  
  .counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background-color: #0d6efd;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  .count {
    font-weight: bold;
    font-size: 1rem;
  }
  
  .hidden {
    display: none;
  }
  .sim-detail-nav {
    margin-top: 4rem;
  }
  
  .nav-underline .nav-link.active {
    color: gray;
    font-weight: 600;
    border-bottom: 1px solid #0d6efd;
    /*margin-right: 3rem;*/
  }
  
  .nav-underline .nav-link {
    color: #6c757d;
    padding: 0.75rem 0;
    margin-inline-end: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom-width: 2px;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
  }
  .mobile-sticky-cart {
    display: none;
  }
  
  .comment {
    font-weight: bold;
    font-size: 1.2rem;
  }
  .benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  
    width: 100%;
    max-width: 100%;
  
    background-color: #fff;
    padding: 1.5rem 1rem;
  
    color: gray;
    font-size: 0.85rem;
    gap: 1.5rem;
  }
  
  .benefits > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /*white-space: nowrap;*/
  }
  
  .sim-content {
    padding-left: 0;
    padding-right: 0;
  }
  #section {
    padding-top: 5rem;
    padding-bottom: 0;
  }

  /* ===== Mobile optimizations for simcard/form page ===== */
  @media (max-width: 992px) {
    /* keep long tab headers from wrapping awkwardly on smaller screens */
    .sim-detail-nav {
      margin-top: 2rem;
    }
  }

  @media (max-width: 768px) {
    /* Telegram/embedded webviews sometimes create page-level horizontal scroll */
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }

    #section {
      padding-top: 2rem;
      overflow-x: hidden;
    }

    /* Image + details stack nicely */
    .product-info-wrap {
      flex-direction: column;
      gap: 12px;
    }

    /* Thumbnails become horizontal scroll */
    .product-thumbs {
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 6px;
      margin-bottom: 0 !important;
    }

    .product-thumbs::-webkit-scrollbar {
      height: 6px;
    }

    .product-thumbs::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.15);
      border-radius: 999px;
    }

    /* Buttons/counter spacing */
    .add-to-cart {
      padding: 1rem;
    }

    .counter {
      padding: 0.4rem;
    }

    .counter-btn {
      width: 40px;
      height: 40px;
      font-size: 1.1rem;
    }

    .count {
      font-size: 1.05rem;
      min-width: 40px;
      text-align: center;
    }

    /* Radio plans: allow wrapping instead of overflow */
    .form-check-label .d-flex {
      flex-wrap: wrap;
      row-gap: 4px;
      column-gap: 8px;
    }

    /* Features: avoid fixed width/nowrap overflow */
    .features {
      padding: 1rem;
    }

    .features-section {
      width: 100%;
      white-space: normal;
    }

    /* Tabs: make them scrollable and smaller typography */
    .sim-detail-nav {
      margin-top: 1.25rem;
      flex-wrap: nowrap;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      gap: 16px;
    }

    .nav-underline .nav-link {
      font-size: 0.95rem;
      margin-inline-end: 0;
      padding: 0.6rem 0;
      white-space: nowrap;
    }

    .nav-underline .nav-link.active {
      border-bottom-width: 2px;
    }

    /* Benefits: allow wrap and stop clipping */
    .benefits {
      justify-content: center;
      gap: 0.75rem 1rem;
      padding: 1rem;
      font-size: 0.85rem;
      max-width: 100%;
      overflow-x: hidden;
    }

    .benefits > div {
      white-space: normal;
      flex: 1 1 45%;
      justify-content: center;
      text-align: center;
    }

    .mobile-sticky-cart {
      align-items: center;
    }
  }
  @media (max-width: 768px) {
    .mobile-sticky-cart {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1050;
      gap: 12px;
      padding: 12px 16px;
      background: #fff;
      border-top: 1px solid #e5e5e5;
      box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    }
  
    body {
      padding-bottom: 90px;
    }
    .benefits {
      justify-content: center;
      gap: 1rem;
      text-align: center;
    }
  }


.text-content,
.text-content *:not(table):not(tr):not(td):not(th) {
    max-width: 100% !important;
}

.text-content p {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
    hyphens: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    line-break: anywhere !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.text-content ul li,
.text-content ol li {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: pre-line !important;
    max-width: 100% !important;
    width: 100% !important;
    hyphens: manual !important;
    line-break: strict !important;
    overflow: visible !important;
    display: block !important;
    box-sizing: border-box !important;
}

.text-content div p,
.text-content span p,
.text-content li p,
.text-content td p,
.text-content th p {
    max-width: 100% !important;
}

.text-content p[style*="display: inline"],
.text-content p[style*="display:inline"],
.text-content p[style*="inline-block"] {
    display: block !important;
}

.text-content p[style*="width:"] {
    max-width: 100% !important;
    width: auto !important;
}

.text-content p[style*="min-width:"] {
    min-width: 0 !important;
}

.text-content table {
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

.text-content img {
    max-width: 100% !important;
    height: auto !important;
}

.text-content pre,
.text-content code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    max-width: 100% !important;
}

.text-content a {
    word-break: break-all !important;
}

.text-content * {
    max-width: 100% !important;
    width: auto !important;
}

#addBtn {
    text-align: center !important;
}

#addBtn:hover {
    text-decoration: none !important;
    color: white;
}