#drv-pdp-size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#drv-pdp-size-guide-modal.is-open {
  display: flex !important;
}
.drv-sg-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drvSgPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drvSgPopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.drv-sg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.drv-sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.drv-sg-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.drv-sg-prod-name {
  margin: 4px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.drv-sg-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-height: 0 !important;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drv-sg-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}
.drv-sg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.drv-sg-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.drv-sg-tab-btn {
  min-height: 0 !important;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drv-sg-tab-btn.is-active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}
.drv-sg-unit-switch {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
  margin-left: auto;
}
.drv-sg-unit-btn {
  min-height: 0 !important;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.drv-sg-unit-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.drv-sg-body {
  padding: 18px 22px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}
.drv-sg-pane {
  display: none;
}
.drv-sg-pane.is-active {
  display: block;
}
.drv-sg-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.drv-sg-pills-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #9a3412;
  margin-right: 4px;
}
.drv-sg-pill {
  min-height: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drv-sg-pill-price {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.drv-sg-pill:hover {
  border-color: #c84b0e;
  color: #c84b0e;
}
.drv-sg-pill.is-selected {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}
.drv-sg-pill:focus-visible,
.drv-sg-tab-btn:focus-visible,
.drv-sg-unit-btn:focus-visible,
.drv-sg-close:focus-visible,
.drv-sg-table tbody tr[data-sg-opt-values]:focus-visible {
  outline: 2px solid #c84b0e;
  outline-offset: 2px;
}
.drv-sg-scroll-hint {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  margin: -2px 2px 6px;
  transition: opacity 0.2s ease;
}
.drv-sg-scroll-hint.is-visible {
  display: flex;
}
.drv-sg-scroll-hint.is-scrolled {
  opacity: 0;
  pointer-events: none;
}
.drv-sg-table-wrap {
  position: relative;
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #ffffff;
}
.drv-sg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13.5px;
  color: #1e293b;
}
.drv-sg-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  padding: 11px 13px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}
.drv-sg-table th:first-child,
.drv-sg-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid #e2e8f0;
}
.drv-sg-table thead th:first-child {
  z-index: 4;
  background: #f1f5f9;
}
.drv-sg-table td {
  padding: 10px 13px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.45;
  background: #ffffff;
}
.drv-sg-table tbody tr:last-child td {
  border-bottom: 0;
}
.drv-sg-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.drv-sg-table tbody tr[data-sg-opt-values] {
  cursor: pointer;
  transition: background-color 0.14s ease;
}
.drv-sg-table tbody tr[data-sg-opt-values]:hover td {
  background: #fff7ed;
}
.drv-sg-table tbody tr.is-selected-row td {
  background: #ecfdf5 !important;
  box-shadow: inset 0 2px 0 #0f766e, inset 0 -2px 0 #0f766e;
}
.drv-sg-table tbody tr.is-selected-row td:first-child {
  color: #0f766e;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #0f766e, inset 0 2px 0 #0f766e, inset 0 -2px 0 #0f766e;
}
.drv-sg-table tbody tr.is-selected-row td:last-child {
  box-shadow: inset -2px 0 0 #0f766e, inset 0 2px 0 #0f766e, inset 0 -2px 0 #0f766e;
}
.drv-sg-sel-tag {
  display: none;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}
.drv-sg-table tbody tr.is-selected-row .drv-sg-sel-tag {
  display: inline-block;
}
.drv-sg-table [data-col-unit="metric"],
.drv-sg-table .drv-sg-u-met {
  color: #0f766e;
  font-weight: 600;
}
#drv-pdp-size-guide-modal[data-unit-mode="imperial"] .drv-sg-table [data-col-unit="metric"],
#drv-pdp-size-guide-modal[data-unit-mode="metric"] .drv-sg-table [data-col-unit="imperial"],
#drv-pdp-size-guide-modal[data-unit-mode="imperial"] .drv-sg-table .drv-sg-u-met,
#drv-pdp-size-guide-modal[data-unit-mode="imperial"] .drv-sg-table .drv-sg-u-sep,
#drv-pdp-size-guide-modal[data-unit-mode="metric"] .drv-sg-table .drv-sg-u-imp,
#drv-pdp-size-guide-modal[data-unit-mode="metric"] .drv-sg-table .drv-sg-u-sep {
  display: none !important;
}
.drv-sg-fit-finder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.drv-sg-ff-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #065f46;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.drv-sg-ff-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.drv-sg-ff-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.drv-sg-ff-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.drv-sg-ff-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #99f6e4;
  padding: 4px 10px;
  border-radius: 999px;
}
.drv-sg-ff-apply {
  border: 0;
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.drv-sg-ff-apply:hover {
  background: #0d9488;
}
.drv-sg-info-grid {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 16px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.drv-sg-diagram-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
}
.drv-sg-scale-callout {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
}
.drv-sg-notes p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.drv-sg-notes p:last-child {
  margin-bottom: 0;
}
.drv-sg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12.5px;
  color: #64748b;
}
.drv-sg-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.drv-sg-copy-btn {
  min-height: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drv-sg-copy-btn:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdf4;
}
.drv-sg-drag-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 8px auto 0;
  flex-shrink: 0;
}
.drv-size-guide-link {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease;
}
.drv-size-guide-link svg {
  flex-shrink: 0 !important;
}
.drv-size-guide-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a !important;
  transform: translateY(-1px);
}
.drv-pdp-inline-size-spec {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.15s ease;
  max-width: 100%;
}
.drv-pdp-inline-size-spec:not(:empty)::before {
  content: "\2014\00a0";
  color: #cbd5e1;
  font-weight: 400;
}
.drv-pdp-inline-size-spec:hover {
  background: transparent;
  border-color: transparent;
  color: #0f172a;
}
@media (max-width: 833px) {
  .drv-sg-close {
    width: 44px;
    height: 44px;
  }
  .drv-size-guide-link {
    min-height: 36px !important;
    height: auto !important;
    padding: 6px 10px !important;
  }
}
@media (max-width: 680px) {
  #drv-pdp-size-guide-modal {
    padding: 0;
    align-items: flex-end;
  }
  .drv-sg-dialog {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
  .drv-sg-drag-handle {
    display: block;
  }
  .drv-sg-header {
    padding: 10px 16px 12px;
  }
  .drv-sg-title {
    font-size: 16.5px;
  }
  .drv-sg-toolbar, .drv-sg-body, .drv-sg-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .drv-sg-info-grid {
    grid-template-columns: 1fr;
  }
  .drv-sg-table th, .drv-sg-table td {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}
