/* ============================================================
   Koko kaupan tuotesivujen lisätyylit:
   1) Tuotevalintojen yhtenäinen tyyli (hinta oikealle, siistit rivit)
   2) Osamaksu-widget: vain logo, klikkaus näyttää erittelyn
   Latautuu kaikilla tuotesivuilla (kauppa_tuotesivu.xml).
   ============================================================ */

/* --- 1) Valinnat (Anna tiedot) --- */
#product .form-group{ padding:9px 2px; margin:0; border-bottom:1px solid rgba(148,163,184,.18); }
#product .form-group:last-of-type{ border-bottom:0; }
#product .form-group > .control-label{ display:block; margin:0 0 6px; font-weight:800; font-size:15px; color:#1f2430; }
#product .checkbox, #product .radio{ margin:2px 0; padding:2px 0; }
#product .checkbox label, #product .radio label{ display:flex; align-items:flex-start; gap:10px; width:100%; margin:0; padding-left:0; font-weight:400; cursor:pointer; }
/* Teeman valintaruutu on position:absolute -> tehdään siitä normaali, ettei teksti mene sen alle */
#product .checkbox input, #product .radio input{ position:static !important; margin:3px 0 0 !important; float:none !important; flex:0 0 auto; }
#product .kt-hinta{ margin-left:auto; padding-left:14px; white-space:nowrap; font-weight:700; color:#6b7280; font-variant-numeric:tabular-nums; }
#product #input-quantity{ max-width:120px; }
#product input[type=checkbox], #product input[type=radio]{ accent-color:#e0243a; width:16px; height:16px; }
#product .form-group.required > .control-label{ position:relative; }

/* Punainen Ostoskoriin-nappi (koko leveys) */
#product #button-cart{ background:#e0243a !important; border-color:#e0243a !important; color:#fff !important; font-weight:800; }
#product #button-cart:hover{ background:#c51f32 !important; border-color:#c51f32 !important; }

/* Pakolliset, täyttämättömät valinnat: hohtava punainen kehys kun Ostoskoriin epäonnistuu */
#product .form-group.kt-vaadittu{ background:#fff5f5; border:2px solid #e0243a; border-radius:10px;
  padding:10px 12px; margin:6px 0; box-shadow:0 0 0 4px rgba(224,36,58,.15);
  animation:kt-hohto 1.1s ease-in-out 4; scroll-margin-top:90px; }
#product .form-group.kt-vaadittu > .control-label{ color:#c51f32; }
@keyframes kt-hohto{
  0%,100%{ box-shadow:0 0 0 3px rgba(224,36,58,.15); }
  50%{ box-shadow:0 0 0 8px rgba(224,36,58,.40); }
}

/* YHTEENVETO-koontilaatikko */
#kt-yhteenveto{ margin:14px 0; background:#f7f8fa; border:1px solid rgba(148,163,184,.4); border-radius:12px; padding:14px 16px; font-size:14px; }
#kt-yhteenveto h4{ margin:0 0 8px; padding:0 !important; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#6b7280; font-weight:800; background:none !important; background-color:transparent !important; border:0 !important; box-shadow:none !important; }
#kt-yhteenveto .kt-yr{ display:flex; justify-content:space-between; gap:14px; padding:3px 0; }
#kt-yhteenveto .kt-yr span:last-child{ white-space:nowrap; font-variant-numeric:tabular-nums; }
#kt-yhteenveto .kt-yr.perus{ font-weight:700; }
#kt-yhteenveto .kt-yr.summa{ border-top:1px solid rgba(148,163,184,.4); margin-top:6px; padding-top:8px; font-weight:800; font-size:16px; }

/* --- Poista teeman hintapopup (#update_box, sininen palkki) --- */
#update_box{ display:none !important; }

/* --- 2) Osamaksu-widget --- */
.kt-osamaksu{ display:inline-flex; align-items:center; gap:7px; background:#edf5f3; border:1px solid #cfe0da; border-radius:8px;
  padding:6px 12px; font-size:13px; font-weight:700; color:#1f2430; cursor:pointer; line-height:1.1; }
.kt-osamaksu:hover{ background:#e2efeb; }
.kt-osamaksu img{ height:16px; width:auto; display:block; }
.kt-osamaksu .kt-nuoli{ font-size:11px; color:#6b7280; }
#result{ max-width:560px; font-size:13px; }
