/* BannerStorefront: list, create and edit. Shared controls retain their theme. */
.bannerstorefront-page .bannerstorefront-form {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
    align-items: start;
    gap: 24px;
}
.bannerstorefront-page .card { min-width: 0; }
.bannerstorefront-page .bannerstorefront-section { padding: 24px; }
.bannerstorefront-page .bannerstorefront-section + .bannerstorefront-section {
    border-top: 1px solid var(--mkp-border);
}
.bannerstorefront-page h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.bannerstorefront-page .bannerstorefront-description {
    color: var(--mkp-muted-foreground);
    margin: 0 0 20px;
    line-height: 1.5;
}
.bannerstorefront-page .bannerstorefront-region { min-width: 0; margin: 0 0 16px; }
.bannerstorefront-page .bannerstorefront-region:last-child { margin-bottom: 0; }
.bannerstorefront-page .bannerstorefront-region legend {
    float: none;
    width: auto;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mkp-muted-foreground);
}
.bannerstorefront-page .bannerstorefront-country-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bannerstorefront-page .bannerstorefront-country-list .form-check {
    display: flex;
    align-items: center;
    min-height: 36px;
    gap: 8px;
    padding-left: 0;
    margin: 0;
}
.bannerstorefront-page .bannerstorefront-country-list .form-check-input { flex-shrink: 0; margin: 0; }
.bannerstorefront-page .bannerstorefront-country-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 36px;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.bannerstorefront-page .bannerstorefront-country-list img { flex-shrink: 0; }
.bannerstorefront-page .bannerstorefront-preview { margin: 0 0 20px; }
.bannerstorefront-page .bannerstorefront-preview figcaption { margin-bottom: 8px; color: var(--mkp-muted-foreground); }
.bannerstorefront-page .bannerstorefront-preview img {
    width: 100%;
    border: 1px solid var(--mkp-border);
    border-radius: var(--mkp-radius-sm);
}
.bannerstorefront-page .bannerstorefront-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
}
.bannerstorefront-page .bannerstorefront-search { width: min(100%, 360px); }
.bannerstorefront-page .bannerstorefront-toolbar p { margin: 0 0 8px; }
.bannerstorefront-page .bannerstorefront-list > .k-grid { border: 0; border-radius: 0 0 var(--mkp-radius-lg) var(--mkp-radius-lg); }
.bannerstorefront-page .bannerstorefront-thumbnail { width: 200px; max-width: 100%; border-radius: 4px; }
.bannerstorefront-page .bannerstorefront-no-image { color: var(--mkp-muted-foreground); }
.bannerstorefront-page .bannerstorefront-empty { padding: 48px 24px; text-align: center; }
.bannerstorefront-page .bannerstorefront-empty > i { display: block; margin-bottom: 12px; font-size: 24px; color: var(--mkp-muted-foreground); }
.bannerstorefront-page .bannerstorefront-empty strong { display: block; font-weight: 600; }
.bannerstorefront-page .bannerstorefront-empty p { margin: 8px 0 0; color: var(--mkp-muted-foreground); }
.bannerstorefront-page .form-text { font-size: 14px; color: var(--mkp-muted-foreground); }
.bannerstorefront-page .bannerstorefront-country-search { margin-bottom: 16px; }
.bannerstorefront-page .bannerstorefront-country-search .form-text { margin-bottom: 0; }
.bannerstorefront-page .bannerstorefront-country-options {
    max-height: 560px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 4px 8px 4px 4px;
    margin-left: -4px;
}
.bannerstorefront-page .bannerstorefront-country-options:focus-visible {
    outline: 2px solid var(--mkp-muted-foreground);
    outline-offset: 3px;
    border-radius: var(--mkp-radius-sm);
}
.bannerstorefront-page .bannerstorefront-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mkp-border);
}
.bannerstorefront-page .k-grid .badge.bannerstorefront-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    background: var(--mkp-muted);
    color: var(--mkp-foreground);
    border: 1px solid var(--mkp-border);
}
.bannerstorefront-page .k-grid .badge.bannerstorefront-status-inactive { background: var(--mkp-surface); color: var(--mkp-muted-foreground); }
.bannerstorefront-page .k-grid .k-grid-header th.k-table-th {
    color: var(--mkp-foreground);
    font-weight: 600;
    background: var(--mkp-muted);
}
.bannerstorefront-page .k-grid .k-grid-header .k-cell-inner { margin: 0; }
.bannerstorefront-page .k-grid .k-grid-header .k-cell-inner > .k-link { padding: 0; min-height: 28px; }
.bannerstorefront-page .k-grid .k-grid-header :is(.k-grid-header-menu, .k-grid-filter) { opacity: 1; }
/* Doka mounts its editor on body, outside the page wrapper. */
body:has(.bannerstorefront-page) .doka--button-action-confirm {
    background-color: var(--mkp-primary);
    color: var(--mkp-on-primary);
}
body:has(.bannerstorefront-page) .doka--button-action-confirm:hover,
body:has(.bannerstorefront-page) .doka--button-action-confirm:focus {
    background-color: var(--mkp-primary-hover);
    color: var(--mkp-on-primary-hover);
}
@media (max-width: 1199.98px) {
    .bannerstorefront-page .bannerstorefront-form { grid-template-columns: minmax(0, 1fr); }
    .bannerstorefront-page .bannerstorefront-country-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .bannerstorefront-page .bannerstorefront-section { padding: 16px; }
    .bannerstorefront-page .bannerstorefront-country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bannerstorefront-page .bannerstorefront-toolbar { padding: 16px; }
    .bannerstorefront-page .bannerstorefront-country-options { max-height: 400px; }
}
