/* Wishlist Gift: storefront styles. Theme independent, scoped by the .wg-* prefix.
   Design tokens come from the Figma file "Wishlist" (Primary, Secondary, Wishlist Accent, Neutral). */
.wg-page, .wg-modal-root, .wg-scope {
  --wg-primary: #473c8f;
  --wg-secondary: #b6a2fc;
  --wg-accent: #e36fa7;
  --wg-white: #fff;
  --wg-black: #000;
  --wg-n100: #efefef;
  --wg-n200: #ccc;
  --wg-n600: #777;
  --wg-required: #f00;
  --wg-radius: 6px;
  font-family: Mariupol, "MacPaw Fixel Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--wg-black);
  font-size: 14px;
  line-height: 20px;
}
.wg-page *, .wg-page *::before, .wg-page *::after,
.wg-modal-root *, .wg-modal-root *::before, .wg-modal-root *::after { box-sizing: border-box; }
.wg-page { width: 100%; max-width: 1170px; margin: 0 auto; padding: 24px 15px 60px; }
.wg-page a { text-decoration: none; }

/* Hero banner */
.wg-hero {
  position: relative; margin: 0 0 40px; padding: 26px 30px 26px; border-radius: 20px; color: var(--wg-white);
  background:
    radial-gradient(ellipse 28% 120% at 60% 40%, rgba(240, 150, 190, .85), rgba(240, 150, 190, 0) 70%),
    linear-gradient(100deg, #b6a2fc 0%, #b56ad9 30%, #d878c8 62%, #ff84e8 100%);
}
.wg-hero-actions { display: flex; align-items: center; gap: 12px; }
.wg-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.wg-hero-title { margin: 0; padding: 0; font-size: 44px; line-height: 46px; font-weight: 500; color: var(--wg-white); letter-spacing: 0; overflow-wrap: anywhere; }
.wg-hero-sub { margin: 14px 0 0; font-size: 20px; line-height: 26px; color: rgba(255, 255, 255, .62); }
.wg-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.wg-hero-comment { margin: 12px 0 0; font-size: 16px; line-height: 22px; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }

.wg-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 20px; border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-black); font-size: 18px; line-height: 24px; }
.wg-chip-toggle { border: 0; cursor: pointer; font-family: inherit; transition: box-shadow .15s; }
.wg-chip-toggle:hover { box-shadow: 0 0 0 2px var(--wg-accent); }
.wg-chip-toggle:disabled { opacity: .6; cursor: wait; }
.wg-search { max-width: 560px; margin: 24px 0; }
.wg-search-row { display: flex; gap: 12px; }
.wg-search-row .wg-input { flex: 1; }
.wg-search-row .wg-submit { width: auto; margin: 0; padding: 0 28px; height: 48px; font-size: 18px; }
.wg-search-count { margin: 0 0 16px; color: var(--wg-primary); font-size: 18px; }
.wg-chip .fa { font-size: 18px; }
.wg-chip--grey { background: var(--wg-n100); font-size: 17px; min-height: 36px; padding: 6px 16px; }
.wg-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-black) !important; font-size: 18px; cursor: pointer; }
.wg-icon-btn:hover { filter: brightness(.95); }

/* Three dots menu */
.wg-menu { position: relative; }
.wg-menu-toggle { width: 34px; height: 40px; border: 0; background: transparent; color: var(--wg-white); font-size: 26px; cursor: pointer; }
.wg-menu-list { display: none; position: absolute; right: 0; top: 100%; z-index: 20; min-width: 220px; margin: 4px 0 0; padding: 6px; list-style: none; border-radius: 10px; background: var(--wg-white); box-shadow: 0 8px 28px rgba(40, 20, 90, .25); }
.wg-menu.is-open .wg-menu-list { display: block; }
.wg-menu-list a, .wg-menu-list button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--wg-black) !important; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.wg-menu-list a:hover, .wg-menu-list button:hover { background: var(--wg-n100); }
.wg-menu-danger { color: #c0262d !important; }

/* Stats */
.wg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; }
.wg-stat { padding: 14px 10px; border: 1px solid var(--wg-secondary); border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-primary); font-size: 22px; line-height: 28px; text-align: center; }

/* Sort control */
.wg-toolbar { display: flex; justify-content: flex-end; margin: 0 0 22px; }
.wg-sort { position: relative; display: inline-block; }
.wg-sort select { appearance: none; -webkit-appearance: none; min-width: 150px; height: 34px; padding: 0 34px 0 14px; border: 0; border-radius: var(--wg-radius); background: var(--wg-n100); color: var(--wg-black); font: inherit; font-size: 14px; cursor: pointer; }
.wg-sort .fa { position: absolute; right: 12px; top: 8px; pointer-events: none; font-size: 16px; }

/* Section title */
.wg-section-title { margin: 56px 0 22px; font-size: 32px; line-height: 36px; font-weight: 500; color: var(--wg-black); }

/* Product grid and card */
.wg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; }
.wg-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 16px; border: 1px solid #e4e4e4; border-radius: 10px; background: var(--wg-white); }
.wg-card.is-muted .wg-card-img, .wg-card.is-muted .wg-card-name, .wg-card.is-muted .wg-badge, .wg-card.is-muted .wg-rating, .wg-card.is-muted .wg-card-price { opacity: .5; }
.wg-card-img { display: flex; align-items: center; justify-content: center; height: 210px; margin-bottom: 14px; }
.wg-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wg-card-name { display: block; min-height: 60px; margin: 0 0 12px; color: var(--wg-black) !important; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.wg-badge { display: inline-block; align-self: flex-start; padding: 3px 9px; border: 1px solid var(--wg-secondary); border-radius: 4px; color: var(--wg-primary); font-size: 12px; line-height: 16px; }
.wg-badge--off { border-color: var(--wg-n200); color: var(--wg-n600); }
.wg-rating { display: flex; align-items: center; gap: 2px; margin: 12px 0 10px; color: #e2e2e2; font-size: 12px; }
.wg-rating .is-on { color: #f2b01e; }
.wg-rating-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: 11px; background: var(--wg-n100); color: var(--wg-black); font-size: 11px; }
.wg-card-price { margin: 0 0 12px; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--wg-black); }
.wg-card-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; background: #faf8ff; color: var(--wg-n600); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.wg-card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; }
.wg-btn-buy, .wg-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 0; border-radius: var(--wg-radius); font: inherit; font-size: 15px; cursor: pointer; }
.wg-btn-buy { min-width: 110px; padding: 0 20px; background: var(--wg-primary); color: var(--wg-white) !important; }
.wg-btn-buy:hover { filter: brightness(1.08); }
.wg-card.is-muted .wg-btn-buy { opacity: .5; }
.wg-btn-buy.is-disabled { pointer-events: none; }
.wg-card-remove { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border: 1px solid var(--wg-n200); border-radius: 50%; background: var(--wg-white); color: var(--wg-n600); font-size: 14px; cursor: pointer; }
.wg-card-remove:hover { color: #c0262d; border-color: #c0262d; }

/* Empty state, alerts */
.wg-empty { margin: 0 0 40px; padding: 34px 20px; border: 1px dashed var(--wg-secondary); border-radius: 12px; background: #fbf9ff; color: var(--wg-n600); font-size: 16px; text-align: center; }
.wg-alert { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--wg-radius); font-size: 15px; }
.wg-alert--ok { background: #eaf7ef; color: #146c3c; }
.wg-alert--err { background: #fdecec; color: #a61d24; }

/* List cards (overview) */
.wg-lists { display: grid; gap: 28px; margin: 0 0 40px; }
.wg-list-card { display: block; padding: 24px 28px 26px; border: 1px solid #b9b9b9; border-radius: 14px; background: var(--wg-white); transition: box-shadow .15s; }
.wg-list-card:hover { box-shadow: 0 6px 22px rgba(71, 60, 143, .14); }
.wg-list-card-title { display: block; margin: 0 0 16px; color: var(--wg-primary) !important; font-size: 30px; line-height: 36px; font-weight: 500; overflow-wrap: anywhere; }
.wg-list-card-meta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Forms */
.wg-form { margin: 0; }
.wg-form-top { display: flex; justify-content: flex-end; margin: 0 0 26px; }
.wg-pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--wg-radius); background: var(--wg-n100); color: var(--wg-black) !important; font-size: 14px; }
.wg-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 12px 20px; margin: 0 0 18px; }
.wg-label { padding-top: 11px; font-size: 18px; line-height: 24px; color: var(--wg-black); }
.wg-req { color: var(--wg-required); }
.wg-input, .wg-textarea, .wg-select { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--wg-n200); border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-black); font: inherit; font-size: 15px; }
.wg-textarea { height: 100px; padding: 12px 16px; resize: vertical; }
.wg-input::placeholder, .wg-textarea::placeholder { color: var(--wg-n600); }
.wg-input:focus, .wg-textarea:focus, .wg-select:focus { outline: none; border-color: var(--wg-primary); box-shadow: 0 0 0 3px rgba(182, 162, 252, .35); }
.wg-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: none; }
.wg-select-wrap { position: relative; }
.wg-select-wrap .fa { position: absolute; right: 16px; top: 15px; pointer-events: none; color: var(--wg-black); }
.wg-field-error { margin-top: 6px; color: #c0262d; font-size: 13px; }
.wg-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--wg-n600); }
.wg-check input { width: 17px; height: 17px; }
.wg-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 40px; padding: 8px 14px; border-radius: var(--wg-radius); background: var(--wg-primary); color: var(--wg-white); font-size: 18px; cursor: pointer; }
.wg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wg-toggle-track { position: relative; flex: 0 0 auto; width: 52px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .35); transition: background .15s; }
.wg-toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--wg-white); transition: transform .15s; }
.wg-toggle input:checked + .wg-toggle-track { background: var(--wg-secondary); }
.wg-toggle input:checked + .wg-toggle-track::after { transform: translateX(24px); }
.wg-toggle input:focus-visible + .wg-toggle-track { box-shadow: 0 0 0 3px rgba(182, 162, 252, .6); }
.wg-hint { margin: 8px 0 0; color: var(--wg-n600); font-size: 14px; }
.wg-submit { display: block; width: 100%; height: 56px; margin: 34px 0 0; border: 0; border-radius: var(--wg-radius); background: var(--wg-primary); color: var(--wg-white); font: inherit; font-size: 22px; cursor: pointer; }
.wg-submit:hover { filter: brightness(1.1); }
.wg-submit:disabled { opacity: .6; cursor: wait; }
.wg-form--stack .wg-row { display: block; }
.wg-form--stack .wg-label { display: block; padding: 0 0 8px; }
.wg-form--stack .wg-row { margin-bottom: 24px; }
.wg-form--stack .wg-input, .wg-form--stack .wg-select { height: 54px; }

/* Autocomplete (Nova Poshta search) */
.wg-ac { position: relative; }
.wg-ac-list { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 280px; margin: 4px 0 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--wg-n200); border-radius: 8px; background: var(--wg-white); box-shadow: 0 8px 24px rgba(40, 20, 90, .18); }
.wg-ac.is-open .wg-ac-list { display: block; }
.wg-ac-item { padding: 9px 12px; border-radius: 6px; font-size: 15px; cursor: pointer; }
.wg-ac-item:hover, .wg-ac-item.is-active { background: var(--wg-n100); }
.wg-ac-item small { display: block; color: var(--wg-n600); font-size: 12px; }
.wg-ac-empty { padding: 10px 12px; color: var(--wg-n600); font-size: 14px; }

/* Modal "Add to wishlist" */
.wg-modal-root .modal-content { overflow: hidden; border: 0; border-radius: 20px; }
.wg-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--wg-n200); }
.wg-modal-title { margin: 0; font-size: 26px; line-height: 30px; font-weight: 400; color: var(--wg-black); }
.wg-modal-close { border: 0; background: transparent; color: var(--wg-n600); font-size: 26px; line-height: 1; cursor: pointer; }
.wg-modal-body { padding: 22px 26px 26px; }
.wg-modal-product { display: flex; align-items: center; gap: 20px; margin: 0 0 22px; padding: 18px; border: 1px solid #e4e4e4; border-radius: 12px; }
.wg-modal-product-img { flex: 0 0 38%; text-align: center; }
.wg-modal-product-img img { max-width: 100%; max-height: 190px; object-fit: contain; }
.wg-modal-product-info { flex: 1 1 auto; min-width: 0; }
.wg-modal-product-name { margin: 0 0 10px; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.wg-modal-product .wg-card-price { margin-bottom: 10px; }
.wg-modal-label { display: block; margin: 0 0 8px; font-size: 20px; line-height: 26px; }
.wg-modal-field { margin: 0 0 18px; }
.wg-modal-create { display: none; margin-top: 18px; }
.wg-modal-create.is-open { display: block; }
.wg-modal-submit { display: block; width: 100%; height: 56px; margin: 8px 0 0; border: 0; border-radius: var(--wg-radius); background: var(--wg-primary); color: var(--wg-white); font: inherit; font-size: 22px; cursor: pointer; }
.wg-modal-outline { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin: 14px 0 0; border: 1px solid var(--wg-secondary); border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-primary); font: inherit; font-size: 20px; cursor: pointer; }
.wg-modal-alert:empty { display: none; }
.wg-modal-alert { margin: 14px 0 0; }
.wg-modal-empty { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--wg-radius); background: var(--wg-n100); color: var(--wg-n600); }

/* Product page button (injected by the module) */
.wg-product-btn-wrap { display: block; flex: 0 0 100%; width: 100%; margin: 10px 0; }
.wg-product-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 54px 10px 20px; border: 0; border-radius: 6px; background: #e36fa7; color: #fff; font-family: inherit; font-size: 15px; cursor: pointer; }
.wg-product-btn:hover { filter: brightness(1.07); }
.wg-product-btn:disabled { opacity: .7; cursor: wait; }
.wg-product-btn .fa-gift { margin-right: 8px; font-size: 14px; }
.wg-product-btn .fa-heart-o { position: absolute; right: 18px; top: 50%; margin-top: -11px; font-size: 22px; line-height: 22px; }

/* Gift note in the one page checkout */
.wg-opc-note { margin: 0 0 24px; padding: 20px 24px; border: 1px solid var(--wg-secondary); border-radius: 12px; background: #fbf9ff; }
.wg-opc-note-title { margin: 0 0 8px; font-size: 20px; line-height: 26px; font-weight: 500; color: var(--wg-primary); }
.wg-opc-note p { margin: 0 0 6px; font-size: 14px; line-height: 20px; color: var(--wg-black); }
.wg-opc-note .wg-opc-gift { font-size: 16px; font-weight: 500; }
.wg-opc-note .wg-opc-muted { color: var(--wg-n600); }
.wg-opc-cancel { margin: 12px 0 0; }
.wg-opc-cancel button { padding: 6px 14px; border: 1px solid var(--wg-n200); border-radius: var(--wg-radius); background: var(--wg-white); color: var(--wg-black); font: inherit; font-size: 13px; cursor: pointer; }
.wg-opc-cancel button:hover { border-color: #c0262d; color: #c0262d; }

/* Success page share */

.wg-toast { position: fixed; left: 50%; bottom: 26px; z-index: 9999; display: none; padding: 10px 16px; border-radius: 8px; background: #231a35; color: #fff; font-size: 14px; transform: translateX(-50%); }

@media (max-width: 1199px) { .wg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .wg-hero-title { font-size: 34px; line-height: 38px; }
  .wg-stats { gap: 12px; }
  .wg-stat { font-size: 18px; }
}
@media (max-width: 767px) {
  .wg-page { padding: 16px 12px 40px; }
  .wg-hero { margin-bottom: 26px; padding: 18px 16px; border-radius: 14px; }
  .wg-hero-title { font-size: 26px; line-height: 30px; }
  .wg-hero-sub { font-size: 15px; line-height: 21px; }
  .wg-chip { font-size: 15px; min-height: 36px; padding: 6px 14px; }
  .wg-stats { grid-template-columns: 1fr; gap: 8px; }
  .wg-stat { padding: 10px; font-size: 17px; }
  .wg-section-title { margin-top: 36px; font-size: 24px; }
  .wg-row { grid-template-columns: 1fr; gap: 6px; }
  .wg-label { padding-top: 0; font-size: 16px; }
  .wg-list-card { padding: 18px; }
  .wg-list-card-title { font-size: 22px; line-height: 28px; }
  .wg-submit { height: 50px; font-size: 18px; }
  .wg-modal-body { padding: 16px 16px 18px; }
  .wg-modal-title { font-size: 19px; }
  .wg-modal-product { flex-direction: row; gap: 12px; padding: 12px; }
  .wg-modal-product-img img { max-height: 120px; }
  .wg-modal-label { font-size: 16px; }
  .wg-modal-submit { height: 48px; font-size: 18px; }
  .wg-modal-outline { height: 46px; font-size: 16px; }
}
@media (max-width: 479px) {
  .wg-grid { grid-template-columns: 1fr; }
  .wg-card-img { height: 180px; }
}

/* Selecting several gifts */
.wg-card-select { position: absolute; top: 12px; left: 12px; z-index: 2; display: block; width: 26px; height: 26px; cursor: pointer; }
.wg-card-select input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wg-card-select-mark { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #b9a8ee; border-radius: 6px; background: #fff; color: transparent; font-size: 14px; transition: background .15s, border-color .15s; }
.wg-card-select input:checked + .wg-card-select-mark { border-color: var(--wg-primary); background: var(--wg-primary); color: #fff; }
.wg-card-select input:focus-visible + .wg-card-select-mark { outline: 2px solid #b9a8ee; outline-offset: 2px; }
.wg-card.is-selected { border-color: var(--wg-primary); box-shadow: 0 0 0 1px var(--wg-primary); }
.wg-select-bar { position: fixed; left: 50%; bottom: 18px; z-index: 1000; display: flex; align-items: center; gap: 14px; width: min(720px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px; background: #231a35; color: #fff; box-shadow: 0 8px 28px rgba(35, 26, 53, .35); transform: translateX(-50%); }
.wg-select-bar[hidden] { display: none; }
.wg-select-info { display: flex; flex: 1; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.wg-select-clear { border: 0; background: none; color: #cfc4f5; font-size: 14px; text-decoration: underline; cursor: pointer; }
.wg-select-submit { padding: 10px 20px; border: 0; border-radius: 8px; background: #e56fa8; color: #fff; font-size: 15px; cursor: pointer; }
.wg-select-submit:hover { background: #d95c9a; }
@media (max-width: 560px) { .wg-select-bar { flex-wrap: wrap; } .wg-select-info { flex-basis: 100%; } .wg-select-submit { flex: 1; } }

/* Delivery notice of the list owner */
.wg-delivery { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--wg-secondary); border-radius: var(--wg-radius); background: #f6f3ff; }
.wg-delivery--ok { padding: 10px 16px; background: #fff; }
.wg-delivery-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wg-primary); color: #fff; font-size: 18px; }
.wg-delivery--ok .wg-delivery-icon { width: 34px; height: 34px; font-size: 15px; }
.wg-delivery-text { flex: 1; min-width: 0; }
.wg-delivery-text strong { display: block; color: var(--wg-primary); font-size: 17px; line-height: 22px; }
.wg-delivery-text p { margin: 4px 0 0; color: #5b5470; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.wg-delivery--ok .wg-delivery-text strong { font-size: 14px; }
.wg-delivery--ok .wg-delivery-text p { margin: 0; }
.wg-delivery-btn { flex: none; padding: 10px 20px; border-radius: 8px; background: var(--wg-accent); color: #fff !important; font-size: 15px; white-space: nowrap; }
.wg-delivery--ok .wg-delivery-btn { padding: 7px 14px; border: 1px solid var(--wg-secondary); background: #fff; color: var(--wg-primary) !important; font-size: 14px; }
@media (max-width: 560px) { .wg-delivery { flex-wrap: wrap; } .wg-delivery-text { flex-basis: calc(100% - 60px); } .wg-delivery-btn { flex: 1; text-align: center; } }

/* A single action button on a card */
.wg-card-actions .wg-btn-buy:only-child { flex: 1; }
