
/* Alef Book City payment page - app-like, isolated styling */
.abcq-page,
.abcq-page * { box-sizing: border-box; }

.abcq-page {
    direction: rtl;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 36px;
    background: #f4f6fa;
    color: #172033;
    font-family: inherit;
}

.abcq-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.abcq-header {
    text-align: center;
    margin: 0 auto 22px;
}
.abcq-header h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: clamp(23px, 5vw, 29px);
    line-height: 1.5;
    font-weight: 800;
    font-family: Vazirmatn, "IRANSans", Tahoma, sans-serif;
}
.abcq-header p {
    margin: 0;
    color: #748096;
    font-size: 13px;
    line-height: 1.8;
}
.abcq-cards { display: grid; gap: 18px; }

.abcq-card {
    --abcq-card-bg: #24458f;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 218px;
    overflow: hidden;
    padding: 22px 23px 18px;
    border: 0;
    border-radius: 22px;
    background-color: var(--abcq-card-bg, #24458f) !important;
    background-image: none;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(23, 39, 76, .16);
}
.abcq-card::before,
.abcq-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}
.abcq-card::before {
    width: 230px; height: 230px;
    left: -95px; top: -125px;
}
.abcq-card::after {
    width: 170px; height: 170px;
    left: -50px; top: -90px;
    border-color: rgba(255,255,255,.09);
}

.abcq-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.abcq-bank-name {
    color: #fff !important;
    font-family: Vazirmatn, "IRANSans", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 800;
}
.abcq-bank-logo-wrap,
.abcq-brand-logo-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.abcq-bank-logo-wrap { width: 68px; height: 58px; }
.abcq-bank-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent !important;
}
.abcq-copy-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin: 13px 0 12px;
    padding: 9px 3px;
    border: 0;
    border-radius: 12px;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.abcq-copy-button:active { transform: scale(.985); }
.abcq-copy-button:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 3px;
}
.abcq-card-number {
    direction: ltr;
    white-space: nowrap;
    color: #fff !important;
    font-family: Vazirmatn, "IRANSans", Tahoma, sans-serif;
    font-size: clamp(19px, 5.2vw, 25px);
    font-weight: 800;
    letter-spacing: .8px;
    font-variant-numeric: tabular-nums;
    text-shadow: none !important;
}
.abcq-copy-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 30px;
    color: #fff !important;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    line-height: 1.4;
}
.abcq-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
}
.abcq-card-holder {
    color: #fff !important;
    font-family: Vazirmatn, "IRANSans", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 800;
}
.abcq-brand-logo-wrap { width: 78px; height: 58px; }
.abcq-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent !important;
}
.abcq-brand-name { color: #fff !important; font-size: 12px; font-weight: 800; }
.abcq-copy-status {
    position: absolute;
    left: 14px;
    bottom: 13px;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(0,0,0,.28);
    color: #fff !important;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
}
.abcq-copy-status:not(:empty) { opacity: 1; }
.abcq-empty {
    padding: 24px;
    text-align: center;
    border: 1px dashed #c9ced8;
    border-radius: 14px;
    color: #687080;
    background: #fff;
    font-size: 13px;
}

/* Hide only the WordPress theme chrome on this shortcode page.
   Do not reset site-wide containers, article backgrounds, or images. */
body.abcq-payment-page header#masthead,
body.abcq-payment-page header.site-header,
body.abcq-payment-page .site-header,
body.abcq-payment-page .main-header-bar,
body.abcq-payment-page .ast-primary-header-bar,
body.abcq-payment-page .elementor-location-header,
body.abcq-payment-page .wp-block-template-part.header,
body.abcq-payment-page #colophon,
body.abcq-payment-page footer#colophon,
body.abcq-payment-page footer.site-footer,
body.abcq-payment-page .site-footer,
body.abcq-payment-page .elementor-location-footer,
body.abcq-payment-page .wp-block-template-part.footer,
body.abcq-payment-page .entry-header,
body.abcq-payment-page .entry-title,
body.abcq-payment-page .page-title,
body.abcq-payment-page .page-header,
body.abcq-payment-page .post-title,
body.abcq-payment-page .wp-block-post-title {
    display: none !important;
}

/* Keep theme layout intact; only remove spacing around the shortcode content. */
body.abcq-payment-page .entry-content,
body.abcq-payment-page .page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
@media (max-width: 600px) {
    .abcq-page { min-height: 100svh; padding: 22px 13px 30px; }
    .abcq-container { max-width: 520px; }
    .abcq-card { min-height: 210px; padding: 20px 18px 17px; border-radius: 20px; }
    .abcq-card-number { font-size: clamp(17px, 4.8vw, 22px); letter-spacing: .35px; }
    .abcq-bank-logo-wrap { width: 62px; height: 54px; }
    .abcq-brand-logo-wrap { width: 72px; height: 54px; }
    .abcq-card-holder { font-size: 14px; }
}
@media (max-width: 360px) {
    .abcq-page { padding-right: 10px; padding-left: 10px; }
    .abcq-card { padding-right: 14px; padding-left: 14px; }
    .abcq-card-number { font-size: 16px; letter-spacing: 0; }
}


/* v1.4.1: hide all theme footer variants on the payment page only. */
body.abcq-payment-page footer,
body.abcq-payment-page [role="contentinfo"],
body.abcq-payment-page #footer,
body.abcq-payment-page #footer-wrap,
body.abcq-payment-page #colophon,
body.abcq-payment-page .footer,
body.abcq-payment-page .footer-wrap,
body.abcq-payment-page .footer-area,
body.abcq-payment-page .footer-bottom,
body.abcq-payment-page .footer-top,
body.abcq-payment-page .footer-widgets,
body.abcq-payment-page .footer-bar,
body.abcq-payment-page .footer-menu,
body.abcq-payment-page .footer-navigation,
body.abcq-payment-page .site-info,
body.abcq-payment-page .copyright,
body.abcq-payment-page .elementor-location-footer,
body.abcq-payment-page .wp-block-template-part.footer {
    display: none !important;
}

/* A restrained gradient that respects each card's individually selected color. */
body.abcq-payment-page .abcq-card {
    background-color: var(--abcq-card-bg, #24458f) !important;
    background-image: linear-gradient(
        125deg,
        color-mix(in srgb, var(--abcq-card-bg, #24458f) 88%, #ffffff) 0%,
        var(--abcq-card-bg, #24458f) 54%,
        color-mix(in srgb, var(--abcq-card-bg, #24458f) 91%, #000000) 100%
    ) !important;
}


/* v1.4.2: visually remove white image canvases on card logos.
   Multiply blends white pixels into the card background while retaining
   the logo artwork; this does not modify the original media files. */
body.abcq-payment-page .abcq-bank-logo,
body.abcq-payment-page .abcq-brand-logo {
    mix-blend-mode: multiply !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Prevent theme image styles from adding a panel around either logo. */
body.abcq-payment-page .abcq-bank-logo-wrap,
body.abcq-payment-page .abcq-brand-logo-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* v1.4.3: remove the theme's top navigation/header chrome from the QR payment page.
   Scope is limited to pages containing the Alef QR shortcode. The WordPress admin bar
   remains available to logged-in administrators. */
body.abcq-payment-page header:not(.abcq-header),
body.abcq-payment-page nav,
body.abcq-payment-page [role="navigation"],
body.abcq-payment-page .main-navigation,
body.abcq-payment-page .primary-navigation,
body.abcq-payment-page .site-navigation,
body.abcq-payment-page .header-navigation,
body.abcq-payment-page .header-menu,
body.abcq-payment-page .primary-menu,
body.abcq-payment-page .main-menu,
body.abcq-payment-page .menu-primary-container,
body.abcq-payment-page .menu-main-menu-container,
body.abcq-payment-page .elementor-nav-menu,
body.abcq-payment-page .elementor-widget-nav-menu,
body.abcq-payment-page .wp-block-navigation,
body.abcq-payment-page .navbar,
body.abcq-payment-page .top-bar,
body.abcq-payment-page .header-top,
body.abcq-payment-page .header-bottom,
body.abcq-payment-page .header-wrapper,
body.abcq-payment-page .header-inner,
body.abcq-payment-page .site-branding,
body.abcq-payment-page #site-navigation,
body.abcq-payment-page #primary-menu,
body.abcq-payment-page #masthead,
body.abcq-payment-page #header,
body.abcq-payment-page #header-wrap,
body.abcq-payment-page #top-header,
body.abcq-payment-page .ast-desktop-header,
body.abcq-payment-page .ast-mobile-header-wrap,
body.abcq-payment-page .elementor-location-header,
body.abcq-payment-page .wp-site-blocks > header {
    display: none !important;
}

/* Remove any theme-inserted top spacing left behind after its header is hidden. */
body.abcq-payment-page,
body.abcq-payment-page #page,
body.abcq-payment-page .site,
body.abcq-payment-page .site-content,
body.abcq-payment-page #content,
body.abcq-payment-page .content-area,
body.abcq-payment-page .site-main,
body.abcq-payment-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
