/* ARTKID · Număr de lecții (ak-qty.js): selector − / + pe pagina produsului și în sumarul de pe checkout.
   Culorile, colțurile și fonturile vin din variabilele Core Framework (brand/BRAND.md). */

.ak-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  background-color: var(--light);
}
.ak-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #F3EEFF;
  color: var(--primary);
  font-family: Hind, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.ak-qty__btn:hover:not(:disabled) { background-color: var(--primary); color: var(--light); }
.ak-qty__btn:active:not(:disabled) { transform: scale(.94); }
.ak-qty__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ak-qty__btn:disabled { opacity: .35; cursor: default; }
.ak-qty .ak-qty__input {
  width: 56px;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: Hind, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text-title);
  -moz-appearance: textfield;
  appearance: textfield;
}
.ak-qty .ak-qty__input::-webkit-outer-spin-button,
.ak-qty .ak-qty__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.ak-qty .ak-qty__input:focus { outline: none; }

/* Varianta mică, în sumarul de pe checkout */
.ak-qty--sm { gap: 2px; padding: 3px; margin-top: 8px; vertical-align: middle; }
.ak-qty--sm .ak-qty__btn { width: 30px; height: 30px; font-size: 18px; }
.ak-qty--sm .ak-qty__input { width: 40px; height: 30px; font-size: 17px; }
.ak-qty.is-busy { opacity: .6; pointer-events: none; }
.woocommerce-checkout-review-order .product-name .ak-qty { display: flex; width: max-content; }

/* Pagina produsului: câmpul stă între preț și butonul de plată */
.ak-qty-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: -6px 0 22px;
}
.ak-qty-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.ak-qty-field__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
  .ak-qty__btn { transition: none; }
  .ak-qty__btn:active:not(:disabled) { transform: none; }
}
