/* Ammyla – zákaznícka sekcia v2 (/klient/...) a prihlásenie */

/* menu v hlavičke má prednosť pred lištou vyťaženosti (tablet) */
@media (min-width: 768px) { #header { z-index: 20; } }

/* ---------- rozloženie ---------- */
@media (min-width: 768px) {
  body.customer-page .content-wrapper-in { gap: 36px; align-items: flex-start; }
  body.customer-page aside.sidebar-left { width: 280px !important; flex: 0 0 280px !important; max-width: none; position: sticky; top: 110px; }
  body.customer-page #content { flex: 1 1 0; min-width: 0; width: auto; }
}

/* ---------- ľavé menu ---------- */
body.customer-page .sidebar-left .client-center-box {
  background: #fff;
  border: 1px solid #E4D9D0;
  border-radius: 12px;
  padding: 22px 22px 18px;
}
body.customer-page .sidebar-left .client-center-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }

/* meno + iniciálky */
body.customer-page .sidebar-left li.active { order: 0; }
body.customer-page .sidebar-left li.active a {
  display: flex !important; align-items: center; gap: 12px;
  padding: 0 0 18px; margin: 0;
  font-family: var(--template-headings-font, "Cinzel"), Georgia, serif;
  font-size: 17px; letter-spacing: .03em; color: #241810;
  border-bottom: 1px solid #E4D9D0;
}
body.customer-page .sidebar-left li.active a strong { font-weight: 400; line-height: 1.25; }
body.customer-page .kl-avatar {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #6E381E; color: #F3D9A4;
  font-family: var(--template-headings-font, "Cinzel"), Georgia, serif; font-size: 16px; letter-spacing: .05em;
}

/* skupiny: poradie a nadpisy */
body.customer-page .sidebar-left li:has(> a[href$="/klient/objednavky/"]) { order: 10; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-platby/"]) { order: 11; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-doklady/"]) { order: 12; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klientske-proforma-faktury/"]) { order: 13; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klientske-dobropisy/"]) { order: 14; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/dodacie-listy-klienta/"]) { order: 15; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/danove-doklady-platba/"]) { order: 16; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/nastavenie/"]) { order: 20; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-zlavy/"]) { order: 21; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-hodnotenie/"]) { order: 30; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-diskusia/"]) { order: 31; }

body.customer-page .sidebar-left li:has(> a[href$="/klient/objednavky/"])::before,
body.customer-page .sidebar-left li:has(> a[href$="/klient/nastavenie/"])::before,
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-hodnotenie/"])::before {
  display: block; margin: 20px 0 4px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #B5713F;
}
body.customer-page .sidebar-left li:has(> a[href$="/klient/objednavky/"])::before { content: "Objednávky a doklady"; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/nastavenie/"])::before { content: "Môj účet"; }
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-hodnotenie/"])::before { content: "Aktivita"; }

/* odkazy */
body.customer-page .sidebar-left li:not(.active):not(.logout) a {
  display: block; padding: 9px 12px; margin: 0 -12px; border-radius: 6px;
  font-size: 16px; color: #3b2a21; text-decoration: none;
  transition: background .15s, color .15s;
}
body.customer-page .sidebar-left li:not(.active):not(.logout) a:hover { background: rgba(110, 56, 30, .08); color: #6E381E; }
body.customer-page .sidebar-left li a.kl-current { background: rgba(110, 56, 30, .12); color: #6E381E; font-weight: 700; }

/* odhlásiť sa – na konci */
body.customer-page .sidebar-left li.logout { order: 100; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #E4D9D0; }
body.customer-page .sidebar-left li.logout a.btn {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: transparent !important; color: #6E381E !important;
  border: 1px solid #6E381E; border-radius: 4px; padding: 10px 12px;
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
body.customer-page .sidebar-left li.logout a.btn:hover { background: #6E381E !important; color: #fff !important; }

/* ---------- obsah ---------- */
body.customer-page #content h1 {
  font-size: clamp(24px, 3vw, 31px); text-transform: uppercase; letter-spacing: .03em;
  color: #241810; margin: 0 0 22px;
}
body.customer-page .mehub-bonus-profile-container h2 {
  font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: #241810; margin: 34px 0 14px;
}

/* rýchle dlaždice (len /klient/) */
.kl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 8px; }
.kl-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 18px 16px; background: #fff; border: 1px solid #E4D9D0; border-radius: 12px;
  color: #241810; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.kl-tile:hover { border-color: #B5713F; box-shadow: 0 6px 18px rgba(110, 56, 30, .1); transform: translateY(-2px); color: #241810; }
.kl-tile svg { width: 30px; height: 30px; margin-bottom: 8px; fill: none; stroke: #6E381E; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kl-tile b { font-family: var(--template-headings-font, "Cinzel"), Georgia, serif; font-weight: 400; font-size: 15.5px; letter-spacing: .03em; }
.kl-tile span { font-size: 13.5px; color: #6B5A4C; line-height: 1.4; }

/* prázdny stav objednávok */
body.customer-page #content .kl-empty {
  margin: 0 0 8px; padding: 16px 20px; background: #F8F3EE; border: 1px dashed #D9C7B8; border-radius: 12px; color: #6B5A4C;
}

/* bonusový program (Ellity) */
body.customer-page .ellity-credit-card,
body.customer-page .ellity-history-card {
  background: #fff !important; border: 1px solid #E4D9D0 !important; border-radius: 12px !important; padding: 8px !important;
}
body.customer-page .ellity-history-card table { border: 0; border-collapse: collapse; width: 100%; }
body.customer-page .ellity-history-card th {
  font-family: var(--template-headings-font, "Cinzel"), Georgia, serif; font-weight: 400; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: #6B5A4C; background: #F8F3EE; border-bottom: 1px solid #E4D9D0;
}
body.customer-page .ellity-history-card td { border-top: 1px solid #EFE7E0; color: #3b2a21; }

/* ---------- mobil: menu ako posuvné „pilulky“ ---------- */
@media (max-width: 767px) {
  body.customer-page aside.sidebar-left { position: static; width: 100% !important; }
  body.customer-page .sidebar-left .client-center-box { padding: 14px; }
  body.customer-page .sidebar-left .client-center-box ul { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
  body.customer-page .sidebar-left .client-center-box ul::-webkit-scrollbar { display: none; }
  body.customer-page .sidebar-left li { flex: none; }
  body.customer-page .sidebar-left li::before { display: none !important; }
  body.customer-page .sidebar-left li.active a { padding: 0 8px 0 0; border: 0; font-size: 15px; white-space: nowrap; }
  body.customer-page .kl-avatar { width: 36px; height: 36px; font-size: 13px; }
  body.customer-page .sidebar-left li:not(.active):not(.logout) a { margin: 0; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #F8F3EE; font-size: 14.5px; }
  body.customer-page .sidebar-left li.logout { order: 100; margin: 0; padding: 0; border: 0; }
  body.customer-page .sidebar-left li.logout a.btn { width: auto; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
  .kl-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kl-tile { padding: 14px; }
}

/* ---------- prihlásenie ---------- */
body.in-login .alternative-links {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 18px 0; font-size: 15px;
}
body.in-login .alternative-links a { color: #6E381E; text-decoration: underline; text-underline-offset: 3px; }
body.in-login .alternative-links a:hover { text-decoration: none; }

/* ---------- bonusový program (Ellity) – prehľadnejšie ---------- */
body.customer-page .ellity-credit-card .card-title,
body.customer-page .ellity-history-card .card-title {
  font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: #B5713F; border: 0; padding: 14px 16px 0;
}
body.customer-page .ellity-credit-card .vip-tier > div:first-child {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
}
body.customer-page .ellity-credit-card .tier-name {
  display: flex; align-items: center;
  font-family: var(--template-headings-font, "Cinzel"), Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: .04em; color: #241810;
}
body.customer-page .ellity-credit-card .tier-name img { width: 84px !important; height: 84px !important; margin-right: 14px !important; }
body.customer-page .ellity-credit-card .credit-value { color: #B5713F; white-space: nowrap; }
body.customer-page .ellity-credit-card .tier-condition { color: #6B5A4C; font-size: 14.5px; }
body.customer-page .ellity-credit-card .card-actions { display: flex; justify-content: flex-start; padding: 4px 16px 16px; }
body.customer-page .ellity-credit-card .card-actions .btn {
  background: transparent; color: #6E381E; border: 1px solid #6E381E; border-radius: 4px;
  padding: 10px 18px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
}
body.customer-page .ellity-credit-card .card-actions .btn:hover { background: #6E381E; color: #fff; }

/* história – zbalená, rozklikne sa */
body.customer-page .kl-collapsible .card-title {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding-bottom: 14px; user-select: none;
}
body.customer-page .kl-collapsible .card-title::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 12px;
  border-right: 2px solid #B5713F; border-bottom: 2px solid #B5713F;
  transform: rotate(45deg); transition: transform .2s ease;
}
body.customer-page .kl-collapsible.kl-open .card-title::after { transform: rotate(-135deg); margin-top: 4px; }
body.customer-page .kl-collapsible:not(.kl-open) > .card-text,
body.customer-page .kl-collapsible:not(.kl-open) > .card-actions { display: none !important; }
body.customer-page .kl-collapsible .card-title:focus-visible { outline: 2px solid #B5713F; outline-offset: -2px; border-radius: 8px; }
body.customer-page .ellity-history-card .card-text { overflow-x: auto; }
body.customer-page .ellity-history-card .kl-plus { color: #2f6b3a; font-weight: 700; }
body.customer-page .ellity-history-card .kl-minus { color: #9a2a2a; font-weight: 700; }

/* úroveň + stav konta v jednom riadku, ukazovateľ postupu */
body.customer-page .ellity-credit-card .tier-name { flex-direction: row !important; }
body.customer-page .ellity-credit-card .credit-value { width: auto !important; text-align: right; font-size: clamp(20px, 2.4vw, 26px); }
body.customer-page .ellity-credit-card .tier-progress { margin: 14px 0 8px; height: 8px; border-radius: 4px; background: #EFE7E0; overflow: hidden; }
body.customer-page .ellity-credit-card .tier-progress span { background: #B5713F; border-radius: 4px; }

/* ikona úrovne – otočí sa po osi Y (raz za 6 s), vypne sa pri „znížený pohyb“ */
@keyframes kl-spin-y {
  0%   { transform: perspective(600px) rotateY(0deg); }
  35%  { transform: perspective(600px) rotateY(360deg); }
  100% { transform: perspective(600px) rotateY(360deg); }
}
body.customer-page .ellity-credit-card .tier-name img {
  animation: kl-spin-y 6s ease-in-out infinite;
  will-change: transform;
}
body.customer-page .ellity-credit-card .tier-name img:hover { animation-duration: 1.6s; }
@media (prefers-reduced-motion: reduce) {
  body.customer-page .ellity-credit-card .tier-name img { animation: none; }
}

/* ---------- bonusový program len na úvodnej stránke ---------- */
body.customer-page:not(.kl-home) .mehub-bonus-profile-container { display: none; }

/* ---------- prázdne stránky ---------- */
body.customer-page #content h4.kl-empty { font: inherit; text-transform: none; letter-spacing: 0; }
body.customer-page #content .kl-empty { display: block; margin: 0 0 8px; padding: 16px 20px; background: #F8F3EE; border: 1px dashed #D9C7B8; border-radius: 12px; color: #6B5A4C; }

/* ---------- moje platby ---------- */
body.customer-page #content h2.spaced-big { font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: #241810; margin: 8px 0 12px; }

/* ---------- osobné údaje (formulár) ---------- */
body.customer-page #register-form {
  max-width: 680px !important; width: 100% !important; box-sizing: border-box;
  background: #fff !important; border: 1px solid #E4D9D0 !important; border-radius: 12px !important; padding: 28px !important;
}
body.customer-page #register-form .co-box { width: 100% !important; max-width: none !important; margin: 0 0 20px !important; padding: 0 !important; background: transparent !important; }
body.customer-page #register-form fieldset.box { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.customer-page #register-form fieldset.box h2 {
  font-size: 20px; text-transform: uppercase; letter-spacing: .03em; color: #241810; margin: 0 0 6px;
}
body.customer-page #register-form .form-legend { font-size: 13px; color: #6B5A4C; margin: 0 0 18px; }
body.customer-page #register-form .form-group { margin-bottom: 16px; }
body.customer-page #register-form label { font-size: 14px; color: #6B5A4C; margin-bottom: 6px; }
body.customer-page #register-form input.form-control,
body.customer-page #register-form select.form-control,
body.customer-page #register-form .phone-combined-input {
  background: #FBF8F5 !important; border: 1.5px solid #E4D9D0 !important; border-radius: 8px !important; box-shadow: none;
  padding: 11px 14px; color: #241810; transition: border-color .15s, box-shadow .15s;
}
body.customer-page #register-form .phone-combined-input { padding: 0 !important; display: flex; align-items: center; }
body.customer-page #register-form .phone-combined-input input { background: transparent !important; border: 0 !important; box-shadow: none; }
body.customer-page #register-form input.form-control:focus,
body.customer-page #register-form select.form-control:focus,
body.customer-page #register-form .phone-combined-input:focus-within {
  border-color: #B5713F !important; outline: none; box-shadow: 0 0 0 3px rgba(181, 113, 63, .18);
}
body.customer-page #register-form .submit-wrapper { margin-top: 6px; }
body.customer-page #register-form .submit-wrapper .btn-primary {
  background: #6E381E; border: 1px solid #6E381E; border-radius: 4px; color: #fff;
  padding: 13px 34px; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; transition: background .15s;
}
body.customer-page #register-form .submit-wrapper .btn-primary:hover { background: #532712; border-color: #532712; }

/* dlaždica stránky, na ktorej práve si */
.kl-tile.kl-tile-current { background: #F8F3EE; border-color: #6E381E; }

/* prázdny stav – text vertikálne na stred, bežné písmo */
body.customer-page #content .kl-empty {
  display: flex !important; align-items: center; min-height: 58px; box-sizing: border-box;
  padding: 0 20px !important; margin: 0 0 8px !important; line-height: 1.4 !important;
  font-family: var(--template-font, "Arsenal"), Georgia, serif !important; font-size: 16px !important;
  font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: #6B5A4C !important;
}

/* položka „Moje zľavy“ sa v menu nezobrazuje */
body.customer-page .sidebar-left li:has(> a[href$="/klient/klient-zlavy/"]) { display: none !important; }
