/* Guardian additions on top of the Petly template.
   Kept in its own file so regenerating style.rtl.css from style.css never
   clobbers them. Uses logical properties so it mirrors under dir="rtl". */

/* ---- product variant picker --------------------------------------------- */

.pd-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  margin: 0 0.5rem 0.5rem 0;
  border: 1.5px solid var(--border-primary);
  border-radius: 5.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white-color);
}

.pd-variant input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-variant.is-active {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.pd-variant.is-out {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pd-variant__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
}

.pd-variant__label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.shop-card__from {
  font-size: 0.8em;
  opacity: 0.7;
}

.shop-card__was {
  margin-inline-start: 0.5rem;
  font-size: 0.8em;
  color: var(--text-secondary);
  font-weight: 400;
}

.shop-sidebar__price-apply {
  border: 0;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 5.5rem;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---- VIP access code ---------------------------------------------------- */

.vip-unlock {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.vip-unlock__input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border-primary);
  border-radius: 5.5rem;
  font-family: var(--body-font);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: var(--transition);
}

.vip-unlock__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 79, 35, 0.15);
}

/* ---- language toggle ---------------------------------------------------- */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  line-height: 0;
}

/* Something inside the template's 392KB sheet paints buttons in this header
   slot, and it beat the plain class selector in RTL — the inactive pill came
   out orange. Both states are pinned here so neither can be inherited. */
.lang-toggle .lang-toggle__opt {
  appearance: none;
  border: 0;
  background: transparent !important;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-toggle__opt:hover {
  color: var(--text-primary);
}

/* driven by a class, not just [aria-pressed], so the painted state and the
   accessibility state can never disagree about which option is selected */
.lang-toggle .lang-toggle__opt.is-active {
  background: var(--primary-color) !important;
  color: var(--white-color) !important;
  box-shadow: 0 2px 8px rgba(240, 79, 35, 0.32);
}

.lang-toggle__opt:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* the Arabic label needs its own face to sit level with the Latin one */
.lang-toggle__opt[data-lang-set='ar'] {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.875rem;
}

@media (max-width: 575.98px) {
  .lang-toggle__opt {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}
