/* تطبيق رواد على App Store — قسم الفوتر وبطاقة آيفون (includes/app-promo.tpl) */
:root {
    --rh-app-ink: #1b2228;
    --rh-app-lime: #b5c700;
    --rh-app-muted: #656565;
}

/* شارة Apple الرسمية: بلا تعديل، وارتفاعها 40px على الأقل، ومساحة فارغة حولها */
.rh-app-badge-link {
    display: inline-block;
    padding: 4px 0;
    line-height: 0;
    border-radius: 10px;
}
.rh-app-badge-link:focus-visible {
    outline: 2px solid var(--rh-app-ink);
    outline-offset: 3px;
}
.rh-app-badge {
    display: block;
    height: 45px;
    width: auto;
}

/* ===== الفوتر: سطر واحد ===== */
.rh-app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 1.5rem;
}
.rh-app-footer__label {
    color: var(--rh-app-muted);
    font-size: .875rem;
}
.rh-app-footer .rh-app-badge {
    height: 40px;
}

/* ===== بطاقة آيفون ===== */
.rh-app-sheet {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483000; /* فوق شارة reCAPTCHA */
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 20px 14px;
    background: #fff;
    color: var(--rh-app-ink);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .22), 0 0 0 1px rgba(0, 0, 0, .05);
    transform: translateY(calc(100% + 40px));
    transition: transform .42s cubic-bezier(.2, .9, .25, 1);
    touch-action: pan-x;
}
.rh-app-sheet[hidden] {
    display: none;
}
.rh-app-sheet.is-open {
    transform: translateY(0);
}
.rh-app-sheet.is-dragging {
    transition: none;
}
.rh-app-sheet__grabber {
    width: 36px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: #d4d4d8;
}
.rh-app-sheet__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f4f5;
    color: #52525b;
    cursor: pointer;
}
.rh-app-sheet__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline-end: 36px;
}
.rh-app-sheet__icon {
    width: 60px;
    height: 60px;
    flex: none;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.rh-app-sheet__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
}
.rh-app-sheet__sub {
    margin: 2px 0 0;
    color: var(--rh-app-muted);
    font-size: .875rem;
}
.rh-app-sheet__list {
    margin: 16px 0 14px;
    padding: 0;
    list-style: none;
}
.rh-app-sheet__list li {
    position: relative;
    padding: 7px 0;
    padding-inline-start: 30px;
    font-size: .9375rem;
    line-height: 1.5;
}
.rh-app-sheet__list li::before {
    content: "";
    position: absolute;
    top: 8px;
    inset-inline-start: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rh-app-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%231b2228' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.rh-app-badge-link--sheet {
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 6px 0;
}
.rh-app-badge-link--sheet .rh-app-badge {
    height: 54px;
}
.rh-app-sheet__later {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rh-app-muted);
    font: inherit;
    font-size: .9375rem;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .rh-app-sheet {
        transition: opacity .2s;
        transform: none;
        opacity: 0;
    }
    .rh-app-sheet.is-open {
        opacity: 1;
    }
}
