/*
 * The consent banner, standalone.
 *
 * 99.tecnomation.com styles this from its own design tokens. This site is a
 * different theme with different variables, so every value here is literal and
 * every property that matters is stated rather than inherited -- a theme that
 * sets `button { text-transform: uppercase }` or a global `p { margin: 1.5em }`
 * would otherwise reshape a dialog it has never heard of.
 *
 * Scoped entirely under .tec-consent. It adds no rule that could reach
 * anything the theme owns.
 */

.tec-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #dfe5e2;
  box-shadow: 0 -8px 28px rgba(8, 17, 13, .12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: tec-consent-in .28s ease-out both;
}

@keyframes tec-consent-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tec-consent { animation: none; }
}

.tec-consent-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.tec-consent p {
  flex: 1 1 420px;
  margin: 0;
  padding: 0;
  font-size: 13.6px;
  line-height: 1.55;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #3c4844;
}

.tec-consent a {
  color: #0f7a52;
  text-decoration: underline;
  box-shadow: none;
}

.tec-consent a:hover { color: #0b5c3e; }

.tec-consent-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.tec-consent-btns button {
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #dfe5e2;
  background: #f4f7f5;
  color: #16211d;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.4px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  width: auto;
  min-width: 0;
  height: auto;
}

.tec-consent-btns button:hover {
  border-color: #6fd6a8;
  background: #eef5f1;
}

.tec-consent-btns button.is-primary {
  background: #6fd6a8;
  border-color: #6fd6a8;
  color: #0a2119;
  font-weight: 600;
}

.tec-consent-btns button.is-primary:hover {
  background: #5ecb9b;
  border-color: #5ecb9b;
}

.tec-consent-btns button:focus-visible {
  outline: 2px solid #0f7a52;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .tec-consent-in { padding: 14px 16px; gap: 12px; }
  .tec-consent-btns { width: 100%; }
  .tec-consent-btns button { flex: 1; }
}

/*
 * The policy links at the foot of every page.
 *
 * Separate from the banner because they appear everywhere the banner does
 * not, including the basket and the account area. Quiet on purpose: this is
 * the line somebody looks for when they want it and should not notice when
 * they do not. Colours are literal and both themes are covered, because the
 * footer it sits under may be light or dark and this file knows neither.
 */
.tec-policy-links {
  padding: 14px 16px 18px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .01em;
  color: #8a9490;
}

.tec-policy-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
}

.tec-policy-links a:hover,
.tec-policy-links a:focus-visible {
  color: #0f7a52;
}

@media (prefers-color-scheme: dark) {
  .tec-policy-links a:hover,
  .tec-policy-links a:focus-visible { color: #6fd6a8; }
}

/*
 * The policy pages.
 *
 * The theme sets body text to the full width of its container -- 1227px, or
 * about 150 characters a line. That is roughly twice the distance an eye can
 * travel and still find the start of the next line, and these are pages whose
 * only purpose is that somebody reads them to the end.
 *
 * Scoped to .tec-policy-page, a class this plugin adds only to the pages it
 * published. It cannot reach anything else on the site, and it inherits the
 * theme's colours and faces rather than fighting them -- only the measure and
 * the vertical rhythm are set here.
 */
.tec-policy-page .pxl-entry-content {
  /* Two limits, whichever is tighter. `ch` tracks the theme's font if it ever
     changes; the rem cap stops a narrow face from running the measure out to
     a hundred characters anyway, which 68ch alone did here (808px, ~95). */
  max-width: min(64ch, 42rem);
  margin-inline: auto;
}

.tec-policy-page .pxl-entry-content > p,
.tec-policy-page .pxl-entry-content > ul,
.tec-policy-page .pxl-entry-content > ol {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.1em;
}

.tec-policy-page .pxl-entry-content > h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  line-height: 1.25;
  margin-top: 2.2em;
  margin-bottom: .6em;
  text-wrap: balance;
}

.tec-policy-page .pxl-entry-content > h3 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.35rem);
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: .5em;
  text-wrap: balance;
}

/* The first heading should not be shoved away from the opening paragraph. */
.tec-policy-page .pxl-entry-content > h2:first-of-type { margin-top: 1.4em; }

.tec-policy-page .pxl-entry-content > ul,
.tec-policy-page .pxl-entry-content > ol {
  padding-left: 1.3em;
}

.tec-policy-page .pxl-entry-content li { margin-bottom: .55em; }

/* Long addresses and example URLs must not push the column sideways. */
.tec-policy-page .pxl-entry-content a { overflow-wrap: anywhere; }
