.dgpd-links {
  margin: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dgpd-link,
.dgpd-nav-link,
.dgpd-close {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.dgpd-link {
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.dgpd-link span {
  border-bottom: 1px solid transparent;
}

.dgpd-link:hover span,
.dgpd-link:focus span {
  border-bottom-color: currentColor;
}

.dgpd-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  width: 100vw;
  height: var(--dgpd-vh, 100dvh);
  max-height: var(--dgpd-vh, 100dvh);
}

.dgpd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.72);
  opacity: 0;
  transition: opacity .28s ease;
}

.dgpd-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(700px, 100vw);
  height: var(--dgpd-vh, 100dvh);
  max-height: var(--dgpd-vh, 100dvh);
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.06);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dgpd-drawer.is-open {
  pointer-events: auto;
}

.dgpd-drawer.is-open .dgpd-overlay {
  opacity: 1;
}

.dgpd-drawer.is-open .dgpd-panel {
  transform: translateX(0);
}

body.dgpd-lock {
  overflow: hidden;
}

.dgpd-panel-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 68px;
  padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  background: rgba(255,255,255,.98);
}

.dgpd-close-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dgpd-panel-inner {
  padding: 40px 42px 56px;
}

.dgpd-nav {
  display: none !important;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.dgpd-nav-link {
  padding: 0;
  color: #888;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
}

.dgpd-nav-link.is-active {
  color: #111;
}

.dgpd-content {
  display: none;
}

.dgpd-content.is-active {
  display: block;
}

.dgpd-title {
  display: none !important;
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dgpd-html {
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}

.dgpd-html p:first-child {
  margin-top: 0;
}

.dgpd-footer {
  margin-top: 56px;
}

.dgpd-close-button {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid #111 !important;
  background: #fff !important;
  background-image: none !important;
  color: #111 !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
  border-radius: 0 !important;
}

.dgpd-close-button,
.dgpd-close-button:hover,
.dgpd-close-button:focus,
.dgpd-close-button:active {
  box-shadow: none !important;
}

.dgpd-close-button:hover,
.dgpd-close-button:focus {
  background: #fff;
  color: #111;
  opacity: 1;
}

@media (max-width: 767px) {
  .dgpd-links {
    margin: 48px 0 0;
  }

  .dgpd-panel {
    width: 100vw;
    max-width: 100vw;
    height: var(--dgpd-vh, 100dvh);
    max-height: var(--dgpd-vh, 100dvh);
  }

  .dgpd-panel-top {
    padding: calc(max(16px, env(safe-area-inset-top)) + 10px) 12px 14px;
    min-height: 74px;
  }

  .dgpd-close-top {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .dgpd-panel-inner {
    padding: 72px 22px 52px;
  }

  .dgpd-content-wrap {
    margin-top: 40px;
  }

  .dgpd-footer {
    margin-top: 68px;
  }

  .dgpd-close-button {
    width: calc(100% - 24px);
    margin: 26px 12px 0;
    min-height: 50px;
    padding: 15px 22px;
    font-size: 14px;
    letter-spacing: .07em;
  }

  .dgpd-title {
    font-size: 22px;
  }
}

/* Hide native product tabs handled by module */
body#product #description,
body#product #product-details,
body#product #tab-description,
body#product #tab-product-details,
body#product .tab-pane#description,
body#product .tab-pane#product-details,
body.product #description,
body.product #product-details,
body.product #tab-description,
body.product #tab-product-details,
body.product .tab-pane#description,
body.product .tab-pane#product-details {
  display: none !important;
}

body#product a[href="#description"],
body#product a[href="#product-details"],
body#product [data-toggle="tab"][href="#description"],
body#product [data-toggle="tab"][href="#product-details"],
body#product [role="tab"][href="#description"],
body#product [role="tab"][href="#product-details"],
body#product [aria-controls="description"],
body#product [aria-controls="product-details"],
body#product [data-target="#description"],
body#product [data-target="#product-details"],
body.product a[href="#description"],
body.product a[href="#product-details"],
body.product [data-toggle="tab"][href="#description"],
body.product [data-toggle="tab"][href="#product-details"],
body.product [role="tab"][href="#description"],
body.product [role="tab"][href="#product-details"],
body.product [aria-controls="description"],
body.product [aria-controls="product-details"],
body.product [data-target="#description"],
body.product [data-target="#product-details"] {
  display: none !important;
}

.dgpd-stockstores { padding: .5rem 0; }
.dgpd-stockstores__status { margin-bottom: .75rem; font-size: .95rem; }
.dgpd-stockstores__meta { margin: .25rem 0 .9rem; font-size: .9rem; opacity: .8; }
.dgpd-store {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.dgpd-store__name { font-weight: 600; }
.dgpd-store__meta, .dgpd-store__tel { font-size: .9rem; opacity: .8; }
.dgpd-store__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.dgpd-store__variant {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right;
  opacity: .85;
}
.dgpd-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(0,0,0,.15);
}
.dgpd-badge--ok { font-weight: 700; color: #ff00b8; border-color: #ff00b8; }
.dgpd-badge--warn { font-weight: 700; color: #ff9800; border-color: #ff9800; }
.dgpd-badge--out { font-weight: 700; color: #333; border-color: rgba(0,0,0,.15); opacity: .85; }
@media (max-width: 767px) {
  .dgpd-store {
    flex-direction: column;
    align-items: flex-start;
  }
  .dgpd-store__right {
    align-items: flex-start;
  }
  .dgpd-store__variant {
    text-align: left;
  }
}
