/* =========================================================
   VK CORE – AUTH + ACCOUNT STYLES (CLEAN)
   Scope: #vk-auth-scope
   ========================================================= */

/* -------------------------
   1) Base layout + helpers
------------------------- */
.vk-auth-wrap {
  min-width: 320px;
  max-width: 420px;
}

.vk-auth-form {
  display: block;
}

.vk-auth-form.is-hidden {
  display: none;
}

.vk-auth-wrap [data-auth-panel].is-hidden {
  display: none;
}

.vk-field {
  margin-bottom: .9rem;
}

.vk-field2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: .1rem;
}

.vk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .6rem 0 1rem;
}

.vk-check {
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.vk-privacy-note {
  margin: .65rem 0 .85rem;
  color: #555;
  font-size: .82rem;
  line-height: 1.4;
}

.vk-link {
  font-size: .9rem;
  text-decoration: underline;
}

/* Errors / notices */
.vk-errors {
  min-height: 1.2rem;
  margin: .3rem 0 .6rem;
  font-size: .9rem;
}

.vk-errors.is-error {
  color: #b00020;
}

.vk-errors.is-ok {
  color: #0a7a0a;
}

.vk-notice {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 0 12px;
  font-size: .95rem;
}

.vk-notice--success {
  background: rgba(180, 187, 107, .25);
}

.vk-notice--error {
  background: rgba(176, 0, 32, .12);
}

.vk-notice--info {
  background: rgba(0, 0, 0, .06);
}

/* Loading lock */
.vk-auth-form.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}

.vk-btn.is-locked {
  pointer-events: none;
  opacity: .95;
}

/* Spinner */
@keyframes vkspin {
  to {
    transform: rotate(360deg);
  }
}

.vk-btn--primary.is-busy::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #000;
  border-radius: 50%;
  animation: vkspin .8s linear infinite;
  margin-left: .5rem;
  vertical-align: -2px;
}


/* -------------------------
   2) Buttons (VK design)
------------------------- */
.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  font-weight: 300;
  font-size: 1.3rem !important;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
  width: 100%;
}

.vk-btn,
.vk-btn:hover {
  text-decoration: none !important;
}

/* Toggle buttons */
.vk-btn--toggle {
  background: #fff;
  color: #000;
  border: 2px solid #b3b3b3;
}

.vk-btn--toggle:hover,
.vk-btn--toggle.is-active,
.vk-btn--toggle[aria-current="page"] {
  background: #B4BB6B;
  color: #000;
  border-color: #B4BB6B;
}

/* Primary CTA */
.vk-btn--primary {
  background: #00000080;
  color: #fff;
  border: none;
  box-shadow: none;
  min-width: 10rem;
}

.vk-btn--primary:hover,
.vk-btn--primary:active,
.vk-btn--primary.is-busy {
  background: #B4BB6B;
  color: #000;
}


/* -------------------------
   3) Logged panel card
------------------------- */
.vk-auth-logged .vk-user-card {
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 1.2rem;
}

.vk-user-greet {
  display: flex;
  gap: .4rem;
  align-items: baseline;
  margin-bottom: .6rem;
  text-align: center;
}

.vk-user-hello {
  font-size: 1.2rem;
  font-weight: 500;  
}

.vk-user-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.vk-user-stats {
  display: flex;
  gap: 1rem;
  margin: .4rem 0 1rem;
}

.vk-stat-label {
  font-size: .8rem;
  color: #666;
}

.vk-stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.vk-user-actions {
  display: grid;
  gap: .6rem;
}


/* -------------------------
   4) Account layout (2 columns)
------------------------- */
.vk-account {
  display: grid;
  grid-template-columns: 300px 1fr;
  /*360*/
  gap: 2rem;
  align-items: start;
}

.vk-account__sidebar {
  position: sticky;
  top: 24px;
}

.vk-account__content {
  min-width: 0;
}

@media (max-width:991px) {
  .vk-account {
    grid-template-columns: 1fr;
  }

  .vk-account__sidebar {
    position: static;
  }
}


/* -------------------------
   5) Hide Woo navigation + titles
------------------------- */
.woocommerce-MyAccount-navigation {
  display: none !important;
}

body.woocommerce-account .entry-title,
body.woocommerce-account .page-title,
body.woocommerce-account .page-header {
  display: none !important;
}

.vk-account__content>h1:first-child,
.vk-account__content>h2:first-child,
.vk-account__content>h3:first-child {
  display: none !important;
  margin: 0 !important;
}

/* Old tabs (unused) */
.vk-auth-tabs,
.vk-auth-tab {
  display: none !important;
}


/* =========================================================
   SCOPE OVERRIDES (Elementor/Woo theme conflicts)
   Everything inside #vk-auth-scope
   ========================================================= */
#vk-auth-scope {}

/* -------------------------
   6) Inputs / labels inside VK forms
------------------------- */
#vk-auth-scope .vk-field label {
  display: block;
  font-size: .9rem;
  margin-bottom: .3rem;
}

#vk-auth-scope .vk-field input,
#vk-auth-scope .vk-field2 input {
  width: 100%;
  padding: 5px;
  border: 1px solid #b3b3b3;
  border-radius: 8px;
}

/* Guest auth typography */
#vk-auth-scope.vk-auth-guest label {
  font-size: .9rem !important;
  margin-bottom: .3rem !important;
}

#vk-auth-scope.vk-auth-guest input {
  font-size: 15px !important;
  padding: 8px 10px !important;
  min-height: 38px !important;
}

#vk-auth-scope .vk-auth-form--register .vk-password-feedback {
  color: #555;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  margin-top: .35rem;
}

#vk-auth-scope .vk-auth-form--register .vk-password-feedback.is-short {
  color: #b32d2e;
}

#vk-auth-scope .vk-auth-form--register .vk-password-feedback.is-valid {
  color: #237a3b;
}

#vk-auth-scope .vk-auth-form--register input.vk-password-is-short {
  border-color: #b32d2e !important;
}

#vk-auth-scope .vk-auth-form--register input.vk-password-is-valid {
  border-color: #237a3b !important;
}


/* -------------------------
   7) Force consistent buttons inside scope
   (fixes small-radius Elementor/Woo buttons)
------------------------- */
#vk-auth-scope .vk-btn {
  text-decoration: none !important;
}

/* VK buttons inside scope */
#vk-auth-scope .vk-btn--toggle {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #b3b3b3 !important;
  box-shadow: none !important;
  outline: none !important;
}

#vk-auth-scope .vk-btn--toggle:hover,
#vk-auth-scope .vk-btn--toggle.is-active,
#vk-auth-scope .vk-btn--toggle[aria-current="page"] {
  background: #B4BB6B !important;
  color: #000 !important;
  border-color: #B4BB6B !important;
}

#vk-auth-scope .vk-btn--primary,
#vk-auth-scope button.vk-btn--primary,
#vk-auth-scope input[type="submit"].vk-btn--primary {
  background: #00000080 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

#vk-auth-scope .vk-btn--primary:hover,
#vk-auth-scope .vk-btn--primary:active,
#vk-auth-scope .vk-btn--primary.is-busy {
  background: #B4BB6B !important;
  color: #000 !important;
}

/* HARD force radius for any button-like elements in scope */
#vk-auth-scope button,
#vk-auth-scope input[type="submit"],
#vk-auth-scope input[type="button"],
#vk-auth-scope .button,
#vk-auth-scope a.vk-btn,
#vk-auth-scope .vk-btn {
  border-radius: 10px !important;
}


/* -------------------------
   8) Account settings card (right column)
------------------------- */
.vk-account__content .vk-account-settings {
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06) !important;
}

@media (max-width:991px) {
  .vk-account__content .vk-account-settings {
    max-width: 100% !important;
    padding: 12px !important;
  }
}

/* Titles */
#vk-auth-scope .vk-account-settings h3.vk-section-title {
  margin: 0 0 .8rem !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

#vk-auth-scope .vk-account-settings .vk-subtitle,
#vk-auth-scope .vk-account-settings h4.vk-subtitle {
  margin: .25rem 0 .6rem !important;
  font-weight: 600;
  opacity: .9;
}

/* 3 visual blocks */
#vk-auth-scope .vk-account-settings .vk-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

#vk-auth-scope .vk-account-settings .vk-card__title {
  margin: 0 0 .75rem !important;
  font-size: 1.05rem !important;
  font-weight: 700;
}

#vk-auth-scope .vk-account-settings .vk-card__body {
  margin: 0;
}

@media (max-width:768px) {
  #vk-auth-scope .vk-account-settings .vk-card {
    padding: .9rem .95rem;
  }
}

/* Save actions centered */
#vk-auth-scope .vk-account-settings .vk-settings-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

#vk-auth-scope .vk-account-settings .vk-settings-actions .vk-btn {
  width: auto;
  min-width: 220px;
}

@media (max-width:768px) {
  #vk-auth-scope .vk-account-settings .vk-settings-actions .vk-btn {
    width: 100%;
    min-width: 0;
  }
}


/* -------------------------
   9) Settings – 2 columns grid
------------------------- */
#vk-auth-scope .vk-account-settings .vk-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

#vk-auth-scope .vk-settings-col {
  min-width: 0;
}

@media (max-width:991px) {
  #vk-auth-scope .vk-account-settings .vk-settings-grid {
    grid-template-columns: 1fr;
  }
}


/* -------------------------
   10) Woo elements inside scope (if used)
   (keeping minimal, avoid duplications)
------------------------- */
#vk-auth-scope .woocommerce form .form-row {
  margin: 0 0 .9rem !important;
}

#vk-auth-scope .woocommerce form .form-row label {
  display: block !important;
  font-size: .9rem !important;
  margin-bottom: .3rem !important;
}

#vk-auth-scope .woocommerce form .form-row input[type="text"],
#vk-auth-scope .woocommerce form .form-row input[type="email"],
#vk-auth-scope .woocommerce form .form-row input[type="tel"],
#vk-auth-scope .woocommerce form .form-row input[type="password"],
#vk-auth-scope .woocommerce form .form-row select,
#vk-auth-scope .woocommerce form .form-row textarea {
  width: 100% !important;
  padding: 5px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Select font fix (Země) */
#vk-auth-scope .vk-account-settings select,
#vk-auth-scope .vk-account-settings option {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
}

/* ARES button: split font */
#vk-auth-scope .vk-ares-btn {
  display: inline-flex;
  width: auto;
  /* pokud nechceš full-width */
  min-width: 180px;
}

#vk-auth-scope .vk-ares-btn .vk-ares-label {
  font-family: "Courgette", cursive;
  /* nebo inherit, pokud Courgette je globálně */
  letter-spacing: .2px;
}

#vk-auth-scope .vk-ares-btn .vk-ares-brand {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px !important;
  font-weight: 500;
  /*letter-spacing: .2px;*/
}

/* spinner pro jakékoliv VK tlačítko */
#vk-auth-scope .vk-btn.is-busy::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #000;
  border-radius: 50%;
  animation: vkspin .8s linear infinite;
  margin-left: .5rem;
  vertical-align: -2px;
}

#vk-auth-scope .vk-account-settings select {
  padding: 5px 6px !important;
  /* nebo co používáš pro input */
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid #b3b3b3 !important;
}

#vk-auth-scope .vk-account-settings .vk-communication-levels {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

#vk-auth-scope .vk-account-settings .vk-communication-levels legend {
  font-family: Courgette, cursive;
  font-size: 18px;
  margin-bottom: .5rem;
}

#vk-auth-scope .vk-account-settings .vk-communication-level,
#vk-auth-scope .vk-account-settings .vk-communication-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 .8rem;
  cursor: pointer;
}

#vk-auth-scope .vk-account-settings .vk-communication-level input,
#vk-auth-scope .vk-account-settings .vk-communication-check input {
  flex: 0 0 auto;
  margin-top: .3rem;
}

#vk-auth-scope .vk-account-settings .vk-communication-level span,
#vk-auth-scope .vk-account-settings .vk-communication-check span {
  display: grid;
  gap: .1rem;
}

#vk-auth-scope .vk-account-settings .vk-communication-level small,
#vk-auth-scope .vk-account-settings .vk-communication-check small {
  opacity: .72;
  line-height: 1.35;
}

#vk-auth-scope .vk-account-settings .vk-communication-unset {
  margin: 0 0 .8rem;
  padding: .65rem .8rem;
  border-radius: 10px;
  background: #fff7df;
}

#vk-auth-scope .vk-account-settings .vk-communication-following {
  border-top: 1px solid rgba(45, 83, 52, .16);
  margin-top: 1rem;
  padding-top: 1rem;
}

#vk-auth-scope .vk-account-settings .vk-topic-subscriptions {
  display: grid;
  gap: .75rem;
}

#vk-auth-scope .vk-account-settings .vk-topic-subscription {
  padding: .8rem;
  border: 1px solid rgba(45, 83, 52, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}

#vk-auth-scope .vk-account-settings .vk-topic-subscription p {
  margin: 0 0 .65rem;
}

#vk-auth-scope .vk-phone-row {
  grid-template-columns: 120px 1fr !important;
  gap: .6rem !important;
}

#vk-auth-scope .vk-phone-row select,
#vk-auth-scope .vk-phone-row input {
  width: 100% !important;
  font-size: 18px !important;
}

/* ================================
   VK HEADER ACTIONS (shortcode)
   Košík + Login/Account button
   ================================ */
/* ===== VK HEADER ACTIONS (layout) ===== */
#vk-header-scope.vk-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* ===== LOGIN BUTTON (kompaktní) ===== */
#vk-header-scope .vk-header-login {
  width: auto !important;
  padding: .45rem .7rem !important;
  border-radius: 8px !important;
  border: 2px solid #b3b3b3 !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 300 !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .45rem !important;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

#vk-header-scope .vk-header-login:hover,
#vk-header-scope .vk-header-login.is-open {
  background: #B4BB6B !important;
  border-color: #B4BB6B !important;
  color: #000 !important;
}

#vk-header-scope .vk-login-arrow {
  display: inline-flex;
  align-items: center;
}

#vk-header-scope .vk-login-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  transition: transform .25s ease;
}

#vk-header-scope .vk-header-login.is-open .vk-login-arrow svg {
  transform: rotate(180deg);
}

/* ===== CART BUTTON (ikona + badge) ===== */
#vk-header-scope .vk-cart-btn {
  width: auto !important;
  padding: .45rem .6rem !important;
  border-radius: 8px !important;
  border: 2px solid #b3b3b3 !important;
  background: #fff !important;
  color: #000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  position: relative;
  text-decoration: none !important;
}

#vk-header-scope .vk-cart-btn:hover {
  background: #B4BB6B !important;
  border-color: #B4BB6B !important;
  color: #000 !important;
}

#vk-header-scope .vk-cart-btn span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  /* výška ikony */
  line-height: 1;
}

#vk-header-scope .vk-cart-btn.is-empty {
  opacity: .75;
}

#vk-header-scope .vk-cart-btn.is-full {
  opacity: 1;
}

#vk-header-scope .vk-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #B4BB6B;
  color: #000;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  pointer-events: none;
}

/* ===== VK BOX (společný podklad pro stránky v účtu) ===== */
#vk-auth-scope .vk-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 1.2rem;
}

/* Orders: ať se tabulka vejde */
#vk-auth-scope .vk-box--orders {
  overflow: auto;
}



#vk-auth-scope .vk-card--orders .woocommerce-orders-table th {
  white-space: nowrap;
  font-weight: 500;
  /* nebo 600, jak chceš */
  font-size: .95rem;
}


/* Zjemni default Woo tabulku uvnitř našeho cardu */
#vk-auth-scope .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
}

#vk-auth-scope .woocommerce-orders-table th,
#vk-auth-scope .woocommerce-orders-table td {
  padding: .6rem .5rem;
}

/* ===== ORDERS: action buttons do VK stylu ===== */
/* =========================
   ORDERS – VK podklad širší
   ========================= */
.vk-orders-scope .vk-orders-card {
  max-width: 2000px !important;
  /* zvětši dle potřeby */
  width: 100% !important;
  margin: 0 auto !important;
  padding: 16px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06) !important;
  overflow-x: auto !important;
  /* fallback když je tabulka širší */
}

/* Hlavičky sloupců – nezalamovat + změna váhy */
.vk-orders-scope .woocommerce-orders-table th {
  white-space: nowrap !important;
  font-weight: 500 !important;
  /* nastav jak chceš (400/500/600) */
}

/* Akce vpravo – nezalamovat */
.vk-orders-scope .woocommerce-orders-table__cell-order-actions {
  white-space: nowrap !important;
}

/* Tlačítka akcí (např. Zobrazit) do VK stylu */
.vk-orders-scope a.button,
.vk-orders-scope a.woocommerce-button,
.vk-orders-scope .woocommerce-button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .45rem .7rem !important;
  border-radius: 8px !important;
  border: 2px solid #b3b3b3 !important;
  background: #fff !important;
  color: #000 !important;
  text-decoration: none !important;
  font-weight: 300 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: all .2s ease !important;
}

.vk-orders-scope a.button:hover,
.vk-orders-scope a.woocommerce-button:hover,
.vk-orders-scope .woocommerce-button.button:hover {
  background: #B4BB6B !important;
  border-color: #B4BB6B !important;
  color: #000 !important;
}
