/* ── Archive Courses ──────────────────────────────────────────────────────── */

.archive-courses {
    padding: 48px 0 96px;
    background: var(--wp--preset--color--white, #fff);
}

/* ── Top bar (search + mobile filter btn) ─────────────────────────────────── */

.ac-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ac-search-wrap {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.ac-search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 24px;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ac-search-input::placeholder {
    color: var(--wp--preset--color--neutral-300);
}

.ac-search-input:focus {
    border-color: var(--wp--preset--color--purple-500);
}

.ac-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--neutral-300);
    pointer-events: none;
}

.ac-mobile-filter-row {
    display: none;
}

.ac-mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s;
}

.ac-mobile-filter-btn--active {
    border-color: var(--wp--preset--color--black);
    font-weight: 600;
}

.ac-mobile-filter-btn:hover {
    border-color: var(--wp--preset--color--purple-500);
}

.ac-mobile-clear-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    padding: 11px 0;
    transition: color 0.15s;
    width: 100%;
    justify-content: flex-end;
}

.ac-mobile-clear-btn:hover {
    color: var(--wp--preset--color--purple-500);
}

/* ── Toolbar (quick tags + view toggle) ───────────────────────────────────── */

.ac-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ac-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ac-quick-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--wp--preset--color--dark);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ac-quick-tag:hover {
    background: #f4f4f6;
}

.ac-quick-tag-x {
    display: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.ac-quick-tag--active {
    background: var(--wp--preset--color--dark);
    border-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

.ac-quick-tag--active:hover {
    background: var(--wp--preset--color--black);
    border-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.ac-quick-tag--active .ac-quick-tag-x {
    display: block;
}

.ac-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ac-sidebar-clear {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--wp--preset--color--white);
    padding-bottom: 8px;
}

.ac-sidebar-clear--hidden {
    display: none;
}

.ac-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    padding: 11px 0;
    transition: color 0.15s;
}

.ac-clear-btn:hover {
    color: var(--wp--preset--color--purple-500);
}

/* ── Export button ────────────────────────────────────────────────────────── */

.ac-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
    border-radius: 4px;
}

.ac-export-btn:hover {
    color: var(--wp--preset--color--purple-500);
}

.ac-export-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.ac-view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ac-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--neutral-300);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ac-view-btn:hover:not(.ac-view-btn--active) {
    background: #f4f4f6;
    border-color: var(--wp--preset--color--neutral-200);
    color: var(--wp--preset--color--black);
}

.ac-view-btn--active {
    border-color: var(--wp--preset--color--dark);
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

/* ── Layout: sidebar + results ────────────────────────────────────────────── */

.ac-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.ac-sidebar {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 44px);
    max-height: calc(100vh - var(--nav-height, 72px) - 44px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wp--preset--color--neutral-200) transparent;
    padding-right: 12px;
}

.ac-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Filter group (accordion) ─────────────────────────────────────────────── */

.ac-filter-group {
    border-bottom: 1px solid var(--wp--preset--color--neutral-200);
}

.ac-filter-group:first-child {
    border-top: 1px solid var(--wp--preset--color--neutral-200);
}

.ac-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.ac-filter-head:hover {
    color: var(--wp--preset--color--purple-500);
}

.ac-filter-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ac-filter-group.is-open .ac-filter-chevron {
    transform: rotate(180deg);
}

.ac-filter-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-filter-group.is-open .ac-filter-body {
    grid-template-rows: 1fr;
}

.ac-filter-body-inner {
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-filter-group.is-open .ac-filter-body-inner {
    padding-bottom: 16px;
}

.ac-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-filter-item--more {
    display: none;
}

.ac-filter-group.show-all .ac-filter-item--more {
    display: block;
}

.ac-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    transition: color 0.15s;
    line-height: 20px;
}

.ac-filter-label:hover {
    color: var(--wp--preset--color--purple-500);
}

.ac-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ac-filter-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--wp--preset--color--neutral-200);
    border-radius: 2px;
    background: var(--wp--preset--color--white);
    transition: border-color 0.15s, background 0.15s;
}

.ac-filter-checkbox:checked+.ac-filter-check {
    border-color: var(--wp--preset--color--purple-500);
    background: var(--wp--preset--color--purple-500);
}

.ac-filter-checkbox:checked+.ac-filter-check::after {
    content: '';
    display: block;
    width: 9px;
    height: 6px;
    border-left: 1.5px solid var(--wp--preset--color--white);
    border-bottom: 1.5px solid var(--wp--preset--color--white);
    transform: rotate(-45deg) translate(1px, -1px);
}

.ac-filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--wp--preset--color--neutral-300);
}

.ac-filter-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 11px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    transition: color 0.15s;
}

.ac-filter-more-btn:hover {
    color: var(--wp--preset--color--purple-500);
}

.ac-filter-more-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ac-filter-more-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ── Radio button inputs ──────────────────────────────────────────────────── */

.ac-filter-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ac-filter-radio-dot {
    display: inline-flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ac-radio-on {
    display: none;
}

.ac-filter-radio:checked+.ac-filter-radio-dot .ac-radio-off {
    display: none;
}

.ac-filter-radio:checked+.ac-filter-radio-dot .ac-radio-on {
    display: block;
}

/* ── Category tree (hierarchical) ────────────────────────────────────────── */

.ac-filter-tree-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    min-height: 28px;
}

.ac-filter-tree-row .ac-filter-label {
    flex: 1;
    min-width: 0;
}

.ac-cat-chevron-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--wp--preset--color--neutral-300);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    margin-top: 2px;
}

.ac-cat-chevron-btn:hover {
    color: var(--wp--preset--color--purple-500);
    background: #f6f5fb;
}

.ac-cat-chevron-btn svg {
    transition: transform 0.2s ease;
}

.ac-cat-chevron-btn.is-open svg {
    transform: rotate(180deg);
}

.ac-filter-subcats {
    list-style: none;
    margin: 4px 0 0;
    padding: 0 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ac-filter-subcats[hidden] {
    display: none;
}

.ac-filter-subcat-item {
    display: block;
}

.ac-filter-item--submore {
    display: none;
}

.ac-filter-subcats.show-all .ac-filter-item--submore {
    display: block;
}

/* ── Results bar right group ─────────────────────────────────────────────── */

.ac-results-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* ── Per-page selector ────────────────────────────────────────────────────── */

.ac-per-page-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-per-page-label {
    font-size: 14px;
    color: var(--wp--preset--color--neutral-300);
    white-space: nowrap;
}

.ac-per-page-group {
    display: flex;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 8px;
    overflow: hidden;
}

.ac-per-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-left: 1px solid var(--wp--preset--color--neutral-200);
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ac-per-page-btn:first-child {
    border-left: none;
}

.ac-per-page-btn--active {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
    font-weight: 700;
}

.ac-per-page-btn:hover:not(.ac-per-page-btn--active) {
    background: #f4f4f6;
    color: var(--wp--preset--color--black);
}

/* ── Tooltip ──────────────────────────────────────────────────────────────── */

.ac-meta-value-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ac-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--wp--preset--color--neutral-200);
    cursor: help;
    outline: none;
}

.ac-tooltip-wrap svg {
    display: block;
}

.ac-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    z-index: 100;
    text-align: left;
}

.ac-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--wp--preset--color--dark);
}

.ac-tooltip-wrap:hover .ac-tooltip,
.ac-tooltip-wrap:focus .ac-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ── "Did you mean" search-correction notice ──────────────────────────────── */

#ac-search-notice:empty {
    display: none;
}

.ac-search-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #faf8ff;
    border: 1px solid var(--wp--preset--color--purple-100, #e0d7f6);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--black);
    line-height: 1.5;
}

.ac-search-notice strong {
    font-weight: 700;
    color: var(--wp--preset--color--purple-500);
}

.ac-search-notice-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 300;
    color: var(--wp--preset--color--purple-500);
    text-decoration: underline;
    cursor: pointer;
}

html[data-theme="dark"] .ac-search-notice {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-search-notice strong,
html[data-theme="dark"] .ac-search-notice-link {
    color: var(--wp--preset--color--yellow, #FFE500);
}

/* ── Results area ─────────────────────────────────────────────────────────── */

.ac-results {}

.ac-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    min-height: 40px;
}

.ac-count {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
}

.ac-count strong {
    color: var(--wp--preset--color--black);
    font-weight: 700;
}

.ac-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-sort-label {
    font-size: 14px;
    color: var(--wp--preset--color--neutral-300);
    white-space: nowrap;
}

.ac-sort-select {
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23747481' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* ── Cards grid ───────────────────────────────────────────────────────────── */

.ac-grid {
    display: grid;
    gap: 32px;
}

.ac-grid[data-view="grid"] {
    grid-template-columns: repeat(3, 1fr);
}

.ac-grid[data-view="lista"] {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ── Card base ────────────────────────────────────────────────────────────── */

.ac-card {
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--purple-100);
    border-radius: 4px;
    box-shadow: 2px 2px 8px 0px rgba(26, 26, 37, 0.10);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

/* ── Card: grid variant ───────────────────────────────────────────────────── */

.ac-card--grid {
    position: relative;
    padding-top: 6px;
    transition: box-shadow 0.25s ease;
}

/* gradient border-top via ::before — background-position animuje się płynnie, w przeciwieństwie do background */
.ac-card--grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, var(--wp--preset--color--pink-500) 0%, var(--wp--preset--color--purple-500) 50%, var(--wp--preset--color--purple-500) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.ac-card--grid:hover::before {
    background-position: 0% 0;
}

/* gradient background via ::after — opacity animates smoothly */
.ac-card--grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(156, 105, 224, 0.06) 0%, rgba(36, 3, 81, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.ac-card--grid:hover::after {
    opacity: 1;
}

.ac-card--grid:hover {
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.15);
}

.ac-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.ac-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

.ac-card-footer {
    padding: 24px 32px;
    border-top: 1px solid #dfdfdf;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Arrow CTA list — absolute, no layout shift */

.ac-card-list-cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.ac-card--list:hover .ac-card-list-cta {
    opacity: 1;
    pointer-events: auto;
}

.ac-card-list-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--wp--preset--color--purple-500);
    color: var(--wp--preset--color--white);
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

/* Arrow CTA grid — absolute, no layout shift */

.ac-card-cta {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ac-card--grid:hover .ac-card-cta {
    opacity: 1;
    pointer-events: auto;
}

.ac-card-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--wp--preset--color--purple-500);
    color: var(--wp--preset--color--white);
    border-radius: 4px 0 0 0;
    flex-shrink: 0;
}

/* ── Card: list variant ───────────────────────────────────────────────────── */

.ac-card--list {
    position: relative;
    border-top: none;
    border-left: none;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}

/* gradient left border via ::before */
.ac-card--list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    bottom: 0;
    background: linear-gradient(180deg, var(--wp--preset--color--pink-500) 0%, var(--wp--preset--color--purple-500) 50%, var(--wp--preset--color--purple-500) 100%);
    background-size: 100% 200%;
    background-position: 0 100%;
    transition: background-position 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.ac-card--list:hover::before {
    background-position: 0 0%;
}

/* gradient background via ::after */
.ac-card--list::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(156, 105, 224, 0.04) 0%, rgba(36, 3, 81, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.ac-card--list:hover::after {
    opacity: 1;
}

.ac-card--list:hover {
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.15);
}

.ac-card-list-row {
    display: flex;
    /* flex-start (not center): with align-items:center, cards whose left
       column has no tag badges are shorter, so the whole row shrinks and the
       right-hand price block visually lands at a different height card to
       card. Anchoring everything to the top keeps the price block starting
       at the same offset (the row's fixed top padding) on every card. */
    align-items: flex-start;
    gap: 32px;
    padding: 24px 32px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.ac-card-list-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: center;
}

.ac-card-list-left .ac-card-title {
    font-size: 18px;
}

.ac-card-list-left .ac-card-badges-slot {
    min-height: 22px;
}

.ac-card-list-meta {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
    align-self: center;
}

.ac-card-list-divider {
    width: 1px;
    height: 64px;
    background: var(--wp--preset--color--neutral-200);
    flex-shrink: 0;
    align-self: center;
}

.ac-card-list-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 260px;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.ac-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-width: 1px;
    text-transform: uppercase;
}

.ac-badge span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.ac-badge--hot {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid var(--wp--preset--color--pink-light);
    color: var(--wp--preset--color--pink);
}

.ac-badge--hot span {
    background: var(--wp--preset--color--pink);
}

.ac-badge--new {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid #e0d7f6;
    color: var(--wp--preset--color--purple);
}

.ac-badge--new span {
    background: var(--wp--preset--color--purple);
}

.ac-badge--dynamic {
    border: 1px solid transparent;
    font-weight: 700;
}

.ac-badge--dynamic span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ac-badge--tag {
    background: rgba(26, 26, 37, 0.05);
    border: 1px solid var(--wp--preset--color--neutral-200);
    color: var(--wp--preset--color--dark);
}

.ac-badge--tag span {
    background: var(--wp--preset--color--neutral-300);
}

.ac-badge--pink {
    background: rgba(223, 0, 110, 0.06);
    border: 1px solid rgba(223, 0, 110, 0.25);
    color: var(--wp--preset--color--pink-500);
}

.ac-badge--pink span {
    background: var(--wp--preset--color--pink-500);
}

.ac-badge--promo {
    background: #ddf1e7;
    border: 1px solid #bfe3cf;
    color: #098257;
    gap: 4px;
}

.ac-badge--promo svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Card content ─────────────────────────────────────────────────────────── */

.ac-card-cat {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: var(--wp--preset--color--neutral-300);
}

.ac-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--wp--preset--color--black);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card series (cykl szkolenia) ────────────────────────────────────────── */

.ac-card-series {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px 20px;
    font-size: 12px;
    font-weight: 400;
    color: var(--wp--preset--color--purple-500);
    line-height: 16px;
}

.ac-card-series svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--wp--preset--color--neutral-300);
    transition: color 0.3s ease;
}

.ac-card:hover .ac-card-series svg {
    color: var(--wp--preset--color--purple-500);
}

/* ── Card meta ────────────────────────────────────────────────────────────── */

.ac-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ac-card-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-300);
    line-height: 20px;
}

.ac-meta-label svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--wp--preset--color--neutral-300);
}

.ac-meta-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    line-height: 20px;
}

/* ── Card footer ──────────────────────────────────────────────────────────── */

.ac-card-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ac-card-type {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    letter-spacing: 0.02em;
}

.ac-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ac-price-netto {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    line-height: 24px;
}

.ac-price-netto strong {
    font-size: 18px;
    font-weight: 700;
}

.ac-price-old {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    text-decoration: line-through;
    text-decoration-skip-ink: none;
    font-style: normal;
}

.ac-price-brutto {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    line-height: 20px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.ac-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ac-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ac-page-btn:hover:not(:disabled) {
    border-color: var(--wp--preset--color--purple-500);
    color: var(--wp--preset--color--purple-500);
}

.ac-page-btn--active {
    border-color: var(--wp--preset--color--purple-500);
    background: var(--wp--preset--color--purple-500);
    color: var(--wp--preset--color--white);
    font-weight: 700;
}

.ac-page-btn--disabled,
.ac-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.ac-page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    font-size: 14px;
    color: var(--wp--preset--color--neutral-300);
}

.ac-page-prev,
.ac-page-next {
    padding: 0;
}

/* ── No results ───────────────────────────────────────────────────────────── */

.ac-no-results {
    grid-column: 1 / -1;
    padding: 64px 0;
    text-align: center;
    font-size: 16px;
    color: var(--wp--preset--color--neutral-300);
}

/* ── Export modal ─────────────────────────────────────────────────────────── */

.ac-export-modal-inner {
    max-width: 560px !important;
    padding: 40px !important;
    text-align: center;
}

.ac-export-modal-inner .aob-modal-head {
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.ac-export-modal-text {
    margin: 0 0 32px;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.80);
}

.ac-export-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ac-export-btn-confirm {
    background: var(--wp--preset--color--yellow);
    border-color: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--dark);
}

.ac-export-btn-confirm:hover {
    background: #f0d800;
    border-color: #f0d800;
    color: var(--wp--preset--color--dark);
}

/* ── Loader ───────────────────────────────────────────────────────────────── */

.ac-results {
    position: relative;
}

.ac-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(2px);
    border-radius: 4px;
    min-height: 200px;
    pointer-events: none;
}

.archive-courses.ac-loading .ac-loader {
    display: flex;
}

.archive-courses.ac-loading #ac-grid {
    opacity: 0.3;
    transition: opacity 0.2s;
}

@keyframes ac-spin {
    to {
        transform: rotate(360deg);
    }
}

.ac-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--wp--preset--color--purple-100);
    border-top-color: var(--wp--preset--color--purple-500);
    border-radius: 50%;
    animation: ac-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.ac-loader-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--purple-500);
    letter-spacing: 0.02em;
}

/* ── Mobile sidebar overlay ───────────────────────────────────────────────── */

.ac-sidebar-overlay {
    display: flex;
    align-items: stretch;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 37, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ac-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.ac-sidebar-drawer {
    width: 360px;
    max-width: 100%;
    background: var(--wp--preset--color--white);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-sidebar-overlay.is-open .ac-sidebar-drawer {
    transform: translateX(0);
}

.ac-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--wp--preset--color--purple-100);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.ac-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
}

.ac-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.ac-drawer-close:hover {
    background: #f6f5fb;
}

.ac-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
}

.ac-drawer-footer {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid var(--wp--preset--color--purple-100);
}

.ac-drawer-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 1px solid var(--wp--preset--color--dark);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ac-drawer-apply-btn:hover {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

/* ── Drawer slides ────────────────────────────────────────────────────────── */

.ac-drawer-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.ac-drawer-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--white);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ac-drawer-slide--1 {
    transform: translateX(0);
}

.ac-drawer-slide--2 {
    transform: translateX(100%);
}

.ac-drawer-slides[data-slide="2"] .ac-drawer-slide--1 {
    transform: translateX(-40%);
}

.ac-drawer-slides[data-slide="2"] .ac-drawer-slide--2 {
    transform: translateX(0);
}

.ac-drawer-slide-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* ── Filter menu (slide 1) ────────────────────────────────────────────────── */

.ac-filter-menu {
    display: flex;
    flex-direction: column;
}

.ac-drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.ac-drawer-menu-item:hover {
    background: #f6f5fb;
}

.ac-drawer-menu-label {
    flex: 1;
}

.ac-drawer-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wp--preset--color--purple-500);
    flex-shrink: 0;
}

.ac-drawer-menu-item svg {
    flex-shrink: 0;
}

/* ── Quick tags in drawer (TagLargeLight style) ───────────────────────────── */

.ac-drawer-quick-tags-wrap {
    padding: 16px 16px 8px;
    border-top: 1px solid var(--wp--preset--color--purple-100);
    margin-top: 8px;
}

.ac-drawer-quick-tags-wrap .ac-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-drawer-quick-tags-wrap .ac-quick-tag {
    display: inline-flex;
    align-items: center;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--dark);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--black);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    gap: 0;
}

.ac-drawer-quick-tags-wrap .ac-quick-tag .ac-quick-tag-x {
    display: none;
}

.ac-drawer-quick-tags-wrap .ac-quick-tag.ac-quick-tag--active {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--dark);
}

/* ── Drawer slide 2 — filter options ─────────────────────────────────────── */

.ac-drawer-slide-body .ac-filter-list {
    padding: 0 16px;
}

.ac-drawer-slide-body .ac-filter-subcats {
    padding-left: 44px;
}

.ac-drawer-slide-body .ac-filter-more-btn,
.ac-drawer-slide-body .ac-filter-more-btn {
    margin: 4px 16px 0;
}

/* ── Back button in drawer header ────────────────────────────────────────── */

.ac-drawer-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--wp--preset--color--dark);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ac-drawer-back:hover {
    background: #f6f5fb;
}

.ac-drawer-back[hidden] {
    display: none;
}

/* ── Quick tags in mobile drawer ─────────────────────────────────────────── */

.ac-drawer-quick-tags {
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--wp--preset--color--purple-100);
    margin-bottom: 4px;
}

.ac-drawer-quick-tags .ac-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .ac-grid[data-view="grid"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .ac-sidebar {
        display: none;
    }

    .ac-mobile-filter-row {
        display: block;
        width: 100%;
    }

    .ac-mobile-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .ac-mobile-clear-btn {
        display: flex;
    }

    .ac-top-bar {
        position: sticky;
        top: var(--nav-height, 0px);
        z-index: 200;
        background: var(--wp--preset--color--white);
        padding: 12px 0;
        margin: -12px 0 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        flex-wrap: wrap;
    }

    .ac-search-wrap {
        max-width: 100%;
    }

    .ac-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Hide view toggle on mobile — always tiles */
    .ac-view-toggle {
        display: none;
    }

    .ac-per-page-wrap {
        display: none;
    }

    .ac-results-bar {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .ac-grid[data-view="grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ac-grid[data-view="lista"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Force list cards to tile layout on mobile */
    .ac-card--list {
        border-left: none;
        border-top: 6px solid var(--wp--preset--color--purple-500);
        padding-top: 0;
        flex-direction: column;
    }

    .ac-card--list::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 6px;
        background: linear-gradient(90deg, var(--wp--preset--color--pink-500) 0%, var(--wp--preset--color--purple-500) 50%, var(--wp--preset--color--purple-500) 100%);
        background-size: 200% 100%;
        background-position: 100% 0;
    }

    .ac-card--list:hover::before {
        background-position: 0% 0;
    }

    .ac-card-list-row {
        flex-wrap: wrap;
        gap: 16px;
        padding: 24px;
    }

    .ac-card-list-divider {
        display: none;
    }

    .ac-card-list-meta {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ac-pagination {
        justify-content: center;
    }

    .ac-sidebar-overlay {
        display: none;
    }

    .ac-sidebar-overlay.is-open {
        display: flex;
    }
}

@media (max-width: 600px) {
    .archive-courses {
        padding: 32px 0 64px;
    }

    .ac-grid[data-view="grid"],
    .ac-grid[data-view="lista"] {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ac-toolbar .ac-quick-tags {
        display: none;
    }

    .ac-drawer-quick-tags .ac-quick-tags {
        flex-wrap: wrap;
    }

    .ac-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ── Date range filter ──────────────────────────────────────────────────────── */

.ac-date-range-inputs {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.ac-date-range-inputs.is-visible {
    display: flex;
}

.ac-date-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-date-input-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--neutral-300);
    min-width: 16px;
    flex-shrink: 0;
}

.ac-date-input {
    flex: 1;
    height: 32px;
    padding: 0 2px 4px;
    border: none;
    border-bottom: 1px solid var(--wp--preset--color--neutral-200);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--wp--preset--color--dark);
    background: transparent;
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
}

.ac-date-input:focus {
    border-bottom-color: var(--wp--preset--color--purple-500);
}

.ac-date-input::-webkit-date-and-time-value {
    text-align: left;
}

/* ── Dark mode ─────────────────────────────────────────────────────────────── */

html[data-theme="dark"] .archive-courses {
    background: var(--wp--preset--color--black, #1A1A25);
}

/* Top bar */

html[data-theme="dark"] .ac-search-input,
html[data-theme="dark"] .ac-mobile-filter-btn {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, .2);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-search-icon svg path {
    stroke: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-radio-off path {
    fill: rgba(255, 255, 255, .4);
}

html[data-theme="dark"] .ac-radio-on path {
    fill: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .ac-mobile-filter-btn--active {
    border-color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-mobile-clear-btn {
    color: rgba(255, 255, 255, .8);
}

@media (max-width: 991px) {
    html[data-theme="dark"] .ac-top-bar {
        background: var(--wp--preset--color--black, #1A1A25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    }
}

/* Toolbar: quick tags + view toggle */

html[data-theme="dark"] .ac-quick-tag {
    background: transparent;
    border-color: rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-quick-tag:hover {
    background: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .ac-quick-tag--active {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ac-quick-tag--active:hover {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .85);
    color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ac-sidebar-clear {
    background: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .ac-clear-btn,
html[data-theme="dark"] .ac-export-btn {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-view-btn {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-view-btn:hover:not(.ac-view-btn--active) {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .3);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-view-btn--active {
    border-color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

/* Sidebar filters */

html[data-theme="dark"] .ac-filter-group {
    border-bottom-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-filter-group:first-child {
    border-top-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-filter-head {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-filter-label {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-filter-check {
    border-color: rgba(255, 255, 255, .3);
    background: transparent;
}

html[data-theme="dark"] .ac-filter-checkbox:checked + .ac-filter-check {
    border-color: var(--wp--preset--color--yellow, #FFE500);
    background: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .ac-filter-checkbox:checked + .ac-filter-check::after {
    border-left-color: var(--wp--preset--color--dark, #2E2E39);
    border-bottom-color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ac-filter-count {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-filter-more-btn,
html[data-theme="dark"] .ac-drawer-back {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-cat-chevron-btn {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-cat-chevron-btn:hover {
    color: var(--wp--preset--color--white);
    background: rgba(255, 255, 255, .08);
}

/* Per-page selector */

html[data-theme="dark"] .ac-per-page-label,
html[data-theme="dark"] .ac-sort-label {
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-per-page-group {
    border-color: rgba(255, 255, 255, .2);
}

html[data-theme="dark"] .ac-per-page-btn {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-left-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-per-page-btn--active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ac-per-page-btn:hover:not(.ac-per-page-btn--active) {
    background: rgba(255, 255, 255, .08);
    color: var(--wp--preset--color--white);
}

/* Results bar + sort */

html[data-theme="dark"] .ac-count {
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-count strong {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-sort-select {
    background-color: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, .2);
    color: var(--wp--preset--color--white);
}

/* Cards */

html[data-theme="dark"] .ac-card {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-card-footer {
    border-top-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .ac-card-list-divider {
    background: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-card-cat,
html[data-theme="dark"] .ac-meta-label,
html[data-theme="dark"] .ac-meta-label svg,
html[data-theme="dark"] .ac-card-type,
html[data-theme="dark"] .ac-price-old,
html[data-theme="dark"] .ac-price-brutto {
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-card-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-card-series,
html[data-theme="dark"] .ac-card-series svg,
html[data-theme="dark"] .ac-card:hover .ac-card-series svg {
    color: rgba(255, 255, 255, .7);
}

html[data-theme="dark"] .ac-meta-value,
html[data-theme="dark"] .ac-price-netto {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-badge--hot {
    background: rgba(236, 72, 153, .12);
    border-color: rgba(236, 72, 153, .35);
}

html[data-theme="dark"] .ac-badge--new {
    background: rgba(255, 229, 0, .12);
    border-color: rgba(255, 229, 0, .4);
    color: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .ac-badge--new span {
    background: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .ac-badge--tag {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-badge--tag span {
    background: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-badge--promo {
    background: rgba(9, 130, 87, .18);
    border-color: rgba(9, 130, 87, .45);
    color: #4ade80;
}

/* Pagination */

html[data-theme="dark"] .ac-page-btn {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-page-ellipsis {
    color: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-no-results {
    color: rgba(255, 255, 255, .6);
}

/* Loader */

html[data-theme="dark"] .ac-loader {
    background: rgba(26, 26, 37, .85);
}

html[data-theme="dark"] .ac-spinner {
    border-color: rgba(255, 229, 0, .25);
    border-top-color: var(--wp--preset--color--yellow, #FFE500);
}

html[data-theme="dark"] .ac-loader-label {
    color: var(--wp--preset--color--yellow, #FFE500);
}

/* Mobile drawer */

html[data-theme="dark"] .ac-sidebar-drawer,
html[data-theme="dark"] .ac-drawer-slide {
    background: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .ac-drawer-head {
    border-bottom-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-drawer-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-drawer-close {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-drawer-close:hover,
html[data-theme="dark"] .ac-drawer-back:hover,
html[data-theme="dark"] .ac-drawer-menu-item:hover {
    background: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .ac-drawer-footer {
    border-top-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-drawer-apply-btn {
    background: transparent;
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-drawer-apply-btn:hover {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ac-drawer-menu-item {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ac-drawer-menu-item svg path {
    stroke: rgba(255, 255, 255, .5);
}

html[data-theme="dark"] .ac-drawer-quick-tags-wrap,
html[data-theme="dark"] .ac-drawer-quick-tags {
    border-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .ac-drawer-quick-tags-wrap .ac-quick-tag {
    background: transparent;
    border-color: rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .ac-drawer-quick-tags-wrap .ac-quick-tag.ac-quick-tag--active {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

/* Date range filter */

html[data-theme="dark"] .ac-date-input-label {
    color: rgba(255, 255, 255, .6);
}

html[data-theme="dark"] .ac-date-input {
    border-bottom-color: rgba(255, 255, 255, .3);
    color: var(--wp--preset--color--white);
}