/* ============================
   Styl pro stránku Můj účet
   ============================ */

   .account-page {
    margin-top: 40px;
    font-family: 'Poppins', sans-serif;
  }
  
  /* Sekce */
  .account-section {
   margin:0;
  } 
  /* Hlavičky – společný základ */
  .account-card .account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative; /* nutné pro ::after */
  }
  
  .account-card .account-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;   /* odsazení zleva */
    right: 20px;  /* odsazení zprava */
    height: 1px;
    background: currentColor; /* barva podle textu */
  }
  
  
  .account-card .account-header h2 {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
  }
  
  .account-card .account-header i {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  
  /* Ikona úprav vpravo */
  .btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: auto; /* zarovnání doprava */
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
  }
  .btn-edit:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
  }
  
  /* Základní karta */
  .account-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  
  /* Varianta – celý box modrý */
  .account-card-fullblue {
    background: #001B5E;
    color: #fff;
  }
  .account-card-fullblue .account-header {
    /*border-bottom: 1px solid #fff;*/
  }
  .account-card-fullblue .account-header h2,
  .account-card-fullblue .account-header i {
    color: #fff;
  }
  .account-card-fullblue .account-body {
    padding: 16px 20px;
  }
  
  .account-card-fullblue .account-row,
  .account-card-white .account-row,
  .account-card-grey .account-row {
    margin-bottom: 2px;
    font-size: 0.7rem;
  }
  .account-card-fullblue .account-row { color: #fff; }
  .account-card-fullblue .account-row strong { color: #fff; }
  
  /* Varianta – bílý box */
  .account-card-white {
    background: #fff;
    border: #001B5E 2px solid;;
  }
  .account-card-white .account-header {
    /*border-bottom: 1px solid #ddd;*/
    color: #001B5E;
  }
  .account-card-white .account-header h2,
  .account-card-white .account-header i {
    color: #001B5E;
  }
  .account-card-white .account-body {
    padding: 16px 30px;
  }
  
  /* Varianta – šedý box */
  .account-card-grey {
    background: #f4f4f4;
    border: #001B5E 2px solid;
  }
  .account-card-grey .account-header {
    /*border-bottom: 1px solid #cdcfde;*/
    color:  #001B5E;
  }
  .account-card-grey .account-header h2,
  .account-card-grey .account-body {
    padding: 2px;
  }
  
  .btn-zmenit-heslo {
    background: #0149FF;
    color: #fff;
    border: none;
    padding: 5px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 600;
    font-size: 0.8rem;
  }
  
  /* Opravený styl pro tlačítko změnit heslo v modrém boxu */
  .account-table th,
  .account-table td {
    border: 1px solid #001B5E; /* dark blue lines */
    padding: 10px 12px;
    text-align: left;
    font-size: 0.7rem;
  }
  .account-table th {
    background: #001B5E;
    color: #fff;
    font-weight: 600;
  }
  
  /* Upozornění */
  .notifications {
    list-style: none;
    padding: 0;
  }
  .notifications li {
    background: #f8f8f8;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 4px solid #001B5E;
  }
  
  /* Nastavení – tlačítka */
  .settings-buttons {
    display: flex;
    gap: 15px;
  }
  .settings-buttons .btn {
    background: #001B5E;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
  }
  .settings-buttons .btn:hover {
    background: #00318C;
  }
  
  /* Grid layout pro 2 sloupce */
  .account-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 1.1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
  }
  .account-grid .account-section {
    display: flex;
    flex-direction: column;
  }
  .account-grid .account-card,
  .account-grid .account-table {
    flex: 1;
  }
  
  /* ============================
     Responzivita
     ============================ */
  
  /* Tablet a menší: grid na 1 sloupec */
  @media (max-width: 992px) {
    .account-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Mobilní zařízení */
  @media (max-width: 768px) {
    .account-card .account-header {
      flex-direction: row;      /* vždy v řádku */
      align-items: center;      /* zarovnání na střed */
      gap: 10px;
    }
    .btn-edit {
      margin-left: auto;
    }
  }
  
  
  
    /* Obsah – klíč a hodnota pod sebe */
    .account-row strong {
      display: block;
      margin-bottom: 4px;
      min-width: unset;
    }
  
    /* Tabulky – horizontální scroll */
    .account-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  
    /* Nastavení – tlačítka pod sebe */
    .settings-buttons {
      flex-direction: column;
      align-items: stretch;
    }
  
  .heading-icon-size {
    font-size: 20px !important;
  }
  .btn-edit-icon {
    font-size: 20px !important;
    color: #0149FF !important;
  }
  
  
  /* Notifikační řádek */
  .notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
  }
  .notification-row:last-child {
    border-bottom: none;
  }
  
  /* Switch styl */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: background-color 0.3s;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
  }
  .slider .on {
    opacity: 0;
    transition: opacity 0.3s;
  }
  .slider .off {
    opacity: 1;
    transition: opacity 0.3s;
  }
  .slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  .switch input:checked + .slider {
    background-color: #001B5E;
  }
  .switch input:checked + .slider:before {
    transform: translateX(32px);
  }
  .switch input:checked + .slider .on {
    opacity: 1;
  }
  .switch input:checked + .slider .off {
    opacity: 0;
  }
  
  /* Texty */
  .notification-text {
    flex: 1;
  }
  .notification-title {
    font-weight: 600;
    color: #001B5E;
    margin-bottom: 4px;
  }
  .notification-desc {
    font-size: 0.65rem;
    color: #336699;
    line-height: 1.4;
  }
  
  /* Checkboxy */
  /* Checkboxy */
  .notification-options {
    display: flex;
    flex-direction: column; /* pod sebou */
    gap: 10px;
    font-size: 0.9rem;
    padding-right: 20px;
  }
  
  .notification-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  
  /* Větší custom checkbox */
  .notification-options input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #001B5E;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
  }
  
  /* Zaškrtnutý stav */
  .notification-options input[type="checkbox"]:checked {
    background: #001B5E;
    border-color: #001B5E;
  }
  
  /* Hák uvnitř */
  .notification-options input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  
  /* Mobilní verze */
  @media (max-width: 768px) {
    .notification-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .notification-options {
      width: 100%;
      justify-content: flex-start;
    }
  }
  .account-row-separator {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    margin: 4px 0 2px 0;
    width: 100%;
  }
  
  .account-row strong,
  .account-row {
    color: #666 !important;
    font-weight: 400 !important;
  }
  .account-row-value {
    color: #001B5E !important;
    font-weight: 600 !important;
  }
  .account-card-fullblue .account-row-value {
    color: #fff !important;
  }
  
  /* ===== Dodatečná úprava: mobilní zobrazení boxů ===== */
  @media (max-width: 768px) {
    .account-grid {
      grid-template-columns: 1fr !important;
      gap: 18px !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
    .account-section {
      margin-bottom: 0 !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100vw !important;
    }
    .account-card {
      margin-bottom: 18px !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100vw !important;
      box-sizing: border-box !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      border-radius: 10px !important;
      overflow-x: auto !important;
    }
    .account-card .account-header,
    .account-card .account-body {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }
  /* ===== Konec dodatečné úpravy ===== */
  
  /* ===== Dodatečná úprava: mobilní zalomení a řádkování nadpisu Správa adres ===== */
  @media (max-width: 768px) {
    .account-card-grey .account-header h2 {
      font-size: 0.7rem !important;
      font-weight: 600 !important;
      line-height: 1.25 !important;
      white-space: pre-line !important;
      word-break: break-word !important;
      text-align: left !important;
      margin-bottom: 0 !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }
  }
  /* ===== Konec dodatečné úpravy ===== */