/* HYPE theme configurator - side cart panel */
html.hype-dr-lock, html.hype-dr-lock body { overflow: hidden; }
#blockcart-modal { display: none !important; }
.hype-dr, .hype-dr * { box-sizing: border-box; }

.hype-dr { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.hype-dr.is-open { pointer-events: auto; }
.hype-dr__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.hype-dr.is-open .hype-dr__overlay { opacity: 1; }
.hype-dr__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  display: flex; flex-direction: column;
  background: var(--hype-surface, #141414); color: var(--hype-text, #f5f5f5);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.hype-dr.is-open .hype-dr__panel { transform: none; }
.hype-dr__panel.is-busy .hype-dr__content { opacity: .55; pointer-events: none; }
.hype-dr__panel.is-busy::after {
  content: ""; position: absolute; top: 22px; right: 64px; width: 18px; height: 18px;
  border: 2px solid var(--hype-accent, #00d95f); border-right-color: transparent; border-radius: 50%;
  animation: hype-dr-spin .7s linear infinite;
}
@keyframes hype-dr-spin { to { transform: rotate(360deg); } }

.hype-dr__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--hype-border, rgba(255, 255, 255, .1)); }
.hype-dr__title { margin: 0 !important; font-size: 1.35rem !important; display: flex !important; align-items: center; gap: 8px; text-align: left !important; }
.hype-dr__title::before, .hype-dr__title::after { display: none !important; content: none !important; }
.hype-dr__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--hype-accent, #00d95f); color: var(--hype-accent-text, #000); font-size: 13px; font-weight: 700; }
.hype-dr__close { background: none; border: 0; color: inherit; font-size: 30px; line-height: 1; padding: 0 4px; cursor: pointer; opacity: .8; }
.hype-dr__close:hover { opacity: 1; }

.hype-dr__content { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity .2s; }
.hype-dr__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.hype-dr__msg { margin: 12px 20px 0; padding: 10px 12px; border-radius: 8px; background: rgba(220, 53, 69, .15); color: #ff8a95; font-size: 14px; }
.hype-dr__empty { padding: 40px 20px; text-align: center; }

.hype-dr__bar { padding: 10px 14px; border-radius: 10px; background: var(--hype-surface-2, #1d1d1d); text-align: center; font-weight: 600; font-size: 14px; }
.hype-dr__bar-track { height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hype-dr__bar-track span { display: block; height: 100%; background: var(--hype-accent, #00d95f); border-radius: 3px; transition: width .4s; }
.hype-dr__banner { display: block; border-radius: 10px; overflow: hidden; }
.hype-dr__banner img { display: block; width: 100%; height: auto; }

.hype-dr__line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start; padding: 10px; border-radius: 10px; }
.hype-dr__line.is-gift { background: linear-gradient(90deg, rgba(0, 217, 95, .14), rgba(0, 217, 95, .03)); }
.hype-dr__img { display: block; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--hype-surface-2, #1d1d1d); }
.hype-dr__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hype-dr__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hype-dr__name { color: inherit !important; font-weight: 700; line-height: 1.25; text-decoration: none; }
.hype-dr__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.hype-dr__price s { opacity: .55; }
.hype-dr__free { padding: 1px 7px; border-radius: 4px; background: var(--hype-accent, #00d95f); color: var(--hype-accent-text, #000); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hype-dr__attrs { font-size: 13px; color: var(--hype-muted, #9a9a9a); }
.hype-dr__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hype-dr__qty { display: inline-flex; align-items: center; border: 1px solid var(--hype-border, rgba(255, 255, 255, .18)); border-radius: 8px; overflow: hidden; }
.hype-dr__qty button { width: 30px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.hype-dr__qty button:hover { background: rgba(255, 255, 255, .08); }
.hype-dr__qty span { min-width: 28px; text-align: center; font-weight: 600; }
.hype-dr__qtyonly { font-weight: 600; opacity: .8; }
.hype-dr__remove { background: none; border: 0; padding: 0; color: var(--hype-muted, #9a9a9a); text-decoration: underline; font-size: 13px; cursor: pointer; }
.hype-dr__remove:hover { color: inherit; }

.hype-dr__up { margin-top: 6px; padding: 14px; border-radius: 12px; background: var(--hype-surface-2, #1d1d1d); }
.hype-dr__up-title { margin: 0 0 10px !important; font-size: 1rem !important; text-align: left !important; display: block !important; text-transform: none; letter-spacing: 0; }
.hype-dr__up-title::before, .hype-dr__up-title::after { display: none !important; content: none !important; }
.hype-dr__up-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hype-dr__up-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: var(--hype-surface, #141414); }
.hype-dr__up-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; display: block; }
.hype-dr__up-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hype-dr__up-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hype-dr__up-name { color: inherit !important; font-size: 13px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hype-dr__add { align-self: flex-end; margin-top: auto; padding: 4px 14px; border: 0; border-radius: 6px; background: var(--hype-accent, #00d95f); color: var(--hype-accent-text, #000) !important; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.hype-dr__add:hover { background: var(--hype-accent-hover, #00b84f); }

.hype-dr__foot { padding: 14px 20px 18px; border-top: 1px solid var(--hype-border, rgba(255, 255, 255, .1)); background: var(--hype-surface, #141414); }
.hype-dr__sum summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.hype-dr__sum dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; }
.hype-dr__sum dt { font-weight: normal; color: var(--hype-muted, #9a9a9a); }
.hype-dr__sum dd { margin: 0; text-align: right; }
.hype-dr__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 1.15rem; }
.hype-dr__total strong { font-size: 1.35rem; }
.hype-dr__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hype-dr__btn { width: 100%; text-align: center; }

@media (max-width: 480px) {
  .hype-dr__up-list { grid-template-columns: 1fr; }
  .hype-dr__line { grid-template-columns: 64px 1fr auto; }
  .hype-dr__img { width: 64px; height: 64px; }
}

.hype-dr__vouchers { display: flex; flex-direction: column; gap: 6px; }
.hype-dr__voucher { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 10px; background: var(--hype-surface-2, #1d1d1d); font-size: 14px; }
.hype-dr__voucher.is-gift { background: linear-gradient(90deg, rgba(0, 217, 95, .16), rgba(0, 217, 95, .04)); }
.hype-dr__vname { font-weight: 600; }
.hype-dr__vright { display: inline-flex; align-items: center; gap: 8px; }
.hype-dr__vnote { flex-basis: 100%; font-size: 12px; color: var(--hype-muted, #9a9a9a); }
