/* Mzya Shopping — Phase 25 frontend QA polish
   Scope: Help Center mobile/RTL polish + branded footer column titles.
   This file is intentionally additive and safe for existing pages.
*/

:root {
    --mzya-teal: #628e92;
    --mzya-gold: #e4a224;
    --mzya-blue: #2d5893;
    --mzya-ink: #172033;
    --mzya-muted: #6b7280;
    --mzya-border: #e5e7eb;
    --mzya-soft: #f8fafc;
}

/* Footer */

.mzya-shop-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(98, 142, 146, 0.18), transparent 32%),
        linear-gradient(180deg, #f9fbfb 0%, #ffffff 52%, #f7f5f0 100%);
    border-top: 1px solid rgba(45, 88, 147, 0.14);
    color: var(--mzya-ink);
    margin-top: 100px;
}

.mzya-shop-footer__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 3.25fr);
    gap: 42px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 56px 28px 42px;
}

.mzya-shop-footer__brand {
    min-width: 0;
}

.mzya-shop-footer__logo {
    display: inline-flex;
    align-items: center;
    max-width: 170px;
    text-decoration: none;
}

.mzya-shop-footer__logo img {
    display: block;
    width: min(150px, 100%);
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

.mzya-shop-footer__description {
    margin-top: 16px;
    color: #596273;
    font-size: 14px;
    line-height: 1.75;
}

.mzya-shop-footer__help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(98, 142, 146, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #526070;
    font-size: 13px;
}

.mzya-shop-footer__help a {
    color: var(--mzya-blue);
    font-weight: 700;
    text-decoration: none;
}

.mzya-shop-footer__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 30px;
    min-width: 0;
}

.mzya-shop-footer__column h2 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
	text-transform: uppercase;
}

.mzya-shop-footer__column h2::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mzya-gold), var(--mzya-teal));
}

.mzya-shop-footer__column ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mzya-shop-footer__column a {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.mzya-shop-footer__column a:hover {
    color: var(--mzya-blue);
}

html[dir="ltr"] .mzya-shop-footer__column a:hover,
.mzya-shop-footer[dir="ltr"] .mzya-shop-footer__column a:hover {
    transform: translateX(2px);
}

html[dir="rtl"] .mzya-shop-footer__column a:hover,
.mzya-shop-footer[dir="rtl"] .mzya-shop-footer__column a:hover {
    transform: translateX(-2px);
}

.mzya-shop-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(45, 88, 147, 0.1);
    color: #6b7280;
    font-size: 13px;
}

/* Help Center final responsive polish */

.mzya-help-center,
.mzya-help-center * {
    box-sizing: border-box;
}

.mzya-help-container {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
}

.mzya-help-center a,
.mzya-help-center button,
.mzya-help-center input,
.mzya-help-center textarea,
.mzya-help-center select {
    -webkit-tap-highlight-color: transparent;
}

.mzya-help-live-chat-messages {
    scroll-padding-top: 18px;
}

.mzya-help-assistant-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mzya-help-assistant-feedback > span:first-child {
    width: 100%;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.mzya-help-assistant-feedback button {
    border: 1px solid rgba(98, 142, 146, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
}

.mzya-help-assistant-feedback button:hover {
    border-color: var(--mzya-teal);
    color: var(--mzya-blue);
}

.mzya-help-assistant-feedback.is-sent {
    border-radius: 12px;
    background: rgba(98, 142, 146, 0.08);
    padding: 9px 11px;
    color: var(--mzya-teal);
    font-weight: 700;
}

/* RTL polish */

.mzya-help-center.is-rtl,
.mzya-shop-footer[dir="rtl"] {
    text-align: right;
}

.mzya-help-center.is-rtl .mzya-help-breadcrumb,
.mzya-help-center.is-rtl .mzya-help-assistant-mode,
.mzya-help-center.is-rtl .mzya-help-live-chat-header,
.mzya-help-center.is-rtl .mzya-help-product-card,
.mzya-help-center.is-rtl .mzya-help-assistant-feedback {
    direction: rtl;
}

.mzya-help-center.is-rtl .mzya-help-live-message.is-user {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile */

@media (max-width: 1180px) {
    .mzya-shop-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mzya-shop-footer__links {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

}

@media (max-width: 768px) {
    .mzya-shop-footer__inner {
        padding: 42px 18px 28px;
    }

    .mzya-shop-footer__links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mzya-shop-footer__column {
        padding: 16px;
        border: 1px solid rgba(45, 88, 147, 0.1);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.75);
    }

    .mzya-shop-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px 22px;
    }

    .mzya-shop-footer[dir="rtl"] .mzya-shop-footer__bottom {
        align-items: flex-end;
    }

    .mzya-help-container {
        width: min(100% - 20px, 1320px);
    }

    .mzya-help-assistant-page .mzya-help-live-chat {
        min-height: min(760px, 85vh);
    }

    .mzya-help-assistant-page .mzya-help-live-chat-messages {
        max-height: 62vh;
    }

    .mzya-help-assistant-form {
        align-items: flex-end;
    }

    .mzya-help-assistant-send {
        min-height: 44px;
    }

    .mzya-help-product-grid {
        grid-template-columns: 1fr !important;
    }

    .mzya-help-product-card {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .mzya-shop-footer__logo img {
        width: 126px;
        max-height: 76px;
    }

    .mzya-shop-footer__column h2 {
        font-size: 14px;
		text-transform: uppercase;
    }

    .mzya-shop-footer__description,
    .mzya-shop-footer__column a {
        font-size: 13px;
    }

    .mzya-help-assistant-mode {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .mzya-help-assistant-mode button {
        white-space: nowrap;
    }
}


/* Phase 25.2 — Force footer logo to use visible image sizing */
.mzya-shop-footer__brand .mzya-shop-footer__logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-height: 72px !important;
}

.mzya-shop-footer[dir="rtl"] .mzya-shop-footer__brand .mzya-shop-footer__logo {
    justify-content: flex-end !important;
}

.mzya-shop-footer__brand .mzya-shop-footer__logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: 92px !important;
    object-fit: contain !important;
}

@media (max-width: 520px) {
    .mzya-shop-footer__brand .mzya-shop-footer__logo img {
        width: 126px !important;
        max-width: 126px !important;
        max-height: 78px !important;
    }
}

/* =========================================================
   Mzya Frontend Datagrid + Pagination Polish
   Safe frontend override for x-shop::datagrid only.
   Goal: more Mzya blue, darker readable text, compact spacing,
   RTL/LTR friendly controls, no business-logic changes.
========================================================= */
:root {
    --mzya-fdg-blue: var(--mzya-account-blue, #2c5792);
    --mzya-fdg-blue-dark: var(--mzya-account-blue-dark, #214778);
    --mzya-fdg-gold: var(--mzya-account-gold, #e4a224);
    --mzya-fdg-text: #0f172a;
    --mzya-fdg-muted: #64748b;
    --mzya-fdg-border: rgba(44, 87, 146, 0.14);
    --mzya-fdg-border-strong: rgba(44, 87, 146, 0.22);
    --mzya-fdg-bg: #ffffff;
    --mzya-fdg-soft: rgba(44, 87, 146, 0.055);
    --mzya-fdg-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.mzya-frontend-datagrid {
    width: 100%;
    min-width: 0;
    color: var(--mzya-fdg-text);
}

.mzya-datagrid-toolbar {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

.mzya-datagrid-toolbar__left,
.mzya-datagrid-search,
.mzya-datagrid-search__field {
    min-width: 0;
}

.mzya-datagrid-search__input {
    min-height: 40px !important;
    border-color: var(--mzya-fdg-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--mzya-fdg-text) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
}

.mzya-datagrid-search__input::placeholder {
    color: #94a3b8 !important;
    font-weight: 600;
}

.mzya-datagrid-search__input:focus {
    border-color: rgba(44, 87, 146, 0.56) !important;
    box-shadow: 0 0 0 4px rgba(44, 87, 146, 0.09) !important;
}

.mzya-datagrid-results,
.mzya-datagrid-mobile-results,
.mzya-datagrid-footer__summary {
    color: var(--mzya-fdg-text) !important;
}

.mzya-datagrid-per-page-toggle,
.mzya-datagrid-filter-toggle {
    min-height: 40px;
    border-color: var(--mzya-fdg-border) !important;
    border-radius: 12px !important;
    padding: 0 13px !important;
    background: #fff !important;
    color: var(--mzya-fdg-text) !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.mzya-datagrid-per-page-toggle:hover,
.mzya-datagrid-filter-toggle:hover,
.mzya-datagrid-filter-toggle.is-active {
    border-color: var(--mzya-fdg-border-strong) !important;
    background: rgba(44, 87, 146, 0.06) !important;
    color: var(--mzya-fdg-blue-dark) !important;
}

.mzya-datagrid-filter-toggle.is-active {
    box-shadow: inset 3px 0 0 var(--mzya-fdg-gold), 0 8px 18px rgba(15, 23, 42, 0.03);
}

[dir="rtl"] .mzya-datagrid-filter-toggle.is-active {
    box-shadow: inset -3px 0 0 var(--mzya-fdg-gold), 0 8px 18px rgba(15, 23, 42, 0.03);
}

.mzya-datagrid-table-wrap {
    border-color: var(--mzya-fdg-border) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: var(--mzya-fdg-shadow);
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 87, 146, 0.26) transparent;
}

.mzya-datagrid-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.mzya-datagrid-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(44, 87, 146, 0.26);
}

.mzya-datagrid-table {
    border-radius: 16px !important;
}

.mzya-datagrid-row {
    min-width: 720px;
    border-color: rgba(44, 87, 146, 0.09) !important;
}

.mzya-datagrid-row--head {
    background: linear-gradient(180deg, #f5f8fc 0%, #eef4fb 100%) !important;
    color: var(--mzya-fdg-text) !important;
    font-size: 12px !important;
    letter-spacing: 0.01em;
}

.mzya-datagrid-row:not(.mzya-datagrid-row--head):hover {
    background: linear-gradient(90deg, rgba(44, 87, 146, 0.045), rgba(228, 162, 36, 0.02)) !important;
}

.mzya-datagrid-cell,
.mzya-datagrid-row p {
    color: var(--mzya-fdg-text);
}

.mzya-datagrid-action {
    color: var(--mzya-fdg-blue) !important;
}

.mzya-datagrid-action:hover {
    background: rgba(44, 87, 146, 0.08) !important;
    color: var(--mzya-fdg-blue-dark) !important;
}

.mzya-datagrid-footer {
    min-width: 720px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-color: rgba(44, 87, 146, 0.10) !important;
}

.mzya-datagrid-page-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--mzya-fdg-blue);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.mzya-datagrid-page-button:hover:not(.is-disabled) {
    border-color: rgba(44, 87, 146, 0.16);
    background: var(--mzya-fdg-blue);
    color: #fff;
}

.mzya-datagrid-page-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.mzya-datagrid-page-input-wrap {
    min-height: 34px;
    border-inline: 1px solid rgba(44, 87, 146, 0.10);
}

.mzya-datagrid-page-input {
    width: 42px !important;
    height: 30px !important;
    min-height: 30px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(44, 87, 146, 0.075) !important;
    padding: 0 !important;
    text-align: center;
    color: var(--mzya-fdg-blue-dark) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.mzya-datagrid-page-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 87, 146, 0.10) !important;
}

.mzya-datagrid-page-total {
    min-width: max-content;
}

.mzya-datagrid-filter-apply.primary-button,
.mzya-datagrid-filter-apply {
    border-radius: 12px !important;
    background: var(--mzya-fdg-blue) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(44, 87, 146, 0.14);
}

.mzya-datagrid-filter-apply:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

@media (max-width: 767px) {
    .mzya-datagrid-toolbar {
        gap: 10px;
    }

    .mzya-datagrid-toolbar__left {
        width: 100%;
    }

    .mzya-datagrid-search__input {
        min-height: 42px !important;
        font-size: 16px !important;
    }

    .mzya-datagrid-per-page-toggle,
    .mzya-datagrid-filter-toggle {
        min-height: 38px;
        padding-inline: 11px !important;
    }

    .mzya-datagrid-row,
    .mzya-datagrid-footer {
        min-width: 660px;
    }

    .mzya-datagrid-footer {
        padding: 12px !important;
    }
}
