/* ============================================
   VS Print Studio — Personalization + bilingual UI
   Language switcher, "three ways to start", size tables,
   request forms, WhatsApp buttons, related links.
   Loaded after pages.css (see functions.php).
   ============================================ */

/* ---------- Language switcher ---------- */

.vsps-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  line-height: 1;
}

.vsps-lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--vs-text-soft, #c6d4e3);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.vsps-lang-switch__item:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

.vsps-lang-switch__item.is-current {
  color: #06111f;
  background: linear-gradient(135deg, #46c2ff 0%, #8fdcff 100%);
}

.vsps-lang-switch--footer {
  display: flex;
  width: max-content;
  margin: 0 auto 20px;
}

.vsps-lang-switch--modal {
  margin: 4px 0 8px;
}

/* Header WhatsApp shortcut (replaces the old wishlist heart). */
.vs21-icon-whatsapp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #128c7e;
  box-shadow: 0 0 16px rgba(18,140,126,0.35);
}

.vs21-icon-whatsapp svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .vs21-icon-whatsapp {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  /* WhatsApp is also in the bottom bar and in the menu — keep the search usable. */
  .vs21-icon-whatsapp {
    display: none;
  }

  .vs21-header-icons {
    gap: 6px;
  }

  .vsps-lang-switch--header .vsps-lang-switch__item {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
  }
}

/* ---------- Footer contact list ---------- */

.vsps-footer-contact {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--vs-text-soft, rgba(255,255,255,0.72));
  font-size: 0.95rem;
}

.vsps-footer-contact a {
  color: var(--vs-text, #fff);
  text-decoration: none;
  font-weight: 700;
}

.vsps-footer-contact a:hover {
  color: var(--vs-primary-soft, #46c2ff);
}

/* ---------- WhatsApp button ---------- */

.vsps-btn--whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #0f7a6c 0%, #128c7e 100%);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 24px rgba(18,140,126,0.22);
}

.vsps-btn--whatsapp:hover {
  color: #fff;
  background: linear-gradient(135deg, #128c7e 0%, #16a08f 100%);
  box-shadow: 0 14px 28px rgba(18,140,126,0.30);
}

/* ---------- Three ways to start ---------- */

.vsps-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.vsps-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.vsps-path:hover {
  transform: translateY(-3px);
  border-color: rgba(70,194,255,0.30);
}

.vsps-path__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.07);
}

.vsps-path__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--vs-primary-soft, #46c2ff);
  background: linear-gradient(135deg, rgba(19,127,236,0.20), rgba(70,194,255,0.10));
  border: 1px solid rgba(70,194,255,0.20);
}

.vsps-path__icon svg {
  width: 22px;
  height: 22px;
}

.vsps-path h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--vs-text, #fff);
}

.vsps-path p {
  margin: 0;
  flex: 1;
  line-height: 1.7;
  color: var(--vs-text-soft, rgba(255,255,255,0.72));
}

.vsps-path__link {
  margin-top: 6px;
  font-weight: 800;
  text-decoration: none;
  color: var(--vs-primary-soft, #46c2ff);
}

.vsps-path__link:hover {
  text-decoration: underline;
}

.vsps-paths__note {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--vs-text-muted, rgba(255,255,255,0.58));
  line-height: 1.7;
}

/* Paths on the home page sit inside #vsps-home; give them the same rhythm. */
.vsps-page--home .vsps-section--paths {
  padding: 56px 0 24px;
}

/* ---------- Grid variants ---------- */

.vsps-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vsps-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vsps-steps-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vsps-steps-grid + .vsps-form-actions,
.vsps-grid + .vsps-form-actions {
  margin-top: 26px;
}

/* ---------- Size / spec tables ---------- */

.vsps-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  -webkit-overflow-scrolling: touch;
}

.vsps-table-wrap:focus-visible {
  outline: 2px solid var(--vs-primary-soft, #46c2ff);
  outline-offset: 2px;
}

.vsps-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.vsps-table th,
.vsps-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--vs-text-soft, rgba(255,255,255,0.78));
  line-height: 1.5;
}

.vsps-table thead th {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.07);
  color: var(--vs-text, #fff);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vsps-table tbody th {
  color: var(--vs-text, #fff);
  font-weight: 700;
}

.vsps-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.025);
}

.vsps-table tbody tr:last-child th,
.vsps-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Check lists in two columns ---------- */

.vsps-check-list--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.vsps-section--checks .vsps-panel .vsps-copy-block {
  margin-bottom: 4px;
}

/* ---------- Related links ---------- */

.vsps-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vsps-link-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--vs-text, #fff);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vsps-link-pill:hover {
  color: var(--vs-primary-soft, #46c2ff);
  border-color: rgba(70,194,255,0.30);
  transform: translateY(-1px);
}

.vsps-section--links {
  padding-top: 8px !important;
}

/* ---------- FAQ block (full width) ---------- */

.vsps-faq-list--wide {
  max-width: 960px;
}

/* ---------- Request forms ---------- */

.vsps-field--full {
  grid-column: 1 / -1;
}

.vsps-field__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--vs-text, #fff);
}

.vsps-field__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vs-text-muted, rgba(255,255,255,0.55));
}

.vsps-field input[type="file"] {
  padding: 11px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.vsps-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--vs-primary, #137fec) 0%, var(--vs-primary-soft, #46c2ff) 100%);
  cursor: pointer;
}

.vsps-choice-list {
  display: grid;
  gap: 10px;
}

.vsps-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--vs-text-soft, rgba(255,255,255,0.80));
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.vsps-choice:hover,
.vsps-choice:has(input:checked) {
  border-color: rgba(70,194,255,0.40);
  background: rgba(70,194,255,0.07);
}

.vsps-choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--vs-primary-soft, #46c2ff);
}

.vsps-field .vsps-choice input {
  width: 18px;
  padding: 0;
}

.vsps-notice {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.vsps-notice--error {
  color: #ffd7d7;
  background: rgba(220,53,69,0.14);
  border: 1px solid rgba(220,53,69,0.45);
}

.vsps-notice--ok {
  color: #d7ffe8;
  background: rgba(40,167,69,0.14);
  border: 1px solid rgba(40,167,69,0.45);
}

/* Honeypot: invisible to people, tempting to bots. */
.vsps-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.vsps-form-actions .vsps-btn {
  min-width: 190px;
}

/* ---------- Product grids inside landing pages ---------- */

.vsps-section--products .vsps-best-sellers-grid {
  margin-top: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .vsps-paths {
    grid-template-columns: 1fr;
  }

  .vsps-grid--cols-4,
  .vsps-steps-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vsps-grid--cols-2,
  .vsps-grid--cols-4,
  .vsps-steps-grid--4,
  .vsps-check-list--cols {
    grid-template-columns: 1fr;
  }

  .vsps-path {
    padding: 22px 20px 18px;
    border-radius: 20px;
  }

  .vsps-form-actions .vsps-btn {
    min-width: 0;
  }

  .vsps-table {
    font-size: 0.9rem;
  }

  .vsps-table th,
  .vsps-table td {
    padding: 11px 13px;
  }
}

/* ---------- Product page: personalize guide + bilingual FAQ hints ---------- */

.vsps-personalize-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(70,194,255,0.06);
  border: 1px solid rgba(70,194,255,0.20);
}

.vsps-personalize-note__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--vs-text, #fff);
}

.vsps-personalize-note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--vs-text-soft, rgba(255,255,255,0.78));
}

.vsps-personalize-note li strong {
  color: var(--vs-text, #fff);
}

.vsps-personalize-note li span[lang="es"] {
  display: block;
  color: var(--vs-text-muted, rgba(255,255,255,0.58));
}

.vsps-personalize-note__more {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--vs-text-muted, rgba(255,255,255,0.62));
}

.vsps-personalize-note__more a {
  color: var(--vs-primary-soft, #46c2ff);
  font-weight: 700;
  text-decoration: none;
}

.vsps-personalize-note__more a:hover {
  text-decoration: underline;
}

.vsps-faq__title-es,
.vsps-faq__q-es {
  font-weight: 600;
  color: var(--vs-text-muted, rgba(255,255,255,0.58));
}

.vsps-faq__a p[lang="es"] {
  margin-top: 8px;
  color: var(--vs-text-muted, rgba(255,255,255,0.62));
}

/* ---------- Left-aligned headings inside left-aligned copy blocks ----------
   home.css centers every .vsps-section-title; on landing pages the kicker above
   is left-aligned, so keep the title and text with it. Centered blocks keep
   .vsps-copy-block--center. */

.vsps-page .vsps-copy-block:not(.vsps-copy-block--center) .vsps-section-title,
.vsps-page .vsps-copy-block:not(.vsps-copy-block--center) .vsps-section-text,
.vsps-page .vsps-panel .vsps-section-title,
.vsps-page .vsps-panel .vsps-section-text {
  text-align: left;
}

.vsps-page .vsps-copy-block--center .vsps-section-title,
.vsps-page .vsps-copy-block--center .vsps-section-text {
  text-align: center;
}

/* Sits under the quantity / add-to-cart row and the trust tiles. */
body.single-product .summary form.cart .vsps-personalize-note {
  grid-column: 1 / -1;
  order: 5;
  margin-top: 6px;
}

/* Native <select> text was clipped at the form's 48px field height. */
.vsps-field select {
  min-height: 50px;
  line-height: 1.35;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.vsps-field select option {
  color: #06111f;
  background: #fff;
}

/* Help center: keep the four FAQ panels apart. */
.vsps-faq-main {
  display: grid;
  gap: 20px;
}
