/* Graven Quote — kolory dopasowane do motywu Akira na graven.com.pl; zmieniasz tylko zmienne */
:root {
  --gq-brass: #8b531c;
  --gq-brass-hover: #a5652a;
  --gq-brass-light: #c98a45;
  --gq-brass-soft: rgba(196, 140, 74, .14);
  --gq-brass-line: rgba(214, 160, 96, .55);
  --gq-brass-text: #e0b47c;
  --gq-panel: #141c22;
  --gq-panel-2: #1b252c;
  --gq-line: rgba(255, 255, 255, .14);
  --gq-text: #f3f1ed;
  --gq-muted: rgba(243, 241, 237, .66);
  --gq-error: #ff8c7a;
  --gq-radius: 6px;
}

/* ---------- ukrycie ceny 0,00 zł ----------
   motyw ma w custom.css: #product .summary-container > .product-prices {display:block!important}
   więc potrzebny mocniejszy selektor; :has() działa tylko gdy na stronie jest blok wyceny */
body#product:has(.js-gq-box) .summary-container > .product-prices.js-product-prices,
html body:has(.js-gq-box) .product-prices.js-product-prices { display: none !important; }

/* puste miejsce po ukrytym „powiadom mnie” */
.product-information:has(.js-gq-box) .product-additional-info { padding-top: 0; padding-bottom: 6px; }

/* ---------- karta produktu ---------- */
.gq-box {
  position: relative;
  margin: 6px 0 26px;
  padding: 22px 22px 22px;
  border: 1px solid rgba(214, 160, 96, .32);
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201, 138, 69, .16) 0%, rgba(201, 138, 69, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.gq-box::before { /* mosiężny pasek u góry karty */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gq-brass), var(--gq-brass-light), var(--gq-brass));
}
.gq-label {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0; border: 0; background: none;
  color: var(--gq-brass-text);
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.gq-label__icon {
  flex: none; box-sizing: content-box; width: 16px; height: 16px; padding: 7px;
  border-radius: 50%; background: var(--gq-brass-soft); border: 1px solid var(--gq-brass-line);
}
.gq-lead { margin: 12px 0 18px; color: var(--gq-text); opacity: .82; font-size: 14px; line-height: 1.6; }

/* przycisk na karcie produktu */
.gq-open {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 66px; padding: 0 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--gq-brass-light) 0%, var(--gq-brass) 52%, #6f4013 100%);
  border: 1px solid rgba(255, 214, 160, .35); border-radius: 8px;
  box-shadow: 0 10px 26px -10px rgba(201, 138, 69, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.gq-open::before { /* ikona dymka */
  content: ""; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.9A8 8 0 1 1 21 12Z'/%3E%3Cpath d='M8.5 10.5h7M8.5 14h4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.9A8 8 0 1 1 21 12Z'/%3E%3Cpath d='M8.5 10.5h7M8.5 14h4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gq-open::after { /* strzałka w kółku po prawej */
  content: ""; position: absolute; right: 12px; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.gq-open:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px -12px rgba(201, 138, 69, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.gq-open:hover::after { transform: translateX(4px); background-color: rgba(255, 255, 255, .26); }
.gq-open:active { transform: translateY(0); }
.gq-open:focus-visible { outline: 2px solid var(--gq-brass-text); outline-offset: 3px; }

/* przycisk w formularzu */
.gq-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 24px;
  background: linear-gradient(135deg, var(--gq-brass-light) 0%, var(--gq-brass) 60%);
  color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: filter .2s, transform .1s;
}
.gq-submit:hover { filter: brightness(1.1); }
.gq-submit:active { transform: translateY(1px); }
.gq-submit:focus-visible { outline: 2px solid var(--gq-brass-text); outline-offset: 3px; }

@media (max-width: 575px) {
  .gq-box { padding: 18px 16px; }
  .gq-open { min-height: 60px; padding: 0 56px; font-size: 15px; letter-spacing: .06em; }
  .gq-open::after { width: 34px; height: 34px; margin-top: -17px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gq-open, .gq-open::after { transition: none; }
}

/* ---------- listy produktów ---------- */
.gq-list-label { color: var(--gq-brass-text, #b07a3a); font-weight: 600; font-size: .92em; }
.product-price-and-shipping:has(.gq-list-label) .price,
.product-price-and-shipping:has(.gq-list-label) .regular-price,
.js-product-miniature:has(.gq-list-label) .label-flag.type-out_of_stock { display: none !important; }

/* ---------- modal ---------- */
body.gq-lock { overflow: hidden; }
.gq-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 16px; }
.gq-modal.is-open { display: flex; }
.gq-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 10, .72); backdrop-filter: blur(3px); animation: gq-fade .2s ease; }
.gq-modal__dialog {
  position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--gq-panel); color: var(--gq-text);
  border: 1px solid var(--gq-line); border-top: 3px solid var(--gq-brass);
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: gq-rise .25s cubic-bezier(.2, .8, .2, 1);
}
.gq-modal__body { padding: 34px 36px 32px; }
.gq-modal__x {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  background: none; border: 0; color: var(--gq-muted); font-size: 30px; line-height: 1; cursor: pointer;
}
.gq-modal__x:hover { color: var(--gq-text); }

.gq-eyebrow { margin: 0 0 6px; color: var(--gq-brass-text); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.gq-title { margin: 0 0 6px; color: var(--gq-text); font-size: 26px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.gq-product { margin: 0 0 14px; color: var(--gq-text); font-weight: 600; opacity: .9; }
.gq-product:empty { display: none; }
.gq-intro { margin: 0 0 22px; color: var(--gq-muted); font-size: 14px; line-height: 1.6; }

.gq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gq-field { margin-bottom: 14px; }
.gq-field--qty { max-width: 180px; }
.gq-field > label { display: block; margin-bottom: 6px; color: var(--gq-text); font-size: 13px; font-weight: 600; }
.gq-opt { color: var(--gq-muted); font-weight: 400; }
.gq-form input[type=text], .gq-form input[type=email], .gq-form input[type=tel],
.gq-form input[type=number], .gq-form textarea {
  display: block; width: 100%; padding: 12px 14px;
  background: var(--gq-panel-2); color: var(--gq-text);
  border: 1px solid var(--gq-line); border-radius: var(--gq-radius);
  font: inherit; font-size: 15px; box-shadow: none; transition: border-color .15s, background .15s;
}
.gq-form textarea { resize: vertical; min-height: 104px; }
.gq-form input::placeholder, .gq-form textarea::placeholder { color: rgba(243, 241, 237, .38); }
.gq-form input:focus, .gq-form textarea:focus { outline: none; border-color: var(--gq-brass-text); background: #202b33; }
.gq-field.has-error input, .gq-field.has-error textarea { border-color: var(--gq-error); }

.gq-file { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px dashed var(--gq-line); border-radius: var(--gq-radius); cursor: pointer; }
.gq-file:hover { border-color: var(--gq-brass-line); }
.gq-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gq-file__btn { flex: none; padding: 8px 14px; background: var(--gq-panel-2); border: 1px solid var(--gq-line); border-radius: 4px; font-size: 13px; font-weight: 600; }
.gq-file__name { color: var(--gq-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gq-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; color: var(--gq-muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.gq-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gq-brass); }
.gq-consent a { color: var(--gq-brass-text); text-decoration: underline; }

.gq-err { display: block; min-height: 0; margin-top: 4px; color: var(--gq-error); font-size: 12.5px; }
.gq-err:empty { display: none; }
.gq-err--global { margin: 10px 0 0; padding: 10px 12px; background: rgba(255, 140, 122, .1); border-radius: var(--gq-radius); }
.gq-err--global:empty { display: none; }

.gq-submit { margin-top: 18px; }
.gq-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: gq-spin .7s linear infinite; }
.gq-submit.is-loading { pointer-events: none; opacity: .85; }
.gq-submit.is-loading .gq-spinner { display: inline-block; }

.gq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gq-done { text-align: center; padding-top: 44px; }
.gq-done__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; background: var(--gq-brass-soft); color: var(--gq-brass-text); border: 1px solid var(--gq-brass-line); }

@keyframes gq-spin { to { transform: rotate(360deg); } }
@keyframes gq-fade { from { opacity: 0; } }
@keyframes gq-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (max-width: 575px) {
  .gq-modal { padding: 0; align-items: flex-end; }
  .gq-modal__dialog { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .gq-modal__body { padding: 28px 20px 24px; }
  .gq-row { grid-template-columns: 1fr; }
  .gq-field--qty { max-width: none; }
  .gq-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gq-modal__dialog, .gq-modal__backdrop { animation: none; }
}
