/* Redizajn zákazníckeho účtu (account/*, common/account_nav).
   Načítava sa z kontroléra common/account_nav (addStyle), nie je súčasťou combined.css.
   Farby: akcent preberá z premennej --acc-accent (default zelená tlačidla). */

/* Premenné sú aj na .acc-nav, aby menu fungovalo samostatne (modul module/account v bočnom paneli) */
.acc-nav,
.acc-login {
    --acc-accent: #3c711f;
    --acc-accent-soft: #eef5e9;
    --acc-border: #e2dfd8;
    --acc-soft: #fffbf6;
    --acc-muted: #777;
    --acc-text: #2b2b2b;
}

.acc-layout {
    --acc-accent: #3c711f;
    --acc-accent-soft: #eef5e9;
    --acc-border: #e2dfd8;
    --acc-soft: #fffbf6;
    --acc-muted: #777;
    --acc-text: #2b2b2b;
    --acc-processing: #a15c00;
    --acc-processing-bg: #fff3dc;
    --acc-complete: #2e7d32;
    --acc-complete-bg: #e8f5e9;
    --acc-cancelled: #b3261e;
    --acc-cancelled-bg: #fdecea;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 30px;
}

.acc-layout--solo {
    grid-template-columns: minmax(0, 1fr);
}

.acc-main {
    min-width: 0;
}

.acc-table {
    margin: 0;
}

.acc-table > thead > tr > td {
    border-top: 0;
    border-bottom: 2px solid var(--acc-border);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9a968c;
}

.acc-table > tbody > tr > td {
    vertical-align: middle;
    border-top: 1px solid #f0ede6;
}

.acc-layout .fa {
    fill: currentColor;
    vertical-align: -0.125em;
}

/* ---------- Bočné menu ---------- */
.acc-nav {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    overflow: hidden;
}

.acc-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: var(--acc-soft);
    border-bottom: 1px solid var(--acc-border);
}

.acc-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: var(--acc-accent);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-nav-user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.acc-nav-user-text strong,
.acc-nav-user-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-nav-user-text small {
    color: var(--acc-muted);
}

.acc-nav-list {
    padding: 8px;
}

/* Tlačidlo rozbalenia menu – viditeľné len na mobile/tablete (viď media query nižšie) */
.acc-nav-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: #fff;
    border: 0;
    border-top: 1px solid var(--acc-border);
    border-radius: 0;
    color: var(--acc-text);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.acc-nav-toggle .fa {
    flex: 0 0 18px;
    color: var(--acc-accent);
}

.acc-nav-toggle .acc-nav-toggle-text {
    flex: 1;
    min-width: 0;
}

.acc-nav-toggle .acc-nav-toggle-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--acc-muted);
}

.acc-nav-toggle .acc-nav-toggle-caret {
    flex: 0 0 14px;
    transition: transform .2s ease;
}

.acc-nav.is-open .acc-nav-toggle .acc-nav-toggle-caret {
    transform: rotate(180deg);
}

.acc-nav-heading {
    margin: 14px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a968c;
}

.acc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 0;
    color: var(--acc-text);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.acc-nav-link .fa {
    flex: 0 0 18px;
    font-size: 16px;
    color: #8a8579;
}

.acc-nav-text {
    flex: 1;
    min-width: 0;
}

.acc-nav-link:hover,
.acc-nav-link:focus {
    background: var(--acc-soft);
    color: var(--acc-text);
    text-decoration: none;
}

.acc-nav-link.is-active {
    background: var(--acc-accent-soft);
    color: var(--acc-accent);
    font-weight: 700;
}

.acc-nav-link.is-active .fa {
    color: var(--acc-accent);
}

.acc-nav-badge {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 0;
    background: var(--acc-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.acc-nav-logout {
    margin-top: 10px;
    border-top: 1px solid var(--acc-border);
    border-radius: 0;
    padding-top: 14px;
    color: var(--acc-muted);
}

/* ---------- Spoločné prvky ---------- */
.acc-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    padding: 22px;
    margin-bottom: 20px;
}

.acc-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.acc-card-title .fa {
    color: var(--acc-accent);
}

.acc-card-title .acc-link {
    margin-left: auto;
    font-size: 14px;
    font-weight: 400;
}

.acc-link {
    color: var(--acc-accent);
    text-decoration: none;
}

.acc-link:hover {
    text-decoration: underline;
}

.acc-muted {
    color: var(--acc-muted);
}

.acc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.acc-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acc-alert {
    margin-bottom: 20px;
}

/* Stavový štítok */
.acc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.acc-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: currentColor;
}

.acc-status--processing { color: var(--acc-processing); background: var(--acc-processing-bg); }
.acc-status--complete   { color: var(--acc-complete);   background: var(--acc-complete-bg); }
.acc-status--cancelled  { color: var(--acc-cancelled);  background: var(--acc-cancelled-bg); }

/* Sledovanie stavu: prijatá → spracúva sa → vybavená */
.acc-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.acc-track li {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #9a968c;
}

.acc-track li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--acc-border);
}

.acc-track li.is-done:not(:first-child)::before,
.acc-track li.is-current:not(:first-child)::before {
    background: var(--acc-accent);
}

.acc-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    border-radius: 0;
    border: 3px solid var(--acc-border);
    background: #fff;
    color: #fff;
    font-size: 12px;
}

.acc-track li.is-done .acc-dot {
    background: var(--acc-accent);
    border-color: var(--acc-accent);
}

.acc-track li.is-current .acc-dot {
    border-color: var(--acc-accent);
    box-shadow: 0 0 0 4px var(--acc-accent-soft);
}

.acc-track li.is-current .acc-dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: var(--acc-accent);
}

.acc-track li.is-done .acc-step-label,
.acc-track li.is-current .acc-step-label {
    color: var(--acc-text);
    font-weight: 700;
}

.acc-step-label {
    display: block;
}

.acc-track--compact li {
    font-size: 12px;
}

.acc-track--compact .acc-dot {
    width: 22px;
    height: 22px;
    border-width: 2px;
    margin-bottom: 3px;
}

.acc-track--compact li:not(:first-child)::before {
    top: 10px;
    height: 2px;
}

.acc-track--compact li.is-current .acc-dot::after {
    width: 8px;
    height: 8px;
}

.acc-cancelled-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
    background: var(--acc-cancelled-bg);
    color: var(--acc-cancelled);
    font-size: 14px;
}

/* Miniatúry produktov */
.acc-thumbs {
    display: flex;
    gap: 8px;
}

.acc-thumb {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.acc-thumb img {
    max-width: 100%;
    max-height: 100%;
}

.acc-thumb--more {
    background: var(--acc-soft);
    color: var(--acc-muted);
    font-weight: 700;
    font-size: 14px;
}

.acc-thumb--empty {
    background: var(--acc-soft);
    color: #c9c4b8;
}

/* ---------- Prehľad účtu ---------- */
.acc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    margin-bottom: 20px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    background: linear-gradient(135deg, var(--acc-soft) 0%, var(--acc-accent-soft) 100%);
}

.acc-hero h2 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
}

.acc-hero p {
    margin: 0;
    color: var(--acc-muted);
}

.acc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.acc-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    background: #fff;
    color: var(--acc-text);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.acc-stat:hover {
    border-color: var(--acc-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    color: var(--acc-text);
    text-decoration: none;
}

.acc-stat .fa {
    flex: 0 0 22px;
    font-size: 22px;
    color: var(--acc-accent);
}

.acc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.acc-stat-label {
    display: block;
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-last {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px 24px;
    align-items: center;
}

.acc-last-id {
    font-size: 18px;
    font-weight: 700;
}

.acc-last-track {
    grid-column: 1 / -1;
}

.acc-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.acc-quick a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    color: var(--acc-text);
    text-decoration: none;
}

.acc-quick a:hover {
    border-color: var(--acc-accent);
    background: var(--acc-soft);
    text-decoration: none;
}

.acc-quick .fa {
    color: var(--acc-accent);
}

.acc-empty {
    text-align: center;
    padding: 40px 20px;
}

.acc-empty .fa {
    font-size: 40px;
    color: #cfcabd;
    margin-bottom: 12px;
}

.acc-empty p {
    margin-bottom: 18px;
    color: var(--acc-muted);
}

/* ---------- Zoznam objednávok ---------- */
.acc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.acc-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    background: #fff;
    color: var(--acc-text);
    text-decoration: none;
}

.acc-filter small {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 0;
    background: #f0ede6;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.acc-filter:hover {
    border-color: var(--acc-accent);
    color: var(--acc-text);
    text-decoration: none;
}

.acc-filter.is-active {
    background: var(--acc-accent);
    border-color: var(--acc-accent);
    color: #fff;
}

.acc-filter.is-active small {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.acc-order {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.acc-order:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.acc-order-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 14px 20px;
    background: var(--acc-soft);
    border-bottom: 1px solid var(--acc-border);
}

.acc-order-id {
    font-size: 17px;
    font-weight: 700;
    color: var(--acc-text);
}

.acc-order-date {
    color: var(--acc-muted);
}

.acc-order-top .acc-status {
    margin-left: auto;
}

.acc-order-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
    gap: 18px 28px;
    align-items: center;
    padding: 18px 20px;
}

.acc-order-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.acc-order-meta {
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-order-meta span + span::before {
    content: "·";
    margin: 0 6px;
}

.acc-order-price {
    text-align: right;
}

.acc-order-price strong {
    display: block;
    font-size: 20px;
}

.acc-order-price small {
    color: var(--acc-muted);
}

.acc-order-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-order-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* ---------- Detail objednávky ---------- */
.acc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.acc-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.acc-detail-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.acc-detail-head .acc-status {
    margin-left: 4px;
}

.acc-detail-head .acc-detail-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acc-detail-head .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acc-detail-track {
    margin-top: 24px;
}

.acc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.acc-grid-2 > .acc-card {
    margin-bottom: 0;
}

.acc-grid-2 {
    margin-bottom: 20px;
}

.acc-facts {
    margin: 0;
}

.acc-facts dt {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9a968c;
}

.acc-facts dt:first-child {
    margin-top: 0;
}

.acc-facts dd {
    margin: 2px 0 0;
}

.acc-address-text {
    line-height: 1.6;
}

.acc-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acc-line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    gap: 14px 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0ede6;
}

.acc-line:last-child {
    border-bottom: 0;
}

.acc-line-img {
    width: 64px;
    height: 64px;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.acc-line-img img {
    max-width: 100%;
    max-height: 100%;
}

.acc-line-name {
    font-weight: 700;
    color: var(--acc-text);
}

.acc-line-sub {
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-line-qty {
    color: var(--acc-muted);
    white-space: nowrap;
}

.acc-line-total {
    min-width: 90px;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.acc-line-actions {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acc-line-actions .btn {
    padding: 4px 12px;
    font-size: 13px;
    line-height: 20px;
}

.acc-totals {
    margin: 16px 0 0 auto;
    max-width: 360px;
}

.acc-totals div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
}

.acc-totals div:last-child {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid var(--acc-text);
    font-size: 20px;
    font-weight: 700;
}

.acc-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 4px;
}

.acc-timeline li {
    position: relative;
    padding: 0 0 20px 28px;
}

.acc-timeline li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: 3px solid var(--acc-border);
    background: #fff;
}

.acc-timeline li::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: var(--acc-border);
}

.acc-timeline li:last-child {
    padding-bottom: 0;
}

.acc-timeline li:last-child::after {
    display: none;
}

.acc-timeline li.is-latest::before {
    border-color: var(--acc-accent);
    background: var(--acc-accent);
}

.acc-timeline strong {
    display: block;
}

.acc-timeline time {
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-timeline p {
    margin: 6px 0 0;
    padding: 8px 12px;
    border-radius: 0;
    background: var(--acc-soft);
    font-size: 14px;
}

/* ---------- Formuláre (údaje, heslo, adresy, newsletter) ---------- */
.acc-form .form-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acc-form [class*="col-sm-"] {
    float: none;
    width: 100%;
    padding: 0;
}

.acc-form .control-label {
    padding: 0;
    text-align: left;
    font-weight: 600;
}

.acc-form .form-control {
    height: 44px;
    border-radius: 0;
    border: 1px solid #d6d2c7;
    box-shadow: none;
}

.acc-form textarea.form-control {
    height: auto;
}

.acc-form .form-control:focus {
    border-color: var(--acc-accent);
    box-shadow: 0 0 0 3px var(--acc-accent-soft);
}

.acc-form .text-danger {
    font-size: 13px;
}

.acc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.acc-fields .acc-full,
.acc-fields .custom-field,
.acc-fields .is_company {
    grid-column: 1 / -1;
}

.acc-fields .is_company {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.acc-fields .is_company label {
    margin: 0;
    padding: 10px 16px 10px 36px;
    border: 1px solid #d6d2c7;
    border-radius: 0;
    cursor: pointer;
}

.acc-fields .is_company label:hover {
    background: var(--acc-soft);
}

.acc-fields .is_company .radio-inline input {
    margin-left: -22px;
}

.acc-form .is_company_hiding {
    grid-column: 1 / -1;
}

.acc-form .is_company_hiding .acc-fields {
    margin-top: 0;
}

.acc-radio-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.acc-radio-cards .radio-inline {
    margin: 0;
    padding: 10px 16px 10px 36px;
    border: 1px solid #d6d2c7;
    border-radius: 0;
}

.acc-radio-cards .radio-inline input {
    margin-left: -22px;
}

.acc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.acc-form-actions .btn {
    min-width: 140px;
}

.acc-hint {
    margin: -6px 0 18px;
    color: var(--acc-muted);
}

/* Adresár */
.acc-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.acc-address {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 0;
    padding: 20px;
}

.acc-address-body {
    flex: 1;
    line-height: 1.6;
    margin-bottom: 16px;
}

.acc-address-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f0ede6;
}

.acc-address-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acc-address-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    padding: 20px;
    border: 2px dashed #d6d2c7;
    border-radius: 0;
    color: var(--acc-accent);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.acc-address-add:hover {
    border-color: var(--acc-accent);
    background: var(--acc-accent-soft);
    text-decoration: none;
    color: var(--acc-accent);
}

.acc-address-add .fa {
    font-size: 26px;
}

.acc-address-add small {
    color: var(--acc-muted);
    font-weight: 400;
}

/* Menu v bočnom paneli (modul) – fa ikony potrebujú rozmer aj mimo .acc-layout */
.acc-nav .fa {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.acc-nav-user-text small {
    white-space: normal;
}

/* ---------- Návody k produktom ---------- */
.acc-card-sub {
    font-size: 14px;
    font-weight: 400;
}

.acc-tut-product {
    padding: 14px 0;
    border-bottom: 1px solid #f0ede6;
}

.acc-tut-product:last-child {
    border-bottom: 0;
}

.acc-tut-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.acc-tut-list {
    list-style: none;
    margin: 0 0 0 78px;
    padding: 0;
}

.acc-tut-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--acc-soft);
    border: 1px solid var(--acc-border);
}

.acc-tut-icon {
    flex: 0 0 18px;
    color: var(--acc-accent);
}

.acc-tut-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.acc-tut-flag {
    height: 14px;
    width: auto;
}

.acc-tut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acc-tut-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
}

/* ---------- Porovnanie produktov ---------- */
.acc-compare .comparer-input {
    max-width: 560px;
    margin: 0 auto 20px;
}

/* Ikona lupy: odsadená zľava a vycentrovaná zvislo (pôvodne nalepená v ľavom hornom rohu) */
.acc-compare .comparer-input:before {
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    padding: 0;
    margin-top: -8px;
    pointer-events: none;
    z-index: 1;
}

.acc-compare .comparer-input input {
    height: 44px;
    padding-left: 42px;
}

.acc-compare .table-responsive {
    margin: 0;
    border: 0;
}

.acc-compare table.table-compare {
    margin: 0;
    border: 1px solid var(--acc-border);
}

/* Kompaktnejšie bunky = viac produktov vedľa seba */
.acc-compare table.table-compare th,
.acc-compare table.table-compare td {
    padding: 8px 10px;
    border-color: #f0ede6;
    vertical-align: middle;
}

.acc-compare table.table-compare td:first-child,
.acc-compare table.table-compare th:first-child {
    max-width: 120px;
    min-width: 90px;
}

/* Tlačidlo odstránenia je vnútri hlavičky stĺpca (nie nad tabuľkou), aby ho
   table-responsive neorezalo; na dotykových zariadeniach je vždy viditeľné. */
.acc-compare table.table-compare th.th-relative {
    padding: 8px 30px;
}

.acc-compare .btn-in-center-top-hover {
    top: 4px;
    right: 4px;
    left: auto;
    transform: none;
    padding: 2px 6px;
}

@media (hover: none) {
    .acc-compare .btn-in-center-top-hover {
        opacity: 1;
        visibility: visible;
    }
}

.acc-compare table.table-compare thead th {
    background: var(--acc-soft);
    border-bottom: 2px solid var(--acc-border);
    font-weight: 700;
}

.acc-compare table.table-compare td:first-child,
.acc-compare table.table-compare th:first-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9a968c;
    background: #fff;
}

.acc-compare table.table-compare .hovered-col {
    background: var(--acc-soft);
}

.acc-compare .same-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.acc-compare .comparer-search-products,
.acc-compare .comparer-input-search {
    border: 1px solid var(--acc-border);
}

/* ---------- Prihlásenie ---------- */
.acc-login {
    margin-bottom: 0;
}

.acc-login .fa {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.acc-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.acc-login-grid > .acc-card {
    margin-bottom: 0;
}

.acc-login-main {
    padding: 32px;
}

.acc-login-main .acc-hint {
    margin-top: 0;
}

.acc-login-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.acc-login-label .acc-link {
    font-weight: 400;
    font-size: 14px;
}

.acc-login-submit {
    margin-top: 22px;
    height: 48px;
}

.acc-login-register {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--acc-soft);
}

.acc-login-eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a968c;
}

.acc-benefits {
    list-style: none;
    margin: 4px 0 20px;
    padding: 0;
    flex: 1;
}

.acc-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.acc-benefits .fa {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 8px;
    background: var(--acc-accent-soft);
    color: var(--acc-accent);
}

.acc-benefits span {
    padding-top: 5px;
}

.acc-login-register .btn {
    margin-top: 6px;
}

/* S menu vľavo je pre dva stĺpce karát miesta až na širokých obrazovkách */
@media (max-width: 1199px) {
    .acc-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .acc-login-grid {
        grid-template-columns: 1fr;
    }

    .acc-login-main,
    .acc-login-register {
        padding: 20px;
    }
}

/* ---------- Reklamácie a vrátenie ---------- */
.acc-actions--top {
    justify-content: flex-end;
    margin: 0 0 16px;
}

.acc-order-body--return {
    grid-template-columns: minmax(0, 1fr) auto;
}

.acc-return-items {
    font-weight: 700;
}

.acc-facts--row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    margin-top: 20px;
}

.acc-facts--row dt {
    margin-top: 0;
}

.acc-line--return {
    grid-template-columns: 64px minmax(0, 1fr) auto;
}

/* ---------- Responzívne ---------- */
@media (max-width: 991px) {
    .acc-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .acc-nav {
        position: static;
        border-radius: 0;
    }

    /* Mobil/tablet: menu je zbalené pod hlavičkou s tlačidlom "aktuálna stránka ▾",
       po kliknutí sa rozbalí ako prehľadná mriežka odkazov rozdelená do sekcií. */
    .acc-nav-user {
        padding: 12px 16px;
    }

    .acc-nav-toggle {
        display: flex;
    }

    .acc-nav-list {
        display: none;
        padding: 10px;
        border-top: 1px solid var(--acc-border);
    }

    .acc-nav.is-open .acc-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .acc-nav-heading {
        grid-column: 1 / -1;
        margin: 10px 2px 2px;
    }

    .acc-nav-heading:first-child {
        margin-top: 0;
    }

    .acc-nav-link {
        padding: 11px 12px;
        border: 1px solid var(--acc-border);
        border-radius: 0;
    }

    .acc-nav-link.is-active {
        border-color: var(--acc-accent);
    }

    .acc-nav-logout {
        grid-column: 1 / -1;
        margin-top: 6px;
        padding-top: 11px;
        justify-content: center;
        border-radius: 0;
    }

    .acc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acc-order-body {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .acc-order-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 479px) {
    .acc-nav.is-open .acc-nav-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .acc-card {
        padding: 16px;
    }

    .acc-hero {
        padding: 18px;
    }

    .acc-hero h2 {
        font-size: 21px;
    }

    .acc-fields,
    .acc-grid-2,
    .acc-addresses,
    .acc-quick {
        grid-template-columns: 1fr;
    }

    .acc-last {
        grid-template-columns: 1fr;
    }

    .acc-order-top .acc-status {
        margin-left: 0;
    }

    .acc-order-body {
        grid-template-columns: 1fr;
    }

    .acc-order-price {
        text-align: left;
    }

    .acc-order-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .acc-order-buttons .btn {
        flex: 1;
    }

    .acc-detail-head .acc-detail-buttons {
        margin-left: 0;
        width: 100%;
    }

    .acc-line {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .acc-line-img {
        width: 56px;
        height: 56px;
    }

    .acc-line-qty,
    .acc-line-total {
        grid-column: 2;
        text-align: left;
    }

    .acc-line-qty {
        margin-top: -8px;
    }

    .acc-line-actions {
        grid-column: 1 / -1;
    }

    .acc-totals {
        max-width: none;
    }

    .acc-tut-list {
        margin-left: 0;
    }

    .acc-tut-list li {
        flex-wrap: wrap;
    }

    .acc-tut-title {
        flex: 1 1 calc(100% - 60px);
    }

    .acc-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .acc-form-actions .btn {
        width: 100%;
    }
}
