/* Layout */
.vt-account {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

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

/* Lewa kolumna: menu */
.vt-account__nav .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: 16px;
  padding: 12px;
  position: sticky;
  top: 16px;
}

.vt-account__nav .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 6px;
}

.vt-account__nav .woocommerce-MyAccount-navigation li a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--vt-text, #1a1a1a);
  line-height: 1.2;
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.vt-account__nav .woocommerce-MyAccount-navigation li a:hover {
  background: #fafafa;
  border-color: var(--vt-border, #e6e6e6);
}

.vt-account__nav .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--vt-primary-50, #f5f8ff);
  border-color: var(--vt-primary, #1b67ff);
  color: var(--vt-primary, #1b67ff);
}

/* Prawa kolumna: content */
.vt-account__content {
  background: #fff;
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: 16px;
  padding: 20px;
}

/* Nagłówki i odstępy */
.vt-account__content h2,
.vt-account__content h3 {
  margin: 0 0 12px;
}

.vt-account__content .woocommerce-message,
.vt-account__content .woocommerce-error,
.vt-account__content .woocommerce-info {
  border-radius: 12px;
  border: 1px solid var(--vt-border, #e6e6e6);
  background: #fafafa;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* Tabele (np. Orders, Downloads) */
.vt-account__content table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: 12px;
  overflow: hidden;
}

.vt-account__content table.shop_table th,
.vt-account__content table.shop_table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--vt-border, #e6e6e6);
}

.vt-account__content table.shop_table tr:last-child td {
  border-bottom: 0;
}

/* Formularze (adresy, detale konta, login/reset) */
.vt-account__content form .form-row,
.vt-account__content form p {
  margin-bottom: 12px;
}

.vt-account__content input[type="text"],
.vt-account__content input[type="email"],
.vt-account__content input[type="password"],
.vt-account__content input[type="tel"],
.vt-account__content select,
.vt-account__content textarea {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--vt-border, #e6e6e6);
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vt-account__content textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

.vt-account__content input:focus,
.vt-account__content select:focus,
.vt-account__content textarea:focus {
  border-color: var(--vt-primary, #1b67ff);
  box-shadow: 0 0 0 3px rgba(27,103,255,.12);
}

/* Przyciski: korzystamy z Twoich klas */
.vt-account__content button.button,
.vt-account__content a.button {
  display: inline-block;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.vt-account__content .button,
.vt-account__content button[type="submit"] {
  /* aplikujemy look primary */
  background: var(--vt-primary);
  border: 1px solid var(--vt-primary);
  color: #fff;
  transition: all .3s ease;
}

.vt-account__content .button:hover,
.vt-account__content button[type="submit"]:hover {
  background: transparent;
  color: var(--vt-primary);
}

/* Adresy: karty */
.vt-account__content .woocommerce-Addresses .woocommerce-Address {
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

/* Mobile: na górze przycisk do zwijania menu */
.vt-account__navToggle {
  display: none;
}

@media (max-width: 992px) {
  .vt-account__navToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .vt-account__navToggle button {
    border: 1px solid var(--vt-border, #e6e6e6);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
  }
  .vt-account__nav[aria-expanded="false"] .woocommerce-MyAccount-navigation {
    display: none;
  }
}

/* Dostępność: focus na linkach menu */
.vt-account__nav a:focus-visible {
  outline: 3px solid rgba(27,103,255,.35);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Layout */
.vt-auth,
.woocommerce-form.login,
.woocommerce-form.register {
  max-width: 720px;
  margin: var(--vt-space-7, 3rem) auto;
  padding: var(--vt-space-6, 2rem);
  background: var(--vt-surface, #fff);
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: var(--vt-radius-xl, 16px);
  box-shadow: var(--vt-shadow-sm, 0 2px 10px rgba(0,0,0,.04));
}

.vt-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
}

/* Tabs */
.vt-auth__tabs {
  display: grid;
  grid-auto-flow: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.vt-tab {
  appearance: none;
  border: 1px solid var(--vt-border, #e6e6e6);
  background: var(--vt-muted, #f7f7f7);
  padding: .6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.vt-tab.is-active {
  background: var(--vt-primary-50, #eef3ff);
  border-color: var(--vt-primary-300, #94b0ff);
}

/* Panes */
.vt-pane { display: none; }
.vt-pane.is-active { display: block; }

/* Form */
.vt-form__row { margin-bottom: 1rem; }
.vt-label { display: block; margin-bottom: .35rem; font-weight: 600; }
.vt-input,
.vt-input[type="text"],
.vt-input[type="email"],
.vt-input[type="password"] {
  width: 100%;
  border: 1px solid var(--vt-border, #e6e6e6);
  background: #fff;
  padding: .7rem .85rem;
  border-radius: 10px;
  outline: none;
}
.vt-input:focus { border-color: var(--vt-primary-400, #6e8cff); box-shadow: 0 0 0 3px rgba(110,140,255,.15); }

.vt-inputgroup { position: relative; }
.vt-inputgroup__btn {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  border: 0; background: transparent; padding: .4rem .5rem; cursor: pointer;
}

.vt-form__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin: .75rem 0 1.25rem;
  gap: .75rem; flex-wrap: wrap;
}
.vt-checkbox { display: flex; align-items: center; gap: .5rem; }

.vt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.vt-btn--primary {
  background: var(--vt-primary, #2c56ff); color: #fff; border: none;
  padding: .75rem 1.1rem; border-radius: 12px; font-weight: 700; cursor: pointer;
}
.vt-btn--primary:focus { outline: 2px solid var(--vt-primary-300, #94b0ff); outline-offset: 2px; }

.vt-link { text-decoration: underline; }
.vt-link--muted { color: var(--vt-text-muted, #666); }

/* Woo messages - spójnie z cart/checkout */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  background: #fff;
  border: 1px solid var(--vt-border, #e6e6e6);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin: 1rem auto;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .vt-auth,
  .woocommerce-form.login,
  .woocommerce-form.register {
    padding: 1.25rem;
    margin: 1.25rem .75rem;
  }
}

/* ===========================================
   VT Pro Styles Upgrade
   =========================================== */
.vt-account__nav,
.vt-account__content,
.vt-auth,
.woocommerce-form.login,
.woocommerce-form.register {
  border: 1px solid var(--vt-border, #d3ddeb);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 12px 30px rgba(15, 26, 42, 0.08);
}

.vt-account__nav .woocommerce-MyAccount-navigation a {
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.vt-account__nav .woocommerce-MyAccount-navigation a:hover {
  background: color-mix(in srgb, var(--vt-primary, #6767FB) 8%, #fff);
  color: var(--vt-primary, #6767FB);
  transform: translateX(2px);
}

.vt-tab.is-active {
  background: color-mix(in srgb, var(--vt-primary, #6767FB) 12%, #fff);
  border-color: color-mix(in srgb, var(--vt-primary, #6767FB) 38%, #fff);
}
