@font-face {
    font-family: 'DBP Druk';
    src: url('https://cdn.jsdelivr.net/gh/dykparf/DRUK@main/Druk.woff.ttf') format('truetype');
    font-display: swap;
    font-style: normal;
    font-weight: 400;
  }

  @font-face {
    font-family: 'DBP Manrope';
    src: url('https://cdn.jsdelivr.net/gh/dykparf/MANROPE@main/Manrope.ttf') format('truetype');
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
  }

  .dbp-picker {
    margin: 26px 0 30px;
    color: #fff;
    font-family: 'DBP Manrope', Arial, sans-serif;
  }

  .dbp-picker__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
  }

  .dbp-picker__title {
    margin: 0;
    color: #fff;
    font-family: 'DBP Druk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
  }

  .dbp-picker__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 390px;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-color: #00ff94 #181818;
    scrollbar-width: thin;
  }

  .dbp-category__title {
    margin: 0 0 8px;
    color: var(--dbp-meta-color, #8b8b8b);
    font-size: 16px;
    font-weight: 700;
  }

  .dbp-category__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dbp-option {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 4px 8px 4px 4px;
    color: #fff;
    text-align: left;
    background: #111;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .18s ease, background-color .18s ease;
  }

  .dbp-option:hover { border-color: #777; }
  .dbp-option.is-selected {
    background: rgba(0, 255, 148, .07);
    border-color: #00ff94;
  }

  .dbp-option__media {
    position: relative;
    display: grid;
    place-items: center;
    width: 70px;
    aspect-ratio: 1;
    overflow: hidden;
    color: #00ff94;
    background: radial-gradient(circle at 50% 30%, #333, #181818 72%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
  }

  .dbp-option__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .dbp-option__media.has-image { cursor: zoom-in; }

  .dbp-option__zoom {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: rgba(0, 0, 0, .68);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    pointer-events: none;
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
  }

  .dbp-option__zoom svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .dbp-option:hover .dbp-option__zoom {
    color: #00ff94;
    border-color: #00ff94;
    transform: scale(1.08);
  }

  .dbp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 5vh 5vw;
    background: rgba(0, 0, 0, .82);
    border: 0;
    cursor: zoom-out;
    font-family: 'DBP Manrope', Arial, sans-serif;
    animation: dbp-lightbox-fade-in .22s ease-out both;
  }

  .dbp-lightbox img {
    display: block;
    width: auto;
    max-width: min(90vw, 760px);
    height: auto;
    max-height: calc(90vh - 58px);
    padding: 16px;
    object-fit: contain;
    background: #111;
    border: 1px solid #444;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .65);
    transform-origin: center;
    animation: dbp-lightbox-zoom-in .28s cubic-bezier(.2, .8, .2, 1) both;
  }

  .dbp-lightbox__caption {
    display: block;
    max-width: min(90vw, 760px);
    margin-top: 12px;
    color: #fff;
    font-family: 'DBP Druk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    animation: dbp-lightbox-caption-in .25s .06s ease-out both;
  }

  .dbp-lightbox.is-closing {
    animation: dbp-lightbox-fade-out .18s ease-in both;
  }

  .dbp-lightbox.is-closing img {
    animation: dbp-lightbox-zoom-out .18s ease-in both;
  }

  .dbp-lightbox.is-closing .dbp-lightbox__caption {
    animation: dbp-lightbox-caption-out .14s ease-in both;
  }

  @keyframes dbp-lightbox-fade-in {
    from { background-color: rgba(0, 0, 0, 0); }
    to { background-color: rgba(0, 0, 0, .82); }
  }

  @keyframes dbp-lightbox-zoom-in {
    from { opacity: 0; transform: scale(.72); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes dbp-lightbox-caption-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes dbp-lightbox-fade-out {
    from { background-color: rgba(0, 0, 0, .82); }
    to { background-color: rgba(0, 0, 0, 0); }
  }

  @keyframes dbp-lightbox-zoom-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.82); }
  }

  @keyframes dbp-lightbox-caption-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(5px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .dbp-lightbox,
    .dbp-lightbox img,
    .dbp-lightbox__caption {
      animation: none !important;
    }
  }

  .dbp-option__copy { min-width: 0; }
  .dbp-option__name {
    display: block;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
  }

  .dbp-option__price {
    display: block;
    margin-top: 5px;
    color: #00ff94;
    font-size: 14px;
    font-weight: 700;
  }

  .dbp-option__check {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: transparent;
    border: 1px solid #555;
    border-radius: 50%;
    font-size: 14px;
  }

  .dbp-option.is-selected .dbp-option__check {
    color: #000;
    background: #00ff94;
    border-color: #00ff94;
  }

  .dbp-picker__status {
    padding: 15px;
    color: #aaa;
    text-align: center;
    background: #111;
    border-radius: 10px;
    font-size: 15px;
  }

  .dbp-picker__status.is-error { color: #ff6f9e; }
  .dbp-picker__native-option {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  @media (max-width: 640px) {
    .dbp-picker { margin: 24px 0 27px; }
    .dbp-picker__grid { max-height: 360px; }
    .dbp-category__options { grid-template-columns: 1fr; }
    .dbp-option { grid-template-columns: 66px minmax(0, 1fr) 18px; }
    .dbp-option__media { width: 66px; }
  }
