/*
 * Visual compatibility for optional services already present in Gladiator Padel.
 * Business logic remains owned by each plugin; this file only normalizes its UI.
 */

/* WCBoost wishlist: buttons, feedback and list page. */
.gp-main .wcboost-wishlist-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--gp-ink);
  border-radius: 999px;
  color: var(--gp-ink);
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
}

.gp-main .wcboost-wishlist-button:hover,
.gp-main .wcboost-wishlist-button.added {
  background: var(--gp-volt);
  color: var(--gp-black);
}

.gp-main .wcboost-wishlist-button.loading {
  cursor: progress;
  opacity: 0.7;
}

.wcboost-flyout-notices-container {
  max-width: min(24rem, calc(100vw - 2rem));
  z-index: 8000;
}

.wcboost-flyout-notice {
  background: var(--gp-black);
  border-radius: 0.65rem;
  color: var(--gp-white);
  padding: 0.8rem 1rem;
}

.gp-main .wcboost-wishlist-table,
.gp-main table.wishlist_table {
  background: var(--gp-white);
  border-collapse: collapse;
  border-radius: var(--gp-radius);
  overflow: hidden;
  width: 100%;
}

.gp-main .wcboost-wishlist-table th,
.gp-main .wcboost-wishlist-table td,
.gp-main table.wishlist_table th,
.gp-main table.wishlist_table td {
  border-bottom: 1px solid var(--gp-line);
  padding: 1rem;
  text-align: left;
}

/* Conditional lead offer. Runtime content remains owned by the configured provider. */
.gp-lead-offer {
  background: #0d0d0d;
  color: var(--gp-white);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.gp-lead-offer__surface {
  background: radial-gradient(circle at 88% 12%, rgba(199, 240, 0, 0.22), transparent 31%), #111;
  border: 1px solid #ffffff24;
  border-radius: clamp(1.4rem, 3vw, 2.5rem);
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.gp-lead-offer__copy { display: grid; gap: 0.85rem; }

.gp-lead-offer__copy h2,
.gp-lead-offer__title {
  color: var(--gp-white);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.gp-lead-offer__copy > p:last-child {
  color: #ffffffbd;
  line-height: 1.65;
  margin: 0;
}

.gp-lead-offer__form,
.gp-lead-offer__widget .mc4wp-form {
  display: grid;
  gap: 0.9rem;
}

.gp-lead-offer__fields,
.gp-lead-offer__widget .mc4wp-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gp-lead-offer__fields input,
.gp-lead-offer__widget .mc4wp-form input:not([type="checkbox"]):not([type="radio"]) {
  background: #ffffff14;
  border: 1px solid #ffffff47;
  border-radius: 999px;
  color: var(--gp-white);
  flex: 1 1 14rem;
  font: inherit;
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem;
}

.gp-lead-offer__fields button,
.gp-lead-offer__widget input[type="submit"],
.gp-lead-offer__widget button {
  min-height: 3.25rem;
}

.gp-lead-offer__fields button:disabled { cursor: progress; opacity: 0.62; }

.gp-lead-offer__consent {
  align-items: start;
  color: #ffffffbd;
  display: grid;
  font-size: 0.78rem;
  gap: 0.65rem;
  grid-template-columns: 1.25rem 1fr;
  min-height: 2.75rem;
}

.gp-lead-offer__consent input { height: 1.25rem; margin: 0.1rem 0 0; width: 1.25rem; }

.gp-lead-offer__consent a { color: var(--gp-volt); }

.gp-lead-offer__status,
.gp-lead-offer__widget .mc4wp-response {
  border-left: 3px solid #ffffff52;
  color: #ffffffcc;
  font-size: 0.84rem;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
}

.gp-lead-offer__review {
  grid-column: 1 / -1;
  margin: 0;
}

.gp-lead-offer__tabs button { min-height: 2.75rem; }

.gp-lead-offer--runtime .gp-lead-offer__surface { display: block; }

@media (max-width: 720px) {
  .gp-lead-offer__surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-lead-offer__fields {
    display: grid;
  }

  .gp-lead-offer__fields input,
  .gp-lead-offer__fields button {
    width: 100%;
  }
}


/* GTranslate can render either an inline or floating selector. */
.gp-footer-services .gtranslate_wrapper,
.gp-footer-services .switcher,
.gp-footer-services .gt_switcher {
  color: var(--gp-black);
  font-family: inherit !important;
  max-width: 100%;
}

.gt_float_switcher,
.gt_switcher_wrapper {
  font-family: inherit !important;
  z-index: 9000 !important;
}

/* Click to Chat must stay above content but below open theme drawers. */
.ht-ctc-chat,
.ht-ctc-chat.style-7,
.ht-ctc-chat.style-99 {
  z-index: 8500 !important;
}

body.gp-menu-open .ht-ctc-chat,
body.gp-search-open .ht-ctc-chat,
body.gp-minicart-open .ht-ctc-chat {
  opacity: 0;
  pointer-events: none;
}

/* Invoice actions exposed by either candidate plugin in My Account. */
.gp-main .woocommerce-MyAccount-content .button.invoice,
.gp-main .woocommerce-MyAccount-content .button.pdf-invoice,
.gp-main .woocommerce-MyAccount-content .invoice-download {
  align-items: center;
  background: var(--gp-black);
  border-radius: 999px;
  color: var(--gp-white);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
}

@media (max-width: 640px) {

  .gp-main .wcboost-wishlist-table,
  .gp-main .wcboost-wishlist-table tbody,
  .gp-main .wcboost-wishlist-table tr,
  .gp-main .wcboost-wishlist-table td,
  .gp-main table.wishlist_table,
  .gp-main table.wishlist_table tbody,
  .gp-main table.wishlist_table tr,
  .gp-main table.wishlist_table td {
    display: block;
    width: 100%;
  }

  .gp-main .wcboost-wishlist-table thead,
  .gp-main table.wishlist_table thead {
    display: none;
  }
}
