/*
 * PidoGame core: tokens, foundation, header, footer, search and shared storefront components.
 * Generated from the 1.8.38 monolith and maintained as an independent module.
 */

:root {
    --pido-page-bg: #f4f6f9;
    --pido-surface: #ffffff;
    --pido-surface-soft: #f3f5f9;
    --pido-surface-strong: #e8ecf3;
    --pido-control-bg: #eef1f7;
    --pido-control-hover: #e2e7f0;
    --pido-text: #181c32;
    --pido-text-muted: #6b7280;
    --pido-border: #e3e7ed;
    --pido-primary: #009ef7;
    --pido-primary-rgb: 0, 158, 247;
    --pido-warning-surface: #fff7e8;
    --pido-warning-border: #efb54a;
    --pido-warning-text: #3d321c;
    --pido-overlay: rgba(10, 15, 25, .58);
    --pido-radius-card: 12px;
    --pido-radius-control: .475rem;
    --pido-shadow: none;
    --pido-header-icon: #41495c;
    --pido-font-family: IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
    --pido-font-size-base: 16px;
    --pido-line-height-base: 1.85;
}

html[data-pido-theme="dark"] {
    color-scheme: dark;
    --pido-page-bg: #0f1218;
    --pido-surface: #181c24;
    --pido-surface-soft: #202631;
    --pido-surface-strong: #29313e;
    --pido-control-bg: #222a36;
    --pido-control-hover: #2d3746;
    --pido-text: #f4f7fb;
    --pido-text-muted: #a6afbd;
    --pido-border: #303845;
    --pido-overlay: rgba(0, 0, 0, .72);
    --pido-header-icon: #ffffff;
    --pido-warning-surface: #2a251a;
    --pido-warning-border: #8a6a2b;
    --pido-warning-text: #f5efe2;
}

/* Foundation */
html,
body {
    background-color: var(--pido-page-bg);
}

body.pido-theme,
body.pido-theme .page,
body.pido-theme .wrapper,
body.pido-theme #kt_content_container {
    color: var(--pido-text);
}

body.pido-theme #kt_content_container,
body.pido-theme #kt_content {
    width: 100%;
    min-width: 0;
}

body.pido-no-sidebar #kt_content_container {
    align-items: stretch !important;
}

body.pido-no-sidebar #kt_content > .d-flex.flex-column.flex-xl-row > .flex-lg-row-fluid {
    width: 100%;
    margin-inline-end: 0 !important;
}

/* One card radius and zero elevation across the public theme. */
body.pido-theme :where(
    .card,
    .card-rounded,
    .modal-content,
    .accordion-item,
    .select2-dropdown,
    .woocommerce form.checkout_coupon,
    .woocommerce form.login,
    .woocommerce form.register,
    .woocommerce table.shop_table,
    .woocommerce-checkout-review-order,
    .pido-footer__card,
    .pido-search-overlay__dialog,
    .plswb-card,
    .related-product-card,
    .wrap-cart-plswb,
    .thankyou-box,
    .pidogame-gallery-item,
    .pido-edit-account-form,
    .avatar-section,
    .pido-notice,
    .custom-orders-table-wrapper,
    .custom-orders-table,
    .order-notes,
    .note-content,
    .fslm-license-keys-table,
    .fslm-license-keys-table tbody tr,
    .woo-wallet-my-wallet-container,
    .woo-wallet-sidebar,
    .woo-wallet-transactions-items li,
    .comment
) {
    border-radius: var(--pido-radius-card) !important;
    box-shadow: none !important;
}

body.pido-theme :where(.shadow, .shadow-sm, .shadow-lg, .hover-elevate-up, .hover-elevate-down) {
    box-shadow: none !important;
}

body.pido-theme :where(.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .rounded-5) {
    border-radius: var(--pido-radius-card) !important;
}

body.pido-theme .rounded-top {
    border-start-start-radius: var(--pido-radius-card) !important;
    border-start-end-radius: var(--pido-radius-card) !important;
}

body.pido-theme .rounded-bottom {
    border-end-start-radius: var(--pido-radius-card) !important;
    border-end-end-radius: var(--pido-radius-card) !important;
}

body.pido-theme .rounded-start {
    border-start-start-radius: var(--pido-radius-card) !important;
    border-end-start-radius: var(--pido-radius-card) !important;
}

body.pido-theme .rounded-end {
    border-start-end-radius: var(--pido-radius-card) !important;
    border-end-end-radius: var(--pido-radius-card) !important;
}

body.pido-theme :where(.hover-elevate-up, .hover-elevate-down):hover {
    transform: none !important;
}

body.pido-theme .card > .card-header:first-child,
body.pido-theme .card > .card-body:first-child,
body.pido-theme .card > :first-child {
    border-start-start-radius: var(--pido-radius-card) !important;
    border-start-end-radius: var(--pido-radius-card) !important;
}

body.pido-theme .card > .card-footer:last-child,
body.pido-theme .card > .card-body:last-child,
body.pido-theme .card > :last-child {
    border-end-start-radius: var(--pido-radius-card) !important;
    border-end-end-radius: var(--pido-radius-card) !important;
}

/* Header actions */
.pido-header-container {
    border-end-start-radius: var(--pido-radius-card) !important;
    border-end-end-radius: var(--pido-radius-card) !important;
    box-shadow: none !important;
}

.pido-header-action {
    border: 0 !important;
    border-radius: var(--pido-radius-control) !important;
    background-color: var(--pido-control-bg) !important;
    color: var(--pido-header-icon) !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease !important;
}

.pido-header-action:hover,
.pido-header-action:focus-visible,
.pido-header-action.show {
    background-color: var(--pido-control-hover) !important;
    color: var(--pido-header-icon) !important;
}

.pido-header-action:focus-visible {
    outline: 2px solid rgba(var(--pido-primary-rgb), .45);
    outline-offset: 2px;
}

.pido-header-action .svg-icon,
.pido-header-action .pido-theme-toggle__icon,
.pido-header-action svg {
    color: inherit !important;
}

.pido-header-action svg path[fill]:not([fill="none"]):not(.permanent),
.pido-header-action svg rect[fill]:not([fill="none"]):not(.permanent),
.pido-header-action svg circle[fill]:not([fill="none"]):not(.permanent) {
    fill: currentColor !important;
}

.pido-header-action svg path[stroke]:not([stroke="none"]),
.pido-header-action svg circle[stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.pido-theme-toggle__icon,
.pido-theme-toggle__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.pido-theme-toggle__icon--sun {
    display: none;
}

html[data-pido-theme="dark"] .pido-theme-toggle__icon--moon {
    display: none;
}

html[data-pido-theme="dark"] .pido-theme-toggle__icon--sun {
    display: block;
}

/* Search overlay */
.pido-search-overlay[hidden] {
    display: none !important;
}

.pido-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: start center;
    padding: clamp(80px, 12vh, 150px) 18px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.pido-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.pido-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--pido-overlay);
    backdrop-filter: blur(7px);
    cursor: default;
}

.pido-search-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--pido-border);
    background: var(--pido-surface);
    color: var(--pido-text);
    transform: translateY(-12px) scale(.985);
    transition: transform .18s ease;
}

.pido-search-overlay.is-open .pido-search-overlay__dialog {
    transform: translateY(0) scale(1);
}

.pido-search-overlay__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.pido-search-overlay__title {
    margin: 0 0 7px;
    color: var(--pido-text);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-search-overlay__subtitle {
    margin: 0;
    color: var(--pido-text-muted);
    font-size: .92rem;
    line-height: 1.9;
}

.pido-search-overlay__close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text);
    box-shadow: none;
}

.pido-search-overlay__close:focus-visible {
    outline: 2px solid rgba(var(--pido-primary-rgb), .45);
    outline-offset: 2px;
}

.pido-search-overlay__close svg {
    width: 18px;
    height: 18px;
}

.pido-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.pido-search-form__icon {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    color: var(--pido-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.pido-search-form__icon svg {
    width: 100%;
    height: 100%;
}

.pido-search-form input[type="search"] {
    width: 100%;
    min-height: 54px;
    padding: 0 52px 0 18px;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    outline: 0;
    background: var(--pido-surface-soft);
    color: var(--pido-text);
    font: inherit;
    box-shadow: none;
}

.pido-search-form input[type="search"]:focus {
    border-color: var(--pido-primary);
    outline: 3px solid rgba(var(--pido-primary-rgb), .13);
    outline-offset: 1px;
}

.pido-search-form__submit {
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--pido-radius-card);
    background: var(--pido-primary);
    color: #fff;
    font: inherit;
    font-weight: var(--pido-font-weight-bold, 700);
    box-shadow: none;
}

body.pido-search-is-open {
    overflow: hidden;
}

/* Footer */
.pido-footer {
    margin-top: clamp(32px, 5vw, 64px);
    padding: 0 0 clamp(20px, 3vw, 36px);
}

.pido-footer__card {
    overflow: hidden;
    border: 1px solid var(--pido-border);
    background: var(--pido-surface);
    color: var(--pido-text);
}

.pido-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, .7fr) minmax(220px, .9fr);
    gap: clamp(24px, 4vw, 52px);
    padding: clamp(26px, 4vw, 46px);
}

.pido-footer__about {
    min-width: 0;
}

.pido-footer__title {
    margin: 0 0 14px;
    color: var(--pido-text);
    font-size: .975rem;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-footer__description,
.pido-footer__description p {
    color: var(--pido-text-muted);
    font-size: .93rem;
    line-height: 2;
}

.pido-footer__description p:last-child {
    margin-bottom: 0;
}

.pido-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pido-footer__social {
    --pido-social-brand: var(--pido-primary);
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface-soft);
    color: var(--pido-text);
    box-shadow: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.pido-footer__social--telegram { --pido-social-brand: #229ed9; }
.pido-footer__social--instagram { --pido-social-brand: #e4405f; }
.pido-footer__social--youtube { --pido-social-brand: #ff0000; }
.pido-footer__social--x { --pido-social-brand: #111111; }
.pido-footer__social--discord { --pido-social-brand: #5865f2; }
.pido-footer__social--aparat { --pido-social-brand: #ed145b; }

.pido-footer__social:hover,
.pido-footer__social:focus-visible {
    border-color: var(--pido-social-brand);
    background: var(--pido-social-brand);
    color: #fff;
    transform: translateY(-2px);
}

.pido-footer__social:focus-visible {
    outline: 2px solid var(--pido-social-brand);
    outline-offset: 2px;
}

.pido-footer__social svg {
    width: 22px;
    height: 22px;
}

.pido-footer__trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pido-footer__trust-badge {
    display: inline-grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: #fff;
    box-shadow: none;
}

.pido-footer__trust-badge > a,
.pido-footer__trust-badge > span,
.pido-footer__trust-badge > div {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.pido-footer__trust-badge img,
.pido-footer__trust-badge--html img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain;
}

.pido-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(26px, 4vw, 46px);
    border-top: 1px solid var(--pido-border);
    background: var(--pido-surface-soft);
}

.pido-footer__copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--pido-text-muted);
    font-size: .86rem;
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pido-footer-menu a {
    color: var(--pido-text-muted) !important;
    font-size: .86rem;
    font-weight: var(--pido-font-weight-semibold, 600);
    text-decoration: none;
}

.pido-footer-menu a:hover,
.pido-footer-menu a:focus-visible {
    color: var(--pido-primary) !important;
}

/* Dark mode compatibility layer for legacy components. */
html[data-pido-theme="dark"] body,
html[data-pido-theme="dark"] body.page-bg,
html[data-pido-theme="dark"] .page,
html[data-pido-theme="dark"] .wrapper {
    background-color: var(--pido-page-bg) !important;
}

html[data-pido-theme="dark"] #kt_header .header-container,
html[data-pido-theme="dark"] .card,
html[data-pido-theme="dark"] .card-header,
html[data-pido-theme="dark"] .card-body,
html[data-pido-theme="dark"] .card-footer,
html[data-pido-theme="dark"] .menu-sub,
html[data-pido-theme="dark"] .modal-content,
html[data-pido-theme="dark"] .dropdown-menu,
html[data-pido-theme="dark"] .offcanvas,
html[data-pido-theme="dark"] .accordion-item,
html[data-pido-theme="dark"] .accordion-button,
html[data-pido-theme="dark"] .table,
html[data-pido-theme="dark"] .woocommerce table.shop_table,
html[data-pido-theme="dark"] .woocommerce-checkout-review-order,
html[data-pido-theme="dark"] .woocommerce form.checkout_coupon,
html[data-pido-theme="dark"] .woocommerce form.login,
html[data-pido-theme="dark"] .woocommerce form.register,
html[data-pido-theme="dark"] .select2-dropdown,
html[data-pido-theme="dark"] .select2-container--default .select2-selection--single,
html[data-pido-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-pido-theme="dark"] .thankyou-box,
html[data-pido-theme="dark"] .pido-edit-account-form,
html[data-pido-theme="dark"] .custom-orders-table-wrapper,
html[data-pido-theme="dark"] .custom-orders-table,
html[data-pido-theme="dark"] .order-notes,
html[data-pido-theme="dark"] .note-content,
html[data-pido-theme="dark"] .fslm-license-keys-table,
html[data-pido-theme="dark"] .fslm-license-keys-table tbody tr,
html[data-pido-theme="dark"] .woo-wallet-my-wallet-container,
html[data-pido-theme="dark"] .woo-wallet-sidebar,
html[data-pido-theme="dark"] .woo-wallet-transactions-items li,
html[data-pido-theme="dark"] .comment {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] :where(
    .bg-white,
    .bg-light,
    .bg-secondary,
    .bg-body,
    .form-control-solid,
    .form-select-solid,
    .symbol-label,
    .menu-link:hover,
    .menu-link.show,
    .list-group-item,
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error
) {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] :where(
    .form-control,
    .form-select,
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select,
    .select2-search__field
) {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
    box-shadow: none !important;
}

html[data-pido-theme="dark"] :where(
    .text-dark,
    .text-gray-900,
    .text-gray-800,
    .text-gray-700,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .menu-title,
    .woocommerce div.product .product_title,
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td,
    .select2-results__option
) {
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] :where(
    .text-muted,
    .text-gray-600,
    .text-gray-500,
    .text-gray-400,
    .woocommerce .woocommerce-breadcrumb,
    .woocommerce .woocommerce-breadcrumb a
) {
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] :where(
    .border,
    .border-top,
    .border-bottom,
    .border-start,
    .border-end,
    .separator,
    .table > :not(caption) > * > *
) {
    border-color: var(--pido-border) !important;
}

html[data-pido-theme="dark"] #kt_header :where(.svg-icon, .btn-icon) {
    color: var(--pido-header-icon) !important;
}

html[data-pido-theme="dark"] #kt_header svg :where(path, rect, circle)[fill="black"] {
    fill: currentColor !important;
}

html[data-pido-theme="dark"] .woocommerce a:not(.button),
html[data-pido-theme="dark"] .woocommerce-page a:not(.button) {
    color: inherit;
}

/* Search result helpers */
.pido-search-result__image {
    display: block;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface-soft);
}

.pido-search-result__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}


@media (max-width: 991.98px) {
    .pido-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pido-footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pido-search-form {
        grid-template-columns: 1fr;
    }

    .pido-search-form__submit {
        width: 100%;
    }

    .pido-footer__grid {
        grid-template-columns: 1fr;
    }

    .pido-footer__about {
        grid-column: auto;
    }

    .pido-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pido-search-overlay,
    .pido-search-overlay__dialog,
    .pido-footer__social,
    .pido-header-action {
        transition: none !important;
    }
}

/* ========================================================================
   PidoGame component system
   ======================================================================== */

:root {
    --pido-radius-sm: 8px;
    --pido-radius-card: 12px;
    --pido-radius-control: 10px;
    --pido-control-height: 48px;
    --pido-success: #20c77a;
    --pido-danger: #ef476f;
    --pido-warning: #ffb020;
}

body.pido-theme :where(.card, .btn, .button, button, input, textarea, select, .dropdown-menu, .menu-sub, .modal-content) {
    box-shadow: none !important;
}

body.pido-theme :where(.btn, .button, button:not(.pido-search-overlay__backdrop), input, textarea, select) {
    border-radius: var(--pido-radius-control);
}

body.pido-theme :where(.form-control, .form-select, input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select) {
    border-color: var(--pido-border);
    background-color: var(--pido-surface-soft);
    color: var(--pido-text);
    box-shadow: none !important;
}

body.pido-theme :where(.form-control, .form-select, input, textarea, select):focus {
    border-color: rgba(var(--pido-primary-rgb), .65);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--pido-primary-rgb), .12) !important;
}

/* Header action parity: light background like the existing notification/cart controls. */
.pido-header-action,
#kt_header .pido-header-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--pido-radius-control) !important;
    background: var(--pido-control-bg) !important;
    color: var(--pido-header-icon) !important;
}

.pido-header-action:hover,
.pido-header-action:focus-visible,
.pido-header-action.show,
#kt_header .pido-header-action:hover,
#kt_header .pido-header-action:focus-visible {
    background: var(--pido-control-hover) !important;
    color: var(--pido-header-icon) !important;
}

.pido-header-action .svg-icon,
.pido-header-action .svg-icon svg,
.pido-header-action > svg,
.pido-theme-toggle__icon,
.pido-theme-toggle__icon svg {
    width: 21px !important;
    height: 21px !important;
    color: inherit !important;
}

html[data-pido-theme="dark"] #kt_header .header-container {
    background: var(--pido-surface) !important;
}

/* Legacy SVGs must inherit the component foreground in both modes. */
body.pido-theme .svg-icon svg :where(path, rect, circle, polygon)[fill="black"],
body.pido-theme svg :where(path, rect, circle, polygon)[fill="#000"],
body.pido-theme svg :where(path, rect, circle, polygon)[fill="#000000"] {
    fill: currentColor !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(.svg-icon, .menu-icon, .btn-icon) {
    color: var(--pido-text) !important;
}

/* Live search */
.pido-search-overlay__dialog {
    width: min(780px, 100%);
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.pido-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.pido-search-form__icon {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--pido-text-muted);
    pointer-events: none;
}

.pido-search-form input[type="search"] {
    width: 100%;
    min-height: 54px;
    padding-inline-start: 48px !important;
    padding-inline-end: 16px !important;
    border: 1px solid var(--pido-border) !important;
    background: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

.pido-search-form__submit {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    background: var(--pido-primary);
    color: #fff;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-search-suggestions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
}

.pido-search-suggestions__label {
    flex: 0 0 auto;
    padding-top: 8px;
    color: var(--pido-text-muted);
    font-size: .82rem;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-search-suggestions__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pido-search-suggestion {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--pido-border);
    background: var(--pido-surface-soft);
    color: var(--pido-text);
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-semibold, 600);
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.pido-search-suggestion:hover,
.pido-search-suggestion:focus-visible {
    border-color: rgba(var(--pido-primary-rgb), .45);
    background: rgba(var(--pido-primary-rgb), .1);
    color: var(--pido-primary);
}

.pido-live-search {
    margin-top: 18px;
    border-top: 1px solid var(--pido-border);
    padding-top: 14px;
}

.pido-live-search__status {
    min-height: 24px;
    margin-bottom: 8px;
    color: var(--pido-text-muted);
    font-size: .82rem;
}

.pido-live-search__loader {
    width: 24px;
    height: 24px;
    margin: 16px auto;
    border: 3px solid var(--pido-border);
    border-top-color: var(--pido-primary);
    border-radius: 50%;
    animation: pido-spin .7s linear infinite;
}

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

.pido-live-search__results {
    display: grid;
    gap: 8px;
}

.pido-live-search__item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text) !important;
    text-decoration: none !important;
    transition: border-color .14s ease, background-color .14s ease;
}

.pido-live-search__item:hover,
.pido-live-search__item:focus-visible,
.pido-live-search__item.is-active {
    border-color: rgba(var(--pido-primary-rgb), .42);
    background: rgba(var(--pido-primary-rgb), .08);
    outline: none;
}

.pido-live-search__thumb {
    display: block;
    width: 68px;
    height: 52px;
    overflow: hidden;
    border-radius: var(--pido-radius-sm);
    background: var(--pido-surface-strong);
}

.pido-live-search__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


.pido-live-search__title {
    overflow: hidden;
    color: var(--pido-text);
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.pido-live-search__all {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--pido-radius-control);
    background: rgba(var(--pido-primary-rgb), .1);
    color: var(--pido-primary) !important;
    font-weight: var(--pido-font-weight-bold, 700);
    text-decoration: none !important;
}

/* Product archive */
.pido-shop-header {
    margin-bottom: 28px;
}

.pido-shop-header__heading {
    margin-bottom: 18px;
}

.pido-shop-header__title {
    margin: 0 0 10px;
    color: var(--pido-text);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-shop-header__heading .term-description,
.pido-shop-header__heading .page-description {
    color: var(--pido-text-muted);
}

.pido-shop-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(190px, 1fr) minmax(210px, 1fr) auto;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface);
}

.pido-shop-filters__field,
.pido-shop-filters__select {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 52px;
    border: 1px solid transparent;
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text);
}

.pido-shop-filters__field:focus-within,
.pido-shop-filters__select:focus-within {
    border-color: rgba(var(--pido-primary-rgb), .5);
}

.pido-shop-filters__field svg {
    position: absolute;
    inset-inline-start: 15px;
    width: 19px;
    height: 19px;
    color: var(--pido-text-muted);
}

.pido-shop-filters__field input,
.pido-shop-filters__select select {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    color: var(--pido-text) !important;
    box-shadow: none !important;
    font-size: .88rem;
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-shop-filters__field input {
    padding-inline: 46px 14px !important;
}

.pido-shop-filters__select select {
    appearance: none;
    padding-inline: 14px 42px !important;
    cursor: pointer;
}

.pido-shop-filters__select > svg {
    position: absolute;
    inset-inline-end: 14px;
    width: 18px;
    height: 18px;
    color: var(--pido-text-muted);
    pointer-events: none;
}

.pido-shop-filters__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pido-shop-filter-action {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: var(--pido-radius-control);
    background: var(--pido-control-bg);
    color: var(--pido-text-muted) !important;
    text-decoration: none !important;
}

.pido-shop-filter-action svg {
    width: 20px;
    height: 20px;
}

.pido-shop-filter-action--apply {
    color: var(--pido-primary) !important;
}

.pido-shop-filter-action:hover,
.pido-shop-filter-action:focus-visible {
    background: var(--pido-control-hover);
    color: var(--pido-primary) !important;
}

.pido-shop-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.pido-shop-results-bar .woocommerce-notices-wrapper {
    width: 100%;
}

.pido-shop-result-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 !important;
    color: var(--pido-text-muted);
}

.pido-shop-result-count strong {
    color: var(--pido-text);
    font-size: 1.05rem;
}

.pido-shop-ordering {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.pido-shop-ordering > label {
    color: var(--pido-text-muted);
    font-size: .82rem;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-shop-ordering__select {
    position: relative;
    display: block;
}

.pido-shop-ordering select {
    min-width: 190px;
    height: 42px;
    appearance: none;
    padding-inline: 14px 40px !important;
    border: 1px solid var(--pido-border) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-text) !important;
    font-size: .82rem;
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-shop-ordering__select svg {
    position: absolute;
    inset-inline-end: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: var(--pido-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.pido-products-grid {
    margin-block: 0 28px;
}

.pido-product-column {
    display: flex;
}

.pido-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface);
    box-shadow: none !important;
    transition: border-color .16s ease, background-color .16s ease;
}

.pido-product-card:hover {
    border-color: rgba(var(--pido-primary-rgb), .25);
    background: color-mix(in srgb, var(--pido-surface) 97%, var(--pido-primary) 3%);
    transform: none;
}

.pido-product-card__media {
    position: relative;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: calc(var(--pido-radius-card) - 3px);
    background: var(--pido-surface-soft);
    aspect-ratio: 16 / 9;
}

.pido-product-card__media a,
.pido-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.pido-product-card__media img {
    object-fit: cover;
    transition: opacity .16s ease;
}

.pido-product-card:hover .pido-product-card__media img {
    opacity: .985;
    transform: none;
}

.pido-product-card__sale {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 30px;
    padding: 4px 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--pido-danger);
    color: #fff;
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.pido-product-card__subtitle-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    margin: 0 0 6px;
    direction: ltr;
    text-align: left;
}

.pido-product-card__subtitle {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--pido-text-muted);
    font-size: var(--pido-font-size-xs, .8125rem);
    line-height: 1.7;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pido-product-card__type-icon {
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(var(--pido-primary-rgb), .1);
    color: var(--pido-primary);
}

.pido-product-card__type-icon svg {
    width: 17px;
    height: 17px;
}

.pido-product-card__type-icon--gift {
    background: rgba(124, 77, 255, .12);
    color: #7048d7;
}

.pido-product-card__type-icon--item {
    background: rgba(255, 152, 0, .13);
    color: #c97800;
}

.pido-product-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pido-product-card__title {
    min-width: 0;
    margin: 0;
    font-size: .975rem;
    font-weight: var(--pido-font-weight-bold, 700);
    line-height: 1.6;
}

.pido-product-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--pido-text) !important;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pido-product-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.pido-product-card__specs > div {
    min-width: 0;
}

.pido-product-card__specs dt {
    margin-bottom: 6px;
    color: var(--pido-text-muted);
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-product-card__specs dd {
    margin: 0;
}

.pido-product-card__tag {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-bold, 700);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pido-product-card__tag--platform {
    background: rgba(255, 176, 32, .14);
    color: #c98100;
}

.pido-product-card__tag--producer {
    background: rgba(32, 199, 122, .13);
    color: #15995c;
}

.pido-product-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 16px;
    border-top: 1px solid var(--pido-border);
    background: var(--pido-surface);
    direction: ltr;
}

.pido-product-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto;
    color: var(--pido-text);
    text-align: left;
    direction: rtl;
    line-height: 1.45;
}

.pido-product-card__price .pido-price-regular {
    display: block;
    margin-bottom: 3px;
    color: var(--pido-text-muted);
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-medium, 500);
    text-decoration-thickness: 1px;
}

.pido-product-card__price .pido-price-current {
    display: block;
    color: var(--pido-text);
    font-size: 1rem;
    font-weight: var(--pido-font-weight-extrabold, 800);
    white-space: nowrap;
}

.pido-product-card__price .woocommerce-Price-currencySymbol {
    margin-inline-start: 2px;
    font-size: .82em;
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-product-card__stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(239, 71, 111, .2);
    border-radius: var(--pido-radius-control);
    background: rgba(239, 71, 111, .08);
    color: var(--pido-danger) !important;
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-bold, 700);
    direction: rtl;
}

/* Restored blog sidebar and unified blog cards. */
.pido-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 24px;
}

.pido-blog-main,
.pido-blog-sidebar {
    min-width: 0;
}

.pido-blog-sidebar__inner {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 18px;
}

.pido-sidebar-widget {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface);
    color: var(--pido-text);
}

.pido-sidebar-widget__title,
.pido-sidebar-widget .widget-title {
    margin: 0 0 16px;
    color: var(--pido-text);
    font-size: 1rem;
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-sidebar-search {
    position: relative;
}

.pido-sidebar-search input {
    width: 100%;
    height: 46px;
    padding-inline: 14px 44px !important;
    border: 1px solid var(--pido-border) !important;
}

.pido-sidebar-search button {
    position: absolute;
    inset-inline-end: 6px;
    top: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pido-text-muted);
}

.pido-sidebar-search svg {
    width: 18px;
    height: 18px;
}

.pido-sidebar-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pido-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: var(--pido-text) !important;
    text-decoration: none !important;
}

.pido-sidebar-list a:hover {
    color: var(--pido-primary) !important;
}

.pido-sidebar-list small {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    border-radius: 7px;
    background: var(--pido-surface-soft);
    color: var(--pido-text-muted);
}

.pido-sidebar-posts {
    display: grid;
    gap: 12px;
}

.pido-sidebar-post {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--pido-text) !important;
    text-decoration: none !important;
}

.pido-sidebar-post__thumb {
    display: block;
    width: 62px;
    height: 50px;
    overflow: hidden;
    border-radius: var(--pido-radius-sm);
    background: var(--pido-surface-soft);
}

.pido-sidebar-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pido-sidebar-post strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--pido-font-size-xs, .8125rem);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pido-sidebar-post small {
    display: block;
    margin-top: 3px;
    color: var(--pido-text-muted);
    font-size: var(--pido-font-size-xs, .8125rem);
}

.pido-sidebar-product-price {
    color: var(--pido-primary) !important;
}

.pido-blog-archive-header {
    margin-bottom: 22px;
}

.pido-blog-archive-header h1 {
    margin: 10px 0 0;
    color: var(--pido-text);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-breadcrumb,
.pido-breadcrumb a,
.pido-blog-archive-description {
    color: var(--pido-text-muted) !important;
    font-size: var(--pido-font-size-xs, .8125rem);
}

.pido-blog-list {
    display: grid;
    gap: 18px;
}

.pido-blog-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(235px, 34%) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface);
    transition: border-color .18s ease, background-color .18s ease;
}

.pido-blog-card:hover {
    border-color: color-mix(in srgb, var(--pido-border) 48%, var(--pido-primary) 52%);
    background: color-mix(in srgb, var(--pido-surface) 95%, var(--pido-primary) 5%);
}

.pido-blog-card__media {
    display: block;
    min-height: 238px;
    overflow: hidden;
    background: var(--pido-surface-soft);
}

.pido-blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 238px;
    object-fit: cover;
    transition: opacity .18s ease;
}

.pido-blog-card:hover .pido-blog-card__media img {
    opacity: .94;
}

.pido-blog-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 238px;
    color: var(--pido-text-muted);
}

.pido-blog-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 24px 26px;
}

.pido-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 11px;
    color: var(--pido-text-muted);
    font-size: calc(.78rem + 2px);
}

.pido-blog-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pido-text-muted);
    line-height: 1.5;
}

.pido-blog-card__meta-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.pido-blog-card__meta-item--date svg {
    color: #4f7cff;
}

.pido-blog-card__meta-item--comments svg {
    color: #21a875;
}

.pido-blog-card__title {
    margin: 0 0 10px;
    font-size: 1.16rem;
    font-weight: var(--pido-font-weight-extrabold, 800);
    line-height: 1.8;
}

.pido-blog-card__title a {
    color: var(--pido-text) !important;
    text-decoration: none !important;
}

.pido-blog-card__title a:hover {
    color: var(--pido-primary) !important;
}

.pido-blog-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--pido-text-muted);
    font-size: .9rem;
    line-height: 1.95;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}



.pido-blog-card__category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: var(--pido-radius-control);
    background: color-mix(in srgb, var(--pido-surface-soft) 72%, #f5a524 28%);
    color: #a75c00 !important;
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-bold, 700);
    text-decoration: none !important;
}

.pido-blog-card__category svg {
    width: 15px;
    height: 15px;
}


.pido-empty-state {
    padding: 32px;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface);
    color: var(--pido-text-muted);
    text-align: center;
}

.single-post #kt_content > .d-flex.flex-column.flex-xl-row {
    gap: 24px;
}

.single-post #kt_content > .d-flex.flex-column.flex-xl-row > .flex-lg-row-fluid {
    min-width: 0;
}

.single-post .pido-blog-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

/* Dark-mode completion for legacy and new components. */
html[data-pido-theme="dark"] body.pido-theme :where(
    .pido-product-card,
    .pido-product-card__footer,
    .pido-shop-filters,
    .pido-blog-card,
    .pido-sidebar-widget,
    .pido-search-overlay__dialog,
    .woocommerce-pagination .page-numbers,
    .widget,
    .widget-area
) {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    .pido-shop-filters__field,
    .pido-shop-filters__select,
    .pido-live-search__item,
    .pido-search-suggestion,
    .pido-sidebar-list small,
    .pido-product-card__media,
    .pido-sidebar-post__thumb,
    .pido-blog-card__media,
    .pido-blog-card__placeholder
) {
    background: var(--pido-surface-soft) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    .badge-light,
    .badge-light-primary,
    .badge-light-info,
    .badge-light-success,
    .badge-light-warning,
    .badge-light-danger,
    .bg-light-primary,
    .bg-light-info,
    .bg-light-success,
    .bg-light-warning,
    .bg-light-danger
) {
    border-color: transparent !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(.woocommerce-Price-amount, .amount, .price) {
    color: inherit;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card__tag--platform {
    background: rgba(255, 176, 32, .16);
    color: #ffc75b;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card__tag--producer {
    background: rgba(32, 199, 122, .16);
    color: #68e2a8;
}

html[data-pido-theme="dark"] body.pido-theme :where(.select2-container--default .select2-results__option--highlighted[aria-selected], .menu-link:hover) {
    background: var(--pido-surface-strong) !important;
    color: var(--pido-text) !important;
}

@media (max-width: 1199.98px) {
    .pido-shop-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pido-shop-filters__field--search {
        grid-column: span 2;
    }

    .pido-blog-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .single-post .pido-blog-sidebar {
        flex-basis: 290px;
        width: 290px;
    }
}

@media (max-width: 991.98px) {
    .pido-blog-layout {
        grid-template-columns: 1fr;
    }

    .pido-blog-sidebar__inner {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post #kt_content > .d-flex.flex-column.flex-xl-row {
        display: flex !important;
        flex-direction: column !important;
    }

    .single-post .pido-blog-sidebar {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .pido-header-action,
    #kt_header .pido-header-action {
        width: 36px !important;
        height: 36px !important;
    }

    .pido-search-suggestions {
        display: block;
    }

    .pido-search-suggestions__label {
        display: block;
        margin-bottom: 8px;
        padding: 0;
    }

    .pido-shop-filters {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px;
    }

    .pido-shop-filters__field--search {
        grid-column: 1 / -1;
    }

    .pido-shop-filters__actions {
        justify-content: flex-end;
    }

    .pido-shop-results-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pido-shop-ordering {
        width: 100%;
        justify-content: space-between;
    }

    .pido-shop-ordering__select,
    .pido-shop-ordering select {
        width: 100%;
    }

    .pido-blog-card {
        grid-template-columns: 1fr;
    }

    .pido-blog-card__media,
    .pido-blog-card__media img,
    .pido-blog-card__placeholder {
        min-height: 190px;
        max-height: 230px;
    }

    .pido-blog-card__content {
        padding: 18px;
    }

    .pido-blog-sidebar__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    .pido-shop-filters {
        grid-template-columns: 1fr;
    }

    .pido-shop-filters__field--search {
        grid-column: auto;
    }

    .pido-shop-filters__actions {
        justify-content: stretch;
    }

    .pido-shop-filter-action {
        width: 100%;
    }

    .pido-product-card__footer {
        min-height: 64px;
        padding: 11px 14px;
    }
}

/* Toolbar spacing and WooCommerce float resets. */
#kt_header .pido-header-action-wrap {
    margin-inline-start: 8px !important;
}

.woocommerce .pido-shop-ordering,
.woocommerce .pido-shop-result-count {
    float: none !important;
}

/* Additional dark-mode coverage for account, checkout, navigation and tables. */
html[data-pido-theme="dark"] body.pido-theme :where(
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content,
    #payment,
    .woocommerce-checkout-payment,
    .woocommerce-checkout-review-order-table,
    .woocommerce-cart-form,
    .cart_totals,
    .woocommerce-Addresses .woocommerce-Address,
    .nav-tabs,
    .nav-pills,
    .tab-content,
    .list-group-item,
    .pagination .page-numbers,
    .page-link
) {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    .dropdown-item,
    .menu-link,
    .nav-link,
    .accordion-button,
    .woocommerce-MyAccount-navigation-link a,
    .woocommerce-tabs ul.tabs li a
) {
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    .dropdown-item:hover,
    .dropdown-item:focus,
    .menu-link:hover,
    .nav-link:hover,
    .nav-link.active,
    .woocommerce-MyAccount-navigation-link.is-active a
) {
    background-color: var(--pido-surface-strong) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    .table-striped > tbody > tr:nth-of-type(odd) > *,
    .table-hover > tbody > tr:hover > *,
    .woocommerce table.shop_table tbody tr:nth-child(odd)
) {
    --bs-table-accent-bg: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme :where(
    input::placeholder,
    textarea::placeholder,
    .select2-selection__placeholder
) {
    color: var(--pido-text-muted) !important;
    opacity: 1;
}

/* ========================================================================
   PidoGame 1.5.0 — unified typography, borders and low-motion storefront UI
   ======================================================================== */
body.pido-theme {
    font-family: var(--pido-font-family) !important;
    font-size: var(--pido-font-size-base);
    line-height: var(--pido-line-height-base);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.pido-theme :where(button, input, select, textarea) {
    font: inherit;
}

body.pido-theme :where(p, li, dd, blockquote) {
    line-height: var(--pido-line-height-base);
}

body.pido-theme :where(
    .entry-content,
    .post-content,
    .page-content,
    .term-description,
    .page-description,
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel,
    .product-description,
    .single-post-content
) {
    color: var(--pido-text);
    font-size: 1rem;
    line-height: 2;
}

body.pido-theme :where(
    .entry-content,
    .post-content,
    .page-content,
    .term-description,
    .page-description,
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel,
    .product-description,
    .single-post-content
) :where(p, li) {
    line-height: 2;
}

body.pido-theme :where(h1, h2, h3, h4, h5, h6) {
    color: var(--pido-text);
    font-family: var(--pido-font-family);
}

body.pido-theme :where(.text-muted, .text-gray-500, .text-gray-600, .text-gray-700) {
    color: var(--pido-text-muted) !important;
}

/* All public cards and panels use the same visible border. */
body.pido-theme :where(
    .card,
    .pido-product-card,
    .pido-blog-card,
    .pido-sidebar-widget,
    .pido-footer__card,
    .pido-shop-filters,
    .pido-search-overlay__dialog,
    .pido-live-search__item,
    .woocommerce table.shop_table,
    .woocommerce-checkout-review-order,
    .woocommerce form.checkout_coupon,
    .woocommerce form.login,
    .woocommerce form.register,
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-cart-form,
    .cart_totals,
    .woocommerce-Addresses .woocommerce-Address,
    .modal-content,
    .accordion-item,
    .select2-dropdown,
    .thankyou-box,
    .pido-edit-account-form,
    .custom-orders-table-wrapper,
    .order-notes,
    .note-content,
    .comment
) {
    border: 1px solid var(--pido-border) !important;
    border-radius: var(--pido-radius-card) !important;
    box-shadow: none !important;
}

.pido-shop-filters {
    align-items: center;
}

.pido-shop-filters__field,
.pido-shop-filters__select {
    border-color: var(--pido-border);
}

.pido-shop-result-count {
    display: block;
    margin: 0 !important;
    color: var(--pido-text-muted);
    font-size: .9rem;
    font-weight: var(--pido-font-weight-semibold, 600);
    line-height: 1.6;
    white-space: nowrap;
}

.pido-shop-results-bar {
    min-height: 46px;
}

.pido-product-card__subtitle,
.pido-product-card__specs dt {
    font-size: .82rem;
}

.pido-product-card__tag {
    font-size: var(--pido-font-size-xs, .8125rem);
}

.pido-product-card__title {
    font-size: .975rem;
    line-height: 1.65;
}




@media (prefers-reduced-motion: reduce) {
    body.pido-theme *,
    body.pido-theme *::before,
    body.pido-theme *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1199.98px) {
    .pido-shop-filters {
        grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 1fr) minmax(190px, 1fr) auto;
    }
}

@media (max-width: 767.98px) {
    body.pido-theme {
        font-size: 14.5px;
    }

    .pido-shop-filters {
        grid-template-columns: 1fr 1fr;
    }

    .pido-shop-filters__field--search {
        grid-column: 1 / -1;
    }

    .pido-shop-filters__actions {
        justify-content: flex-end;
    }

    .pido-shop-result-count {
        white-space: normal;
    }
}

@media (max-width: 479.98px) {
    .pido-shop-filters {
        grid-template-columns: 1fr;
    }

    .pido-shop-filters__field--search {
        grid-column: auto;
    }

    .pido-shop-filters__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .pido-product-card__price .pido-price-current {
        font-size: .95rem;
    }
}


/* ========================================================================
   PidoGame 1.5.1 — storefront pricing, manual suggestions and mobile search
   ======================================================================== */

/* Product card: restrained hover and a centered Persian price panel. */
.pido-product-card:hover {
    border-color: color-mix(in srgb, var(--pido-border) 82%, var(--pido-primary) 18%);
    background: color-mix(in srgb, var(--pido-surface) 99%, var(--pido-primary) 1%);
}

.pido-product-card:hover .pido-product-card__media img {
    opacity: 1;
}

.pido-product-card__sale {
    min-width: 52px;
    min-height: 34px;
    padding: 5px 10px;
    border: 0;
    font-size: .86rem;
    line-height: 1;
}

.pido-product-card__footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
    padding: 10px 12px 12px;
    background: var(--pido-surface);
    direction: rtl;
}

.pido-product-card__price {
    display: flex;
    width: 100%;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text-muted);
    text-align: center;
    direction: rtl;
    line-height: 1.45;
}

.pido-product-card__price .pido-price-regular {
    margin: 0 0 2px;
    color: var(--pido-text-muted);
    font-size: .82rem;
    font-weight: var(--pido-font-weight-medium, 500);
}

.pido-product-card__price .pido-price-current {
    color: color-mix(in srgb, var(--pido-text) 76%, var(--pido-text-muted) 24%);
    font-size: 1.08rem;
    font-weight: var(--pido-font-weight-extrabold, 800);
}

.pido-product-card__stock {
    margin-inline: auto;
}

/* Search input icon is positioned relative to its own field, not the full form. */
.pido-search-form__field {
    position: relative;
    min-width: 0;
}

.pido-search-form__icon {
    inset-inline-start: 16px;
}

/* Compact live results: thumbnail, title and direction cue only. */
.pido-live-search__item {
    grid-template-columns: 62px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 9px 10px;
}

.pido-live-search__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: .94rem;
    font-weight: var(--pido-font-weight-bold, 700);
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pido-live-search__arrow {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: var(--pido-text-muted);
}

.pido-live-search__arrow svg {
    width: 18px;
    height: 18px;
}


.pido-search-suggestion {
    text-decoration: none !important;
}

/* The mobile drawer is navigation, not a card collection. */
#kt_header_menu .menu-sub,
.header-menu .menu-sub,
.header-menu,
.header-menu .menu-item,
.header-menu .menu-link {
    box-shadow: none !important;
}


@media (max-width: 991.98px) {
    .header-menu,
    .header-menu .menu-sub,
    .header-menu .menu-item,
    .header-menu .menu-link {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 767.98px) {
    .pido-search-overlay {
        display: grid;
        place-items: start center;
        overflow-y: auto;
        padding: max(64px, calc(env(safe-area-inset-top) + 52px)) 12px 12px;
    }

    .pido-search-overlay__dialog {
        width: 100%;
        max-height: calc(100dvh - max(76px, calc(env(safe-area-inset-top) + 64px)));
        margin: 0;
        padding: 15px;
        border-radius: var(--pido-radius-card) !important;
    }

    .pido-search-overlay__header {
        align-items: center;
        margin-bottom: 14px;
    }

    .pido-search-overlay__title {
        font-size: 1.2rem;
    }

    .pido-search-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .pido-search-form__field,
    .pido-search-form__submit {
        width: 100%;
    }

    .pido-search-form__icon {
        inset-inline-start: 15px;
        top: 50%;
    }

    .pido-search-form input[type="search"] {
        min-height: 50px;
        padding-inline-start: 46px !important;
        padding-inline-end: 14px !important;
    }

    .pido-search-form__submit {
        min-height: 46px;
    }

    .pido-live-search__item {
        grid-template-columns: 54px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 8px;
    }

    .pido-live-search__thumb {
        width: 54px;
        height: 44px;
    }

    .pido-live-search__title {
        font-size: .9rem;
    }

    .pido-mobile-theme-menu-item {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--pido-border);
    }

    .pido-mobile-theme-toggle {
        width: 100%;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--pido-text) !important;
        text-align: right;
    }

    .pido-mobile-theme-toggle__icon {
        display: grid;
        place-items: center;
    }
}

@media (min-width: 992px) {
    #kt_header .menu-sub.menu-sub-lg-dropdown {
        border: 1px solid var(--pido-border);
        border-radius: var(--pido-radius-card);
        background: var(--pido-surface);
    }
}

/* ========================================================================
   PidoGame 1.6.1 — pagination restoration and focused UI corrections
   ======================================================================== */

/* Native breadcrumbs: one semantic pattern for every public template. */
.pido-breadcrumb-wrap {
    width: 100%;
    margin-block: 7px .25rem;
}

.pido-breadcrumb {
    min-width: 0;
    color: var(--pido-text-muted);
    font-size: .84rem;
    line-height: 1.8;
}

.pido-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pido-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pido-breadcrumb__item:not(:last-child)::after {
    content: "‹";
    margin-inline-start: 8px;
    color: color-mix(in srgb, var(--pido-text-muted) 55%, transparent);
    font-size: 1rem;
    line-height: 1;
}

.pido-breadcrumb a {
    color: var(--pido-text-muted) !important;
    text-decoration: none !important;
    transition: color .14s ease;
}

.pido-breadcrumb a:hover,
.pido-breadcrumb a:focus-visible {
    color: var(--pido-primary) !important;
}

.pido-breadcrumb [aria-current="page"] {
    display: inline-block;
    max-width: min(52vw, 520px);
    overflow: hidden;
    color: var(--pido-text);
    font-weight: var(--pido-font-weight-semibold, 600);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sticky header is separated with a border; no elevation is introduced. */
#kt_header {
    border-bottom: 1px solid transparent;
    transition: background-color .16s ease, border-color .16s ease;
}

body[data-kt-sticky-header="on"] #kt_header,
#kt_header[data-kt-sticky-header="on"] {
    border-bottom-color: var(--pido-border);
    background: var(--pido-surface);
    box-shadow: none !important;
}

body[data-kt-sticky-header="on"] #kt_header .pido-header-container,
#kt_header[data-kt-sticky-header="on"] .pido-header-container {
    background: var(--pido-surface);
}

/* Archive headings stay prominent without overpowering the filter panel. */
.pido-shop-header__title,
.pido-blog-archive-header h1,
body.archive.pido-theme #kt_content h1,
body.search-results.pido-theme #kt_content h1 {
    font-size: clamp(1.45rem, 2vw, 1.72rem);
    font-weight: var(--pido-font-weight-bold, 700);
    line-height: 1.55;
}

/* The complete archive product card is one accessible link. */
.pido-product-card__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.pido-product-card__link:focus-visible {
    border-radius: var(--pido-radius-card);
    outline: 3px solid rgba(var(--pido-primary-rgb), .22);
    outline-offset: 3px;
}

.pido-product-card__link .pido-product-card {
    height: 100%;
}

.pido-product-card__link:hover .pido-product-card,
.pido-product-card:hover {
    border-color: var(--pido-border);
    background-color: color-mix(in srgb, var(--pido-surface) 97%, var(--pido-text) 3%);
}

.pido-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--pido-text);
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Live results deliberately use an uncropped source and contain the full artwork. */
.pido-live-search__status {
    color: var(--pido-text-muted);
    font-size: .86rem;
    font-weight: var(--pido-font-weight-semibold, 600);
}

.pido-live-search__thumb {
    display: grid;
    place-items: center;
    padding: 3px;
    background: var(--pido-surface);
}

.pido-live-search__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 991.98px) {
    #kt_header,
    #kt_header .header-container,
    #kt_header .pido-header-container,
    body[data-kt-sticky-header="on"] #kt_header,
    body[data-kt-sticky-header="on"] #kt_header .pido-header-container,
    #kt_header[data-kt-sticky-header="on"],
    #kt_header[data-kt-sticky-header="on"] .pido-header-container {
        border-radius: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .pido-breadcrumb {
        font-size: var(--pido-font-size-xs, .8125rem);
    }

    .pido-breadcrumb [aria-current="page"] {
        max-width: 58vw;
    }

}

/* ========================================================================
   Static compatibility rules migrated from PHP inline output.
   ======================================================================== */
.wrap-cart-plswb a,
.wrap-cart-plswb a:hover {
    text-decoration: none;
}

.woocommerce ul.products li.product .onsale,
.elementor-widget-woocommerce-products .onsale,
.elementor-widget-wc-archive-products .onsale,
.elementor-products-grid .onsale {
    display: none !important;
}

.elementor a:not(.btn):not(.button):not(.elementor-button),
.elementor a:not(.btn):not(.button):not(.elementor-button):hover {
    color: inherit;
    text-decoration: none;
}

.image-cart-plswb img,
.woocommerce ul.products li.product a img,
.elementor-widget-woocommerce-products img,
.elementor-widget-wc-archive-products img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.related-products-wrapper .related-thumb {
    background: var(--pido-surface-soft);
}

.related-products-wrapper .related-thumb img {
    background: var(--pido-surface-soft) !important;
    object-fit: contain !important;
}

.pido-notice-content {
    margin-inline-start: 3rem;
}

.pido-product-filter-tabs {
    margin-block-end: 1.875rem;
    text-align: center;
}

.pido-notification-menu-header {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    background: var(--pido-primary);
    isolation: isolate;
}

.pido-notification-menu-header__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pido-notification-menu-header::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 15, 25, .38);
    content: "";
}

.pido-notification-menu-header__title {
    position: relative;
}

/* Product-card title tone retained after consolidating superseded hover overrides. */
body.pido-theme .pido-product-card__title,
body.pido-theme .pido-product-card__title a {
    color: color-mix(in srgb, var(--pido-text) 88%, var(--pido-text-muted) 12%) !important;
}

/* PidoGame 1.8.54 — reliable, subtle full-card hover tint. */
body.pido-theme .pido-product-card::after {
    position: absolute;
    inset: 0;
    z-index: 8;
    border-radius: inherit;
    background: rgba(var(--pido-primary-rgb), .026);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
    content: "";
}

body.pido-theme .pido-product-card__link:hover .pido-product-card::after,
body.pido-theme .pido-product-card:hover::after {
    opacity: 1;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card::after {
    background: rgba(var(--pido-primary-rgb), .052);
}

@media (prefers-reduced-motion: reduce) {
    body.pido-theme .pido-product-card::after {
        transition: none;
    }
}

/* PidoGame 1.8.55 — ultra-subtle product-card hover in every context. */
html body.pido-theme .pido-product-card__link:hover .pido-product-card,
html body.pido-theme .pido-product-card:hover {
    border-color: color-mix(in srgb, var(--pido-border) 98%, var(--pido-primary) 2%) !important;
    background-color: color-mix(in srgb, var(--pido-surface) 99.65%, var(--pido-primary) .35%) !important;
}

html body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__body,
html body.pido-theme .pido-product-card:hover .pido-product-card__body,
html body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__footer,
html body.pido-theme .pido-product-card:hover .pido-product-card__footer {
    background-color: color-mix(in srgb, var(--pido-surface) 99.65%, var(--pido-primary) .35%) !important;
}

html body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__price,
html body.pido-theme .pido-product-card:hover .pido-product-card__price,
html body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__stock--price,
html body.pido-theme .pido-product-card:hover .pido-product-card__stock--price {
    background-color: color-mix(in srgb, var(--pido-surface-soft) 99.45%, var(--pido-primary) .55%) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card__link:hover .pido-product-card,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card:hover {
    border-color: color-mix(in srgb, var(--pido-border) 96%, var(--pido-primary) 4%) !important;
    background-color: color-mix(in srgb, var(--pido-surface) 99.1%, var(--pido-primary) .9%) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__body,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card:hover .pido-product-card__body,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__footer,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card:hover .pido-product-card__footer {
    background-color: color-mix(in srgb, var(--pido-surface) 99.1%, var(--pido-primary) .9%) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__price,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card:hover .pido-product-card__price,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card__link:hover .pido-product-card .pido-product-card__stock--price,
html[data-pido-theme="dark"] body.pido-theme .pido-product-card:hover .pido-product-card__stock--price {
    background-color: color-mix(in srgb, var(--pido-surface-soft) 98.8%, var(--pido-primary) 1.2%) !important;
}

html body.pido-theme .pido-product-card::after {
    background: rgba(var(--pido-primary-rgb), .014) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-card::after {
    background: rgba(var(--pido-primary-rgb), .028) !important;
}

/* PidoGame 1.8.71 — preset icons; viewport centering is limited to mobile/tablet. */
@media (max-width: 991.98px) {
    .pido-notification-menu {
        position: fixed !important;
        top: var(--pido-notification-menu-top, 72px) !important;
        right: auto !important;
        left: 50% !important;
        width: min(375px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        z-index: 109 !important;
    }
}

@media (max-width: 575.98px) {
    .pido-notification-menu {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
}

.pido-notification-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: currentColor;
    line-height: 1;
}

.pido-notification-icon > i {
    font-size: 18px;
    line-height: 1;
}

.pido-notification-icon__monogram {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
}

.pido-notification-icon--epic-games .pido-notification-icon__monogram {
    font-size: 8px;
    letter-spacing: -.08em;
}

.pido-notification-icon--legacy svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* PidoGame 1.8.77 — notification copy must wrap instead of being visually truncated. */
.pido-notification-item {
    align-items: flex-start !important;
    gap: 10px;
}

.pido-notification-item__main,
.pido-notification-item__copy {
    min-width: 0;
}

.pido-notification-item__main {
    flex: 1 1 auto;
}

.pido-notification-item__copy {
    flex: 1 1 auto;
}

.pido-notification-item__title,
.pido-notification-item__subtitle {
    display: block;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.pido-notification-item__subtitle {
    margin-top: 3px;
    line-height: 1.75;
}

.pido-notification-item__time {
    flex: 0 0 auto;
    margin-top: 2px;
    white-space: nowrap;
}

.pido-notification-modal__dialog {
    width: min(760px, calc(100vw - 24px));
    max-width: 760px;
}

.pido-notification-modal__body {
    display: flow-root;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: min(68vh, 680px);
    color: var(--pido-text) !important;
    overflow-wrap: anywhere;
    text-align: right;
    white-space: normal;
}

.pido-notification-modal__body > :first-child { margin-top: 0; }
.pido-notification-modal__body > :last-child { margin-bottom: 0; }
.pido-notification-modal__body p {
    margin-block: 0 1em;
    white-space: pre-wrap;
}
.pido-notification-modal__body br { content: ""; }
.pido-notification-modal__body :where(p, li, div, span, strong, em) { color: inherit; }
.pido-notification-modal .modal-title { min-width: 0; overflow-wrap: anywhere; }
.pido-notification-modal__body a { color: var(--pido-primary) !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer; }
.pido-notification-modal__body :where(img, video, iframe, svg) { max-width: 100%; height: auto; }
.pido-notification-modal__body table { width: 100%; max-width: 100%; }

@media (max-width: 575.98px) {
    .pido-notification-modal__dialog {
        width: calc(100vw - 16px);
        margin-inline: auto;
    }

    .pido-notification-modal__body {
        max-height: 64vh;
        padding-inline: 18px;
    }
}
