/* Masluland PWA install banner — bottom, RTL, light card with gold accents.
   Rendered only on the cyclic 5th visit (see ml-pwa.js); non-blocking. */

#ml-pwa-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 460px;
    margin: 0 auto;
    z-index: 99998; /* above content, below any modal overlays */
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    background: #f4f1eb;
    color: #1a1a1a;
    border: 1px solid rgba(221, 184, 139, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    font-family: 'Rubik', sans-serif;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#ml-pwa-banner.ml-pwa-banner--visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-pwa-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #DDB88B;
    background: #1a1a1a;
}

.ml-pwa-banner__text {
    flex: 1;
    min-width: 0;
}
.ml-pwa-banner__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.ml-pwa-banner__subtitle {
    font-size: 12.5px;
    color: #555;
    line-height: 1.35;
    margin-top: 2px;
}

.ml-pwa-banner__install {
    flex-shrink: 0;
    border-radius: 8px;
    padding: 9px 18px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
/* Force-neutralize the brand :focus / :active accent (#D85A30) that the parent
   theme paints over buttons — same family as the ✕ fix above. Without this the
   full gold button turns into a pink outline with pink text after a tap/focus. */
.ml-pwa-banner__install,
.ml-pwa-banner__install:hover,
.ml-pwa-banner__install:focus,
.ml-pwa-banner__install:focus-visible,
.ml-pwa-banner__install:active {
    background: #DDB88B !important;   /* full gold */
    color: #1a1a1a !important;        /* dark text */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}
.ml-pwa-banner__install:hover {
    background: #d0a973 !important;    /* keep the existing hover */
}

.ml-pwa-banner__ios-hint {
    flex-shrink: 0;
    max-width: 130px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #1a1a1a;
    background: rgba(221, 184, 139, 0.25);
    border-radius: 8px;
    padding: 7px 10px;
    text-align: center;
}

.ml-pwa-banner__close {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    align-self: flex-start;
}
/* Force-neutralize the pink box around ✕ in EVERY state. A global :focus /
   :active outline (brand orange #D85A30) that iOS keeps applied after a tap,
   or a stray border, can only be beaten with !important. :focus-visible is in
   the same selector on purpose → no ring at all: mouse, touch, or keyboard. */
.ml-pwa-banner__close,
.ml-pwa-banner__close:hover,
.ml-pwa-banner__close:focus,
.ml-pwa-banner__close:focus-visible,
.ml-pwa-banner__close:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    color: #b3a89a !important;   /* clean muted ✕ glyph */
}
