/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */
.pshugiftmanager,
.pshugiftmanager-dialog,
.pshugiftmanager-checkout {
  --pshugiftmanager-dur: 200ms;
  --pshugiftmanager-dur-slow: 320ms;
  --pshugiftmanager-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pshugiftmanager-accent: var(--bs-primary, var(--primary, currentColor));
  --pshugiftmanager-line: rgba(0, 0, 0, 0.12);
  --pshugiftmanager-muted: rgba(0, 0, 0, 0.6);
}

.pshugiftmanager {
  margin: 1rem 0;
}

.pshugiftmanager .pshugiftmanager-box {
  margin: 0;
  opacity: 1;
  transition: opacity var(--pshugiftmanager-dur) var(--pshugiftmanager-ease);
}

.pshugiftmanager .btn-secondary,
.pshugiftmanager-dialog .btn-secondary {
  box-shadow: inset 0 0 0 1px var(--pshugiftmanager-line);
}

.pshugiftmanager.is-entering .pshugiftmanager-box {
  opacity: 0;
}

.pshugiftmanager-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pshugiftmanager-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.pshugiftmanager-media {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--pshugiftmanager-accent);
}

.pshugiftmanager-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pshugiftmanager-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pshugiftmanager-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pshugiftmanager-title,
.pshugiftmanager-desc {
  margin: 0;
  overflow-wrap: anywhere;
}

.pshugiftmanager-title {
  margin-bottom: 0.25rem;
}

.pshugiftmanager-combination,
.pshugiftmanager-next,
.pshugiftmanager-label {
  color: var(--pshugiftmanager-muted);
}

.pshugiftmanager-upgrade,
.pshugiftmanager-next {
  margin-top: 0.25rem;
}

.pshugiftmanager-progress {
  height: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--pshugiftmanager-line);
  overflow: hidden;
}

.pshugiftmanager-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pshugiftmanager-accent);
  transform-origin: left center;
  transform: scaleX(var(--pshugiftmanager-progress, 0));
  transition: transform var(--pshugiftmanager-dur-slow) var(--pshugiftmanager-ease);
}

.pshugiftmanager-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.pshugiftmanager-notice,
.pshugiftmanager-error {
  margin: 0;
}

.pshugiftmanager-checkout {
  margin: 0 0 1rem;
}

.pshugiftmanager-checkout .pshugiftmanager-media {
  width: 3rem;
  height: 3rem;
}

html.pshugiftmanager-locked {
  overflow: hidden;
}

.pshugiftmanager-dialog {
  width: min(56rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  color: inherit;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.pshugiftmanager-dialog:not([open]) {
  display: none;
}

.pshugiftmanager-dialog[open] {
  display: flex;
  flex-direction: column;
}

.pshugiftmanager-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.pshugiftmanager-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pshugiftmanager-line);
}

.pshugiftmanager-dialog-title {
  margin: 0;
}

.pshugiftmanager-dialog-close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.pshugiftmanager-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow-y: auto;
}

.pshugiftmanager-preview {
  margin: 0;
}

.pshugiftmanager-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pshugiftmanager-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--pshugiftmanager-line);
  border-radius: 0.375rem;
  text-align: center;
}

.pshugiftmanager-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.pshugiftmanager-item-media img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.pshugiftmanager-item-name,
.pshugiftmanager-item-combination,
.pshugiftmanager-item-chosen,
.pshugiftmanager-item-error {
  margin: 0;
  overflow-wrap: anywhere;
}

.pshugiftmanager-item-combination,
.pshugiftmanager-item-chosen {
  color: var(--pshugiftmanager-muted);
  font-size: 0.875em;
}

.pshugiftmanager-item-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.pshugiftmanager-status {
  margin: 0;
  text-align: center;
}

.pshugiftmanager-status:empty {
  display: none;
}

.pshugiftmanager-more {
  align-self: center;
}

@media (max-width: 575px) {
  .pshugiftmanager-row {
    flex-wrap: wrap;
  }

  .pshugiftmanager .pshugiftmanager-actions {
    flex: 1 1 100%;
  }

  .pshugiftmanager-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .pshugiftmanager-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pshugiftmanager .pshugiftmanager-box,
  .pshugiftmanager-progress-bar {
    transition: none;
  }
}
