/* === Wspólne style dla podstron konta klienta (account/*) ===
   Prefix: .acc-*  (NIE używaj ad-* - adblockery to blokują)
   Akcent: #d8001b (czerwony brandu American Parts, = --red ze style.css).
   Kontrast: tytuły #16233d (--navy), opisy #555.
*/

.account-dashboard { padding-bottom: 40px; }
.account-dashboard .breadcrumb { margin-bottom: 14px; }

/* ─── Hero header (na każdej podstronie) ─── */
.acc-header {
  background: linear-gradient(180deg, #fafcfd, #f3f6f8);
  border: 1px solid #e5eaef;
  border-radius: 8px;
  padding: 22px 26px;
  margin: 6px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.acc-header-text h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.acc-header-text p { margin: 0; color: #555; font-size: 14px; }
.acc-email { color: #1a1a1a; font-weight: 600; }
.acc-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Buttons ─── */
.acc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid #c4ccd3;
  border-radius: 6px;
  color: #1a1a1a;
  background: #fff;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.acc-btn:hover { background: #f7f9fb; border-color: #d8001b; color: #d8001b; }
.acc-btn.primary { background: #d8001b; border-color: #d8001b; color: #fff; }
.acc-btn.primary:hover { background: #ad0015; border-color: #ad0015; color: #fff; }
.acc-btn.danger { background: #fff; border-color: #d9534f; color: #d9534f; }
.acc-btn.danger:hover { background: #d9534f; border-color: #d9534f; color: #fff; }
.acc-btn.sm { padding: 7px 13px; font-size: 13px; }
.acc-logout-btn { display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid #c4ccd3; border-radius: 6px;
  color: #1a1a1a; background: #fff; text-decoration: none !important;
  font-size: 14px; font-weight: 600; transition: all .15s; white-space: nowrap; }
.acc-logout-btn:hover { background: #f7f9fb; border-color: #d8001b; color: #d8001b; }

/* ─── Grid kafelków (account/account) ─── */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-tile {
  display: block; background: #fff; border: 1px solid #dde2e7; border-radius: 8px;
  padding: 16px 18px 14px; text-decoration: none !important; color: inherit;
  transition: all .18s ease; position: relative;
}
.acc-tile:hover { border-color: #d8001b; box-shadow: 0 4px 14px rgba(216,0,27,.12); transform: translateY(-2px); }
.acc-tile:hover .acc-arrow { color: #d8001b; }
.acc-tile:hover .acc-icon { background: #d8001b; color: #fff; }
.acc-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #fdecec; color: #d8001b; border-radius: 8px;
  font-size: 18px; margin-bottom: 10px; transition: all .18s ease;
}
.acc-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; line-height: 1.25; }
.acc-sub { font-size: 14px; color: #555; line-height: 1.4; margin-bottom: 10px; }
.acc-arrow { font-size: 13px; color: #444; font-weight: 700; transition: color .15s; }
.acc-arrow i { margin-left: 4px; font-size: 11px; }

/* ─── Karta-panel (dla formularzy i sekcji) ─── */
.acc-panel {
  background: #fff; border: 1px solid #dde2e7; border-radius: 8px;
  margin-bottom: 18px; overflow: hidden;
}
.acc-panel-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #fafcfd, #f3f6f8);
  border-bottom: 1px solid #e5eaef;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: space-between;
}
.acc-panel-head .sub { font-size: 13px; color: #555; font-weight: 400; }
.acc-panel-body { padding: 18px 20px; }
.acc-panel-body.tight { padding: 0; }

/* ─── Formularze ─── */
.acc-form .form-group { margin-bottom: 15px; }
.acc-form label, .acc-form .control-label {
  font-size: 13px; font-weight: 700; color: #1a1a1a;
  display: block; margin-bottom: 6px; text-transform: none; letter-spacing: 0;
}
.acc-form .form-control {
  height: 40px; padding: 8px 12px; font-size: 14px; color: #1a1a1a;
  border: 1px solid #c4ccd3; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.acc-form select.form-control { height: 40px; }
.acc-form textarea.form-control { height: auto; min-height: 80px; }
.acc-form .form-control:focus { border-color: #d8001b; box-shadow: 0 0 0 3px rgba(216,0,27,.15); outline: 0; }
.acc-form .text-danger, .acc-form .help-block { color: #d9534f; font-size: 12.5px; margin-top: 4px; }
.acc-form .required > label::after,
.acc-form .form-group.required .control-label::after { content: ' *'; color: #d9534f; }
.acc-form-actions {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding-top: 8px; border-top: 1px solid #f0f2f5; margin-top: 18px;
}
.acc-form-actions .left { margin-right: auto; }

/* ─── Tabele (zamówienia, zwroty) ─── */
.acc-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; font-size: 14px;
}
.acc-table thead th {
  background: #f5f7fa; padding: 12px 14px; text-align: left;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: #444; border-bottom: 1px solid #e5eaef;
}
.acc-table tbody td { padding: 14px; border-bottom: 1px solid #f0f2f5; color: #1a1a1a; vertical-align: middle; }
.acc-table tbody tr:last-child td { border-bottom: 0; }
.acc-table tbody tr:hover td { background: #fafbfd; }
.acc-table td.num, .acc-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.acc-table .actions { white-space: nowrap; text-align: right; }
.acc-table-empty { padding: 30px; text-align: center; color: #555; font-size: 15px; }

/* ─── Status badge ─── */
.acc-status {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  background: #eef3f8; color: #3a5170;
}
.acc-status.green   { background: #e4f4e8; color: #1d6a30; }
.acc-status.red     { background: #fdecea; color: #a02717; }
.acc-status.orange  { background: #fdf0e2; color: #8a4910; }
.acc-status.blue    { background: #e0f2fa; color: #14668a; }

/* ─── Pagination ─── */
.acc-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; }
.acc-pagination .text-muted { color: #555; font-size: 13px; }
.acc-pagination .pagination { margin: 0; }
.acc-pagination .pagination > li > a,
.acc-pagination .pagination > li > span { color: #1a1a1a; border-color: #dde2e7; }
.acc-pagination .pagination > .active > a,
.acc-pagination .pagination > .active > span { background: #d8001b; border-color: #d8001b; }

/* ─── Lista 2-kolumnowa (klucz/wartość) ─── */
.acc-dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px; margin: 0; }
@media (max-width: 600px) { .acc-dl { grid-template-columns: 1fr; gap: 4px 0; } .acc-dl dt { margin-top: 12px; } }
.acc-dl dt { font-size: 12.5px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .3px; padding-top: 2px; }
.acc-dl dd { margin: 0; font-size: 14px; color: #1a1a1a; }

/* ─── Address card (lista adresów) ─── */
.acc-addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .acc-addr-grid { grid-template-columns: 1fr; } }
.acc-addr-card {
  background: #fff; border: 1px solid #dde2e7; border-radius: 8px;
  padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px;
}
.acc-addr-card.default { border-color: #d8001b; box-shadow: 0 0 0 1px #d8001b inset; }
.acc-addr-card .addr-text { font-size: 14px; line-height: 1.55; color: #1a1a1a; }
.acc-addr-card .addr-text .default-badge { display: inline-block; margin-bottom: 6px; background: #d8001b; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.acc-addr-card .addr-actions { display: flex; flex-direction: column; gap: 6px; }

/* ─── Alerts ─── */
.acc-alert { padding: 12px 16px; border-radius: 6px; border: 1px solid; margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.acc-alert.success { background: #e4f4e8; border-color: #b6dec0; color: #1d6a30; }
.acc-alert.danger  { background: #fdecea; border-color: #f5c2bb; color: #a02717; }
.acc-alert.info    { background: #e0f2fa; border-color: #b3def0; color: #14668a; }
