/**
 * Fixed bottom-right trust widget styles -- dark glass bar + payment modal,
 * matching the Prestige Living black/gold aesthetic.
 *
 * Loaded by trust-widget.php via wp_enqueue_style() at high priority so
 * it prints after the theme's own stylesheet, letting the !important
 * overrides below reliably win against Eskil's global button/grid CSS.
 */

.gt-trust-widget {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(201, 169, 97, 0.35);
  padding: 4px 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: inherit;
}
.gt-trust-seg {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: transparent !important;
  border: none !important;
  color: #efe8db !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
  white-space: nowrap !important;
}
.gt-trust-seg:hover {
  background: rgba(201, 169, 97, 0.12);
  color: #ffffff;
}
/*
 * The "Payment" trigger is the only <button> among the three pills (the
 * review pill is an <a>, Free Shipping is a <div>), so it's the only one
 * that can catch the theme's global button styling (white background,
 * grey border, box-shadow). Tag-qualified selector + !important, same
 * fix as the modal close button, to reliably win that specificity fight.
 */
button.gt-trust-seg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #efe8db !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
}
button.gt-trust-seg:hover {
  background: rgba(201, 169, 97, 0.12) !important;
  color: #ffffff !important;
}
.gt-trust-seg .gt-trust-text strong {
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0;
  text-transform: none;
  font-size: 19px;
}
.gt-trust-seg .gt-trust-sep {
  margin: 0 5px;
  opacity: 0.45;
}
.gt-trust-star svg {
  width: 13px;
  height: 13px;
  display: block;
}
.gt-trust-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.gt-trust-divider {
  width: 1px;
  height: 18px;
  background: rgba(201, 169, 97, 0.28);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .gt-trust-widget {
    right: 12px;
    bottom: 12px;
  }
  .gt-trust-seg {
    padding: 8px 10px;
  }
  .gt-trust-seg .gt-trust-text:not(:has(strong)) {
    display: none;
  }
  .gt-trust-seg .gt-trust-text strong {
    font-size: 11px;
  }
}

/* Modal */
.gt-trust-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.gt-trust-modal.gt-open {
  display: block;
}
.gt-trust-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}
.gt-trust-modal-panel {
  position: relative;
  width: calc(100% - 40px);
  max-width: 560px;
  margin: 10vh auto 0;
  background: #0e0e0e;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 16px;
  padding: 44px 40px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}
.gt-trust-modal-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a961;
  margin-bottom: 10px;
}
.gt-trust-modal-panel h3 {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 500;
  color: #f5f1ea;
  letter-spacing: 0.01em;
}
button.gt-trust-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 1px solid rgba(201, 169, 97, 0.35) !important;
  border-radius: 50%;
  box-shadow: none !important;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #cfc8ba !important;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}
button.gt-trust-modal-close:hover {
  background: rgba(201, 169, 97, 0.12) !important;
  border-color: #c9a961 !important;
  color: #c9a961 !important;
}
.gt-trust-modal-panel .gt-payment-icons {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  justify-content: stretch !important;
  flex-wrap: unset !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gt-trust-modal-panel .gt-payment-icons .gt-icon {
  display: flex !important;
  width: fit-content !important;
  height: 64px !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  margin: 0 !important;
}
.gt-trust-modal-panel .gt-payment-icons .gt-icon svg {
  width: 100% !important;
  height: 100% !important;
}
.gt-trust-modal-panel .gt-payment-icons .gt-icon:hover {
  transform: none !important;
}
@media (max-width: 480px) {
  .gt-trust-modal-panel {
    padding: 36px 22px 28px;
  }
  .gt-trust-modal-panel .gt-payment-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
