/* Divert Cell V1.0.5 — native WooCommerce product tabs, specs & reviews.
   Scoped to product pages, no WooCommerce template override necessary. */
body.single-product div.product .woocommerce-tabs {
  clear: both;
  display: flow-root;
  float: none;
  width: 100%;
  max-width: 1260px;
  min-width: 0;
  margin: clamp(32px, 4vw, 64px) auto 45px !important;
  padding: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #112a4b;
}
body.single-product div.product .woocommerce-tabs > ul.tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 0 !important;
  padding: 9px !important;
  border: 1px solid #dce9f7;
  border-radius: 18px 18px 0 0;
  background: #f3f8ff;
  list-style: none;
  box-sizing: border-box;
}
/* WooCommerce draws legacy folder-tab curves through pseudo elements. */
body.single-product div.product .woocommerce-tabs > ul.tabs::before,
body.single-product div.product .woocommerce-tabs > ul.tabs::after,
body.single-product div.product .woocommerce-tabs > ul.tabs > li::before,
body.single-product div.product .woocommerce-tabs > ul.tabs > li::after { content: none !important; display: none !important; }
body.single-product div.product .woocommerce-tabs > ul.tabs > li {
  float: none !important;
  position: relative;
  display: block;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body.single-product div.product .woocommerce-tabs > ul.tabs > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 20px !important;
  color: #536d8c !important;
  line-height: 1.4;
  text-decoration: none;
}
body.single-product div.product .woocommerce-tabs > ul.tabs > li:hover,
body.single-product div.product .woocommerce-tabs > ul.tabs > li:focus-within {
  border-color: #c7ddf3 !important;
  background: #e8f3ff !important;
}
body.single-product div.product .woocommerce-tabs > ul.tabs > li.active {
  border-color: #c5ddf6 !important;
  background: white !important;
  box-shadow: 0 4px 13px rgba(21,89,160,.10) !important;
}
body.single-product div.product .woocommerce-tabs > ul.tabs > li.active > a { color: var(--dc-blue, #176bc4) !important; }
body.single-product div.product .woocommerce-tabs > ul.tabs > li > a:focus-visible { outline: 3px solid #75bbef; outline-offset: 2px; border-radius: 10px; }

body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(22px, 3.6vw, 44px) !important;
  background: #fff;
  border: 1px solid #dce9f7;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 48px rgba(9,48,97,.055);
}
/* WooCommerce hides inactive panels with inline display:none; honour that. */
body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel[style*="display: none"] { display: none !important; }
body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel[hidden] { display: none !important; }
body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel > h2:first-child {
  margin: 0 0 24px !important;
  padding: 0 0 16px;
  border-bottom: 1px solid #e8eff8;
  color: #0c274a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(20px,2vw,27px);
  font-weight: 830;
  letter-spacing: -.035em;
  line-height: 1.25;
}
body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel p {
  line-height: 1.8;
  color: #4d6481;
}
body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel p:last-child { margin-bottom: 0; }

/* Attribute table uses WooCommerce's product definitions, including new custom attributes. */
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid #e3edf8;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  table-layout: auto;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:nth-child(even) { background: #f7faff; }
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > th,
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td {
  box-sizing: border-box;
  padding: 17px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eef7 !important;
  font-size: 14px;
  line-height: 1.65;
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:last-child > th,
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:last-child > td { border-bottom: none !important; }
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes th.woocommerce-product-attributes-item__label {
  width: 27%;
  min-width: 145px;
  color: #17375c;
  background: #eef6ff;
  font-weight: 770;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:nth-child(even) th.woocommerce-product-attributes-item__label { background: #e9f3ff; }
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes td.woocommerce-product-attributes-item__value {
  color: #48617d;
  font-style: normal !important;
  font-weight: 500;
  background: transparent;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes td p {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font-style: normal !important;
  font-weight: inherit;
  line-height: inherit;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes td a {
  color: var(--dc-blue, #176bc4);
  font-weight: 700;
  text-decoration: none;
}
body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes td a:hover { text-decoration: underline; }

/* Review list + forms remain powered by WooCommerce; only their visuals change. */
body.single-product div.product .woocommerce-tabs #reviews { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.94fr); gap: clamp(25px,3.5vw,52px); align-items: start; }
body.single-product div.product .woocommerce-tabs #reviews #comments,
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper { min-width: 0; width: 100%; float: none; }
body.single-product div.product .woocommerce-tabs #reviews #comments h2,
body.single-product div.product .woocommerce-tabs #reviews #reply-title {
  display: block;
  margin: 0 0 18px;
  color: #102c51;
  font: 790 20px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.02em;
}
body.single-product div.product .woocommerce-tabs #reviews #comments ol.commentlist { list-style: none; margin: 0 !important; padding: 0 !important; width: 100%; }
body.single-product div.product .woocommerce-tabs #reviews #comments ol.commentlist li { list-style: none; margin: 0 0 13px !important; padding: 0 !important; }
body.single-product div.product .woocommerce-tabs #reviews #comments ol.commentlist li .comment-text {
  margin: 0 !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 14px;
  background: #fbfdff;
  padding: 18px 20px !important;
  min-height: 85px;
}
body.single-product div.product .woocommerce-tabs #reviews #comments ol.commentlist li img.avatar {
  position: static;
  float: left;
  margin: 7px 14px 7px 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
}
body.single-product div.product .woocommerce-tabs #reviews #comments .woocommerce-review__author { color: #12375c; }
body.single-product div.product .woocommerce-tabs #reviews #comments .woocommerce-review__published-date { color: #8195af; font-size: 12px; }
body.single-product div.product .woocommerce-tabs #reviews .star-rating { color: #efae38; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper { padding: 22px; border: 1px solid #dce9f7; border-radius: 15px; background: linear-gradient(145deg,#f8fbff,#fff); }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond { border: 0; padding: 0; margin: 0; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond #commentform { display: grid; gap: 12px; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond p { margin: 0; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond label { display: block; color: #143557; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond textarea,
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond input:not([type="submit"]):not([type="checkbox"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d4e3f3;
  border-radius: 11px;
  background: #fff;
  color: #112b4e;
  font: inherit;
}
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond textarea { min-height: 128px; resize: vertical; }
body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper #respond input[type="submit"] { border: 0; border-radius: 10px; padding: 13px 24px; background: var(--dc-blue,#176bc4); color: #fff; font-weight: 800; }
body.single-product div.product .woocommerce-tabs #reviews .comment-form-rating .stars a { color: #dca22f; }

@media (max-width: 800px) {
  body.single-product div.product .woocommerce-tabs #reviews { grid-template-columns: minmax(0,1fr); gap: 22px; }
}
@media (max-width: 600px) {
  body.single-product div.product .woocommerce-tabs { margin-top: 28px !important; margin-bottom: 35px !important; }
  body.single-product div.product .woocommerce-tabs > ul.tabs { flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px !important; border-radius: 14px 14px 0 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  body.single-product div.product .woocommerce-tabs > ul.tabs > li { flex: 0 0 auto; font-size: 12px; }
  body.single-product div.product .woocommerce-tabs > ul.tabs > li > a { min-height: 40px; padding: 10px 14px !important; }
  body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel { padding: 19px 15px !important; border-radius: 0 0 14px 14px; }
  body.single-product div.product .woocommerce-tabs > .woocommerce-Tabs-panel > h2:first-child { font-size: 21px; margin-bottom: 18px !important; }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > th,
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td { padding: 13px 12px !important; font-size: 12px; }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes th.woocommerce-product-attributes-item__label { min-width: 0; width: 36%; }
  body.single-product div.product .woocommerce-tabs #reviews #review_form_wrapper { padding: 17px; }
}
@media (prefers-reduced-motion:reduce) { body.single-product div.product .woocommerce-tabs > ul.tabs > li { transition: none; } }


/* V1.1.0 — Unified unlimited WooCommerce variation selectors.
   Every used-for-variations attribute (Warranty, RAM, Storage, etc.) gets pills;
   only Color/Colour uses color dots. WooCommerce remains the source of truth. */
body.single-product .dc-product-content form.variations_form table.variations {
  display:block;
  width:100%;
  max-width:100%;
  border:0;
  margin:20px 0 15px;
  background:transparent;
}
body.single-product .dc-product-content form.variations_form table.variations tbody {
  display:block;
  width:100%;
}
body.single-product .dc-product-content form.variations_form table.variations tr {
  display:grid;
  grid-template-columns:minmax(75px,112px) minmax(0,1fr);
  align-items:start;
  column-gap:15px;
  row-gap:8px;
  padding:10px 0;
  width:100%;
  border:0;
}
body.single-product .dc-product-content form.variations_form table.variations th.label,
body.single-product .dc-product-content form.variations_form table.variations td.value {
  float:none;
  display:block;
  box-sizing:border-box;
  border:0;
  background:transparent;
  width:100%;
  min-width:0;
  padding:0 !important;
  margin:0;
}
body.single-product .dc-product-content form.variations_form table.variations th.label label {
  display:block;
  font:750 13px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;
  color:#163459;
  margin:11px 0 0;
  text-align:left;
}
body.single-product .dc-product-content .dc-variation-pills {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  min-width:0;
  max-width:100%;
}
body.single-product .dc-product-content .dc-variation-pill {
  appearance:none;
  -webkit-appearance:none;
  flex:0 1 auto;
  width:auto;
  min-width:64px;
  min-height:43px;
  max-width:100%;
  padding:9px 15px;
  border:1.5px solid #d5e4f5;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(12,64,119,.035);
  color:#17385f;
  font:750 12px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;
  text-decoration:none;
  white-space:normal;
  cursor:pointer;
}
body.single-product .dc-product-content .dc-variation-pill:hover:not(:disabled) {
  border-color:#78afe4;
  background:#f2f8ff;
  box-shadow:0 5px 14px rgba(13,91,168,.1);
}
body.single-product .dc-product-content .dc-variation-pill[aria-pressed="true"] {
  border-color:var(--dc-blue,#176bc4);
  background:#edf6ff;
  color:#0d55a4;
  box-shadow:0 0 0 2px rgba(23,107,196,.11);
}
body.single-product .dc-product-content .dc-variation-pill:focus-visible {
  outline:3px solid #69aaf5;
  outline-offset:3px;
}
body.single-product .dc-product-content .dc-variation-pill:disabled {
  cursor:not-allowed;
  opacity:.4;
  text-decoration:line-through;
}
body.single-product .dc-product-content .dc-variation-color .dc-variation-pill {
  padding:7px 11px 7px 8px;
  min-width:0;
}
body.single-product .dc-product-content .dc-variation-color .dc-variation-pill i {
  width:25px;
  height:25px;
  border-radius:50%;
  flex-shrink:0;
  border:2px solid white;
  box-shadow:0 0 0 1px #b8cde2;
}
body.single-product .dc-product-content .dc-variation-color .dc-variation-pill[aria-pressed="true"] i {
  outline:2px solid var(--dc-blue,#176bc4);
  outline-offset:2px;
}
body.single-product .dc-product-content form.variations_form .reset_variations {
  display:inline-flex;
  margin-top:12px;
  color:var(--dc-blue,#176bc4);
  font-size:12px;
  font-weight:750;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:600px) {
  body.single-product .dc-product-content form.variations_form table.variations tr {
    grid-template-columns:minmax(0,1fr);
    text-align:left;
    gap:8px;
    padding:10px 0;
  }
  body.single-product .dc-product-content form.variations_form table.variations th.label { text-align:left!important; }
  body.single-product .dc-product-content form.variations_form table.variations th.label label { margin:0; text-align:left!important; }
  body.single-product .dc-product-content .dc-variation-pills { gap:8px; }
  body.single-product .dc-product-content .dc-variation-pill { min-height:44px; padding:9px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  body.single-product .dc-product-content .dc-variation-pill {transition:none!important;}
}

/* V1.1.2 — Mobile product attributes: compact, side-by-side key/value rows.
   WooCommerce and some global styles can collapse native table cells into
   stacked blocks on small screens. Give each <tr> its own two-column layout
   instead of depending on browser table layout or plugin breakpoints. */
@media (max-width: 820px) {
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #e1ebf7;
    border-spacing: 0;
    background: #fff;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes > tbody {
    display: block;
    width: 100%;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr {
    display: grid !important;
    grid-template-columns: minmax(94px, 33%) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e5eef8;
    background: #fff;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:last-child {
    border-bottom: 0;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > th.woocommerce-product-attributes-item__label,
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td.woocommerce-product-attributes-item__value {
    display: flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    float: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 14px 13px !important;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    vertical-align: middle;
    border: 0 !important;
    border-radius: 0;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > th.woocommerce-product-attributes-item__label {
    background: #edf5ff;
    color: #15375c;
    font-weight: 780;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:nth-child(even) > th.woocommerce-product-attributes-item__label {
    background: #e9f2ff;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td.woocommerce-product-attributes-item__value {
    background: #fff;
    color: #45627e;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr:nth-child(even) > td.woocommerce-product-attributes-item__value {
    background: #f9fbff;
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td.woocommerce-product-attributes-item__value p {
    margin: 0 !important;
    line-height: 1.55;
  }
}
@media (max-width: 355px) {
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr {
    grid-template-columns: minmax(80px, 32%) minmax(0, 1fr);
  }
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > th.woocommerce-product-attributes-item__label,
  body.single-product div.product .woocommerce-tabs table.woocommerce-product-attributes tr > td.woocommerce-product-attributes-item__value {
    padding: 12px 10px !important;
    font-size: 12px;
  }
}
