/*
Theme Name: Essentials Child
Theme URI: https://essentials.pixfort.com/
Author: PixFort
Template: essentials
Author URI: http://themeforest.net/user/pixfort
Description: Essentials child theme
Version: 1.0.2
License: Envato Marketplaces Split Licence
License URI: https://themeforest.net/licenses/standard
Text Domain: essentials-child
Tags: header-builder, footer-builder, divider-builder, popup-builder, premium-design, translation-ready

*/

/* Match the home slider button on donation product pages. */
body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"],
.msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 64px;
    padding: 16px 32px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: #0a4e27 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"]:hover,
.msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 78, 39, .2);
}
body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"]:focus-visible,
.msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"]:focus-visible {
    outline: 3px solid #329e56;
    outline-offset: 3px;
}
body.single-product .wcdp-body .msf-donation-button-label,
.msf-home-donate .wcdp-body .msf-donation-button-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: rtl;
}
body.single-product .wcdp-body .msf-donation-button-icon,
.msf-home-donate .wcdp-body .msf-donation-button-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
}
body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"] .wcdp-arrow,
.msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"] .wcdp-arrow {
    display: none;
}
@media (max-width: 480px) {
    body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"],
    .msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"] {
        padding: 16px 24px !important;
        font-size: 18px !important;
    }
}

/* Align amount selection marks and the custom amount field in RTL forms. */
body.single-product .wcdp-body .wcdp_amount > li > label,
.msf-home-donate .wcdp-body .wcdp_amount > li > label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 32px;
    box-sizing: border-box;
}
body.single-product .wcdp-body .wcdp_amount > li > input:checked + label::after,
.msf-home-donate .wcdp-body .wcdp_amount > li > input:checked + label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    right: auto;
    width: 20px;
    height: 20px;
    padding: 0;
    transform: translateY(-50%);
    /* Essentials icon Duotone/pixfort-icon-check-circle-1, in white; the plugin's own mask-drawn tick is switched off. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 20 20'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23fff' fill-opacity='.25' d='M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 Z'/%3E%3Cpath fill='%23fff' d='M15.2928932,8.29289322 C15.6834175,7.90236893 16.3165825,7.90236893 16.7071068,8.29289322 C17.0976311,8.68341751 17.0976311,9.31658249 16.7071068,9.70710678 L11.2071068,15.2071068 C10.8165825,15.5976311 10.1834175,15.5976311 9.79289322,15.2071068 L7.29289322,12.7071068 C6.90236893,12.3165825 6.90236893,11.6834175 7.29289322,11.2928932 C7.68341751,10.9023689 8.31658249,10.9023689 8.70710678,11.2928932 L10.5,13.085 L15.2928932,8.29289322 Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat !important;
    -webkit-mask: none !important;
    mask: none !important;
    margin: 0 !important;
    pointer-events: none;
}
body.single-product .wcdp-body .wcdp_amount > li > input.wcdp_value_other:checked + label,
.msf-home-donate .wcdp-body .wcdp_amount > li > input.wcdp_value_other:checked + label {
    display: block;
    padding: 8px 12px;
    text-align: start;
}
body.single-product .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field,
.msf-home-donate .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    width: 100%;
    margin: 0 auto;
}
body.single-product .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field input.wcdp-donation-amount,
.msf-home-donate .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field input.wcdp-donation-amount {
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 3px 8px;
    box-sizing: border-box;
    text-align: center;
}
body.single-product .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field > .woocommerce-Price-currencySymbol,
.msf-home-donate .wcdp-body .wcdp_value_other:checked + label .wcdp_cu_field > .woocommerce-Price-currencySymbol {
    grid-row: 2;
    display: block;
    width: 100%;
    padding-inline-end: 30px;
    box-sizing: border-box;
    text-align: start;
    line-height: 22px;
}
body.single-product .wcdp-body .wcdp_amount > li > input.wcdp_value_other:checked + label::after,
.msf-home-donate .wcdp-body .wcdp_amount > li > input.wcdp_value_other:checked + label::after {
    top: auto;
    bottom: 10px;
    transform: none;
}

/* Essentials 4.3.2: contain the partners carousel's RTL overflow on scroll. */
body.home .elementor-element-68a3bdc {
    overflow: hidden;
}

/* Keep the lower header's desktop dropdown connected to its hover target. */
@media (min-width: 992px) {
    .pix-header-stack .navbar-hover-drop .navbar-nav > .menu-item-has-children > .dropdown-menu {
        margin-top: 0 !important;
    }
}

/* Remove the default RTL list indent from the lower-header navigation. */
@media (min-width: 992px) {
    .pix-header-stack .navbar-nav {
        padding-inline-start: 0;
    }
}

/* Display the 600px partner artwork on equal, rounded square tiles. */
body.home .elementor-element-68a3bdc .client > span {
    display: flex !important;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
}
body.home .elementor-element-68a3bdc .client {
    opacity: 1 !important;
}
body.home .elementor-element-68a3bdc .client img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
    filter: none !important;
}
@media (max-width: 767px) {
    body.home .elementor-element-68a3bdc .pixfort-slider-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }
    body.home .elementor-element-68a3bdc .swiper-pagination-bullet {
        margin: 0 !important;
        flex-shrink: 0;
    }
}

/* Keep article cards focused on the story, with more compact Arabic titles. */
article.type-post .card .pix-post-meta-author {
    display: none !important;
}
article.type-post .card .entry-title {
    font-size: 22px !important;
    line-height: 1.4;
}
article.type-post .card .entry-title .pix-blog-post-title {
    font-size: inherit !important;
    line-height: inherit;
}
@media (max-width: 767px) {
    article.type-post .card .entry-title {
        font-size: 20px !important;
    }
}

/* Keep WooCommerce block checkout inside the page container in RTL layouts. */
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide {
    width: 100%;
    max-width: 100%;
    margin-inline: 0 !important;
    transform: none !important;
}

/* Match FOC's 12px gap before the checkout country selector. */
body.woocommerce-checkout .wc-block-checkout__form .wc-block-components-address-form__country .wc-blocks-components-select {
    margin-top: 12px;
}

/* Keep donation choices and product details inside narrow phone screens. */
@media (max-width: 767px) {
    body.single-product .wcdp-body .wcdp_amount,
    .msf-home-donate .wcdp-body .wcdp_amount {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100%;
    }
    body.single-product .wcdp-body .wcdp_amount > li,
    .msf-home-donate .wcdp-body .wcdp_amount > li {
        min-width: 0;
        max-width: 100%;
    }
    body.single-product .wcdp-body .wcdp_amount > li > label,
    .msf-home-donate .wcdp-body .wcdp_amount > li > label {
        min-width: 0;
        width: 100%;
        min-height: 56px;
        height: 100%;
        padding: 10px 30px;
        font-size: 16px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    body.single-product .wcdp-body .button-row,
    .msf-home-donate .wcdp-body .button-row {
        display: flex;
        justify-content: center;
    }
    body.single-product .wcdp-body .button-row > button.wcdp-button[type="submit"],
    .msf-home-donate .wcdp-body .button-row > button.wcdp-button[type="submit"] {
        float: none !important;
        margin-inline: auto !important;
        box-sizing: border-box;
    }
    body.single-product .msf-donation-button-label > span,
    .msf-home-donate .msf-donation-button-label > span {
        min-width: 0;
    }
    body.single-product .woocommerce-tabs > .nav {
        padding-inline: 0;
        margin-inline: 0;
        width: 100%;
    }
    body.single-product .woocommerce-tabs > .nav > .flex-fill {
        flex: 1 1 0 !important;
        min-width: 0;
    }
    body.single-product .woocommerce-tabs .tab-content {
        padding-inline: 20px;
        box-sizing: border-box;
    }
}

/* Keep the WooCommerce cart block inside the page container in RTL layouts. */
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
    width: 100%;
    max-width: 100%;
    margin-inline: 0 !important;
    transform: none !important;
}
@media (max-width: 359px) {
    body.woocommerce-cart .wc-block-cart-items {
        table-layout: fixed;
    }
    body.woocommerce-cart .wc-block-cart-item__image {
        width: 25% !important;
    }
    body.woocommerce-cart .wc-block-cart-item__product {
        width: 55% !important;
        min-width: 0 !important;
    }
    body.woocommerce-cart .wc-block-cart-item__total {
        width: 20% !important;
    }
}

/* Keep homepage hero text readable over all three slide photographs. */
.elementor-3340 .elementor-element-1f02f18 .slider-content-row h3,
.elementor-3340 .elementor-element-1f02f18 .slider-content-row p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 4px 16px rgba(0, 0, 0, .4);
}

/* Stop Mastercard hosted-session card fields from growing without limit.
   session.js copies the hidden input's width onto its iframe; as flex items with
   min-width:auto the wrappers grew to fit, adding the input's padding each tick. */
body.woocommerce-checkout .payment-core-payment-form-blocks > .wc-block-components-text-input {
    min-width: 0;
}
body.woocommerce-checkout .payment-core-payment-form-blocks iframe[class^="gw-proxy-"] {
    max-width: 100%;
}

/* ---- About pages (عن المؤسسة / مجلس الأمناء / إدارة المؤسسة), 2026-11-09 ---- */
/* Uniform photo crops for Elementor pix-img widgets tagged with these CSS classes. */
.msf-card-img img,
.msf-cover-tall img,
.msf-portrait img {
    width: 100%;
    object-fit: cover;
}
.msf-card-img img { aspect-ratio: 16 / 10; }
.msf-cover-tall img { aspect-ratio: 4 / 3.4; }
.msf-portrait img { aspect-ratio: 4 / 4.6; object-position: center 20%; }
.msf-shadow-img .pix-img-el {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 78, 39, .18);
}
/* Cards whose image runs edge to edge. */
.msf-clip > .elementor-widget-wrap { overflow: hidden; align-content: flex-start; }
/* Board member cards: same shape for every photo, readable text over the photo. */
.msf-team-card .pix-team-card { overflow: hidden; }
.msf-team-card .pix-team-card .card-img {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center 22%;
}
.msf-team-card .pix-team-card .card-img-overlay {
    background: linear-gradient(to top, rgba(6, 46, 23, .96) 0%, rgba(6, 46, 23, .82) 30%, rgba(6, 46, 23, 0) 58%) !important;
    border-radius: inherit;
    padding: 22px 18px;
}
.msf-team-card .pix-member-name { font-size: 19px; line-height: 1.5; margin-bottom: 4px !important; }
.msf-team-card .pix-member-title { color: #9FE0B4 !important; font-size: 14px; margin-bottom: 6px !important; }
.msf-team-card .pix-member-desc { line-height: 1.6; margin-bottom: 0; }
.msf-rich p { margin-bottom: 1em; line-height: 1.9; }
.msf-rich p:last-child { margin-bottom: 0; }
/* Activities page: jump links land below the sticky header. */
.msf-anchor { scroll-margin-top: 120px; }
/* Donate-ways page (طرق التبرع): logos, account numbers, courier form. */
.elementor-widget-pix-img.msf-logo .pix-img-el { text-align: center !important; }
.elementor-widget-pix-img.msf-logo img.pix-img-elem {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 80px !important;
    object-fit: contain;
    margin: 0 auto !important;
    display: block;
}
@media (max-width: 767px) {
    .elementor-widget-pix-img.msf-logo img.pix-img-elem { max-width: 170px !important; max-height: 64px !important; }
}
.msf-account, .msf-account * {
    direction: ltr;
    font-size: 22px;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    user-select: all;
}
.msf-account .pix-el-text { background: #EEF6F0; border-radius: 10px; padding: 10px 12px; }
.msf-code { font-size: 26px; font-weight: 700; color: #0a4e27; }
.msf-form label { display: block; width: 100%; font-weight: 600; margin-bottom: 14px; }
.msf-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.msf-form input:not([type="submit"]),
.msf-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dfe5e1;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    font-weight: 400;
}
.msf-form input:focus, .msf-form select:focus { border-color: #329e56; outline: none; box-shadow: 0 0 0 3px rgba(50, 158, 86, .15); }
.msf-form .msf-form-subtitle { margin: 10px 0 16px; padding-top: 16px; border-top: 1px solid #eef1ef; }
.msf-form .msf-form-submit { text-align: center; margin-top: 10px; }
.msf-form input[type="submit"] {
    min-width: 200px;
    min-height: 52px;
    border: 0;
    border-radius: 50px;
    background: #0a4e27;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}
.msf-form input[type="submit"]:hover { background: #329e56; }
.msf-account p, .msf-account .resp-option { margin: 0 !important; padding: 0 !important; }
.msf-account .pix-el-text { padding: 12px !important; }
.msf-code { margin-bottom: 0 !important; }
.msf-code { direction: ltr; unicode-bidi: isolate; text-align: right; }
.elementor-widget-pix-img.msf-logo img.pix-img-elem { max-width: min(220px, 100%) !important; }
@media (max-width: 767px) { .elementor-widget-pix-img.msf-logo img.pix-img-elem { max-width: min(170px, 100%) !important; } }
/* Site forms (.msf-form): one look for every field (theme's .form-control squares off the RTL left corners and only reaches some fields). */
.msf-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-acceptance) {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px;
    border: 1px solid #dfe5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .08) !important;
    background-color: #fff !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.5;
    color: #212529 !important;
}
.msf-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-acceptance):focus {
    border-color: #329e56 !important;
    box-shadow: 0 0 0 3px rgba(50, 158, 86, .15) !important;
    outline: none;
}
.msf-form .wpcf7-form-control::placeholder { color: #9aa5a0; opacity: 1; }
/* Date field: same text alignment as the other fields, calendar icon tinted to match. */
.msf-form .wpcf7-date { text-align: right; font-family: inherit; }
.msf-form .wpcf7-date::-webkit-datetime-edit { padding: 0; color: #212529; }
.msf-form .wpcf7-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .6;
    filter: invert(22%) sepia(60%) saturate(700%) hue-rotate(100deg);
    margin: 0;
}
.msf-form .wpcf7-date:invalid::-webkit-datetime-edit { color: #9aa5a0; }
/* Form dropdowns: custom chevron inset from the edge (RTL: arrow on the left). */
.msf-form select.wpcf7-form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a4e27' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 18px center !important;
    background-size: 12px 8px !important;
    padding-left: 44px !important;
    cursor: pointer;
}
.msf-form select.wpcf7-form-control::-ms-expand { display: none; }
.msf-form select.wpcf7-form-control { padding-top: 0 !important; padding-bottom: 0 !important; line-height: normal !important; }

/* Forms: textareas and radio choices. */
.msf-form textarea.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-acceptance) { height: 120px !important; min-height: 120px; resize: vertical; }
.msf-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.msf-form .wpcf7-radio .wpcf7-list-item { margin: 0; }
.msf-form .wpcf7-radio .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border: 1px solid #dfe5e1; border-radius: 50px; background: #fff; font-weight: 600; cursor: pointer; }
.msf-form .wpcf7-radio input[type="radio"] { accent-color: #0a4e27; width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
.msf-form .wpcf7-radio .wpcf7-list-item label:has(input:checked) { border-color: #329e56; background: #EEF6F0; }
.msf-form .msf-field-hint { display: block; font-weight: 400; font-size: 13px; color: #6c757d; margin-top: 2px; }
.msf-form .msf-form-subtitle.msf-form-first { margin-top: 0; padding-top: 0; border-top: 0; }
.msf-form .msf-mt { margin-top: 18px; }
.msf-shadow-img.msf-mt { margin: 20px 0 24px; }
/* Contact page map. */
.msf-map .elementor-custom-embed, .msf-map iframe { border-radius: 16px; overflow: hidden; display: block; }
.msf-map { box-shadow: 0 8px 30px rgba(10, 78, 39, .08); border-radius: 16px; }
/* Archive pagination: Essentials' index.php hard-codes LTR arrows; mirror them in RTL so "next" points left. */
body.rtl .pix-pagination .prev svg,
body.rtl .pix-pagination .next svg { transform: scaleX(-1); }
/* Cart page: donations have no unit price, so hide the "0 جنيه" under each item (the line total shows the amount). */
.wc-block-cart .wc-block-cart-item__prices { display: none !important; }
/* Cart page suggestions (latest cases + programs) under the cart. */
.msf-cart-suggestions { margin-top: 70px; padding-top: 50px; border-top: 1px solid #e6ebe8; }
.msf-cart-suggestions__title { margin-bottom: 6px; }
.msf-cart-suggestions__intro { color: #6c757d; margin-bottom: 30px; }
.msf-cart-suggestions__row-title { font-size: 22px; margin: 30px 0 16px; }
.msf-cart-suggestions__row-title a { color: inherit; text-decoration: none; }
.msf-cart-suggestions__row-title a:hover { color: #329e56; }
@media (max-width: 767px) {
    /* Two suggestion cards per row on phones instead of eight stacked cards. */
    .msf-cart-suggestions ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin: 0 !important;
    }
    .msf-cart-suggestions ul.products::before,
    .msf-cart-suggestions ul.products::after { display: none !important; }
    .msf-cart-suggestions ul.products > li.product {
        width: auto !important;
        max-width: none !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .msf-cart-suggestions ul.products > li.product .pix-p-20 { padding: 12px !important; }
    .msf-cart-suggestions ul.products > li.product h2,
    .msf-cart-suggestions ul.products > li.product .woocommerce-loop-product__title { font-size: 14px !important; line-height: 1.5; }
    .msf-cart-suggestions { margin-top: 40px; padding-top: 30px; }
}
@media (max-width: 767px) {
    /* Narrow two-up cards: keep the case progress label inside its bar. */
    .msf-cart-suggestions .msf-donation-card-progress .wcdp-label {
        font-size: 11px !important;
        white-space: nowrap;
        padding-inline: 6px !important;
        letter-spacing: 0;
        display: flex !important;
        align-items: center;
        height: 100%;
        top: 0 !important;
        line-height: 1 !important;
    }
}
/* Cart page: donations have no quantity, so hide the quantity box entirely (the remove/bin link stays). */
.wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector { display: none !important; }

/* Free-amount donation field (products with no preset amounts, e.g. zakat): one rounded box with "جنيه" inside on the left. */
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    font-size: 0;
}
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > br,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > br { display: none; }
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > label,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > label {
    grid-row: 1;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount {
    grid-row: 2;
    grid-column: 1;
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 18px 0 72px !important;
    box-sizing: border-box;
    border: 1px solid #dfe5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #0a4e27;
    font-family: inherit;
    font-size: 22px !important;
    font-weight: 700;
    text-align: start;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount::-webkit-outer-spin-button,
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount::-webkit-inner-spin-button,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount::-webkit-outer-spin-button,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount:focus,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > input.wcdp-donation-amount:focus {
    border-color: #329e56 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 158, 86, .15) !important;
}
body.single-product .wcdp-body #wcdp_va_amount > .wcdp-amount > .woocommerce-Price-currencySymbol,
.msf-home-donate .wcdp-body #wcdp_va_amount > .wcdp-amount > .woocommerce-Price-currencySymbol {
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    align-self: center;
    position: relative;
    margin-inline-end: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eef6f0;
    color: #0a4e27;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
}
/* Product description: give a later subheading room after a list or paragraph. */
body.single-product #pills-description > :is(p, ul, ol) + h3 { margin-top: 32px; }

/* Zakat calculator page (/zakat-calculator/): fields on the right, sticky result card on the left. */
.msf-zakat { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; text-align: start; }
.msf-zakat .msf-zk-fields { display: grid; gap: 20px; min-width: 0; }
.msf-zakat .msf-zk-group { background: #fff; border-radius: 16px; padding: 26px 28px; box-shadow: 0 8px 30px rgba(10, 78, 39, .08); }
.msf-zakat .msf-zk-group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 20px; font-weight: 700; color: #0a4e27; }
.msf-zakat .msf-zk-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(22, 168, 84, .15); }
.msf-zakat .msf-zk-ic svg { width: 24px; height: 24px; fill: none; stroke: #0a4e27; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.msf-zakat .msf-zk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.msf-zakat .msf-zk-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.msf-zakat .msf-zk-field label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #495057; line-height: 1.5; }
.msf-zakat .msf-zk-input { position: relative; }
.msf-zakat .msf-zk-input input {
    width: 100%; height: 50px; margin: 0; padding: 0 16px 0 64px; box-sizing: border-box;
    border: 1px solid #dfe5e1 !important; border-radius: 10px !important; background: #fff !important; box-shadow: none !important;
    font-family: inherit; font-size: 18px; font-weight: 700; color: #0a4e27; text-align: start;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.msf-zakat .msf-zk-input input::placeholder { color: #b5bdb8; font-weight: 400; }
.msf-zakat .msf-zk-input input:focus { border-color: #329e56 !important; outline: none; box-shadow: 0 0 0 3px rgba(50, 158, 86, .15) !important; }
.msf-zakat .msf-zk-input span {
    position: absolute; top: 50%; left: 7px; transform: translateY(-50%); pointer-events: none;
    padding: 5px 9px; border-radius: 7px; background: #eef6f0; color: #0a4e27; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.msf-zakat .msf-zk-metal { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: #f6f9f7; }
.msf-zakat .msf-zk-metal-title { font-weight: 700; color: #212529; }
.msf-zakat .msf-zk-metal .msf-zk-field label { margin-bottom: 4px; font-size: 13px; font-weight: 500; color: #6c757d; }
.msf-zakat .msf-zk-metal .msf-zk-input input { height: 44px; padding-left: 58px; font-size: 16px; }
.msf-zakat .msf-zk-result { position: sticky; top: 130px; }
.msf-zakat .msf-zk-result-card {
    padding: 30px 26px; border-radius: 20px; color: #fff; text-align: center;
    background: linear-gradient(135deg, #0a4e27 0%, #329e56 100%); box-shadow: 0 16px 40px rgba(10, 78, 39, .25);
}
.msf-zakat .msf-zk-result-label { font-size: 17px; font-weight: 600; opacity: .95; }
.msf-zakat .msf-zk-amount { margin: 16px 0 12px; padding: 18px 12px; border-radius: 14px; background: #fff; }
.msf-zakat .msf-zk-amount strong { display: block; font-size: 44px; line-height: 1.15; color: #0a4e27; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.msf-zakat .msf-zk-amount span { display: block; margin-top: 4px; font-size: 14px; color: #6c757d; }
.msf-zakat .msf-zk-base { font-size: 14px; opacity: .9; }
.msf-zakat .msf-zk-base span { font-weight: 700; }
.msf-zakat .msf-zk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin: 20px 0 16px;
    padding: 12px 24px; box-sizing: border-box; border-radius: 50px; background: #ff9900; color: #fff !important;
    font-size: 19px; font-weight: 700; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.msf-zakat .msf-zk-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.msf-zakat .msf-zk-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); background: #f08c00; }
.msf-zakat .msf-zk-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.msf-zakat .msf-zk-note { margin: 0; font-size: 13px; line-height: 1.7; opacity: .85; }
@media (max-width: 1199px) {
    .msf-zakat { grid-template-columns: minmax(0, 1fr) 320px; }
    .msf-zakat .msf-zk-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .msf-zakat { grid-template-columns: minmax(0, 1fr); }
    .msf-zakat .msf-zk-result { position: static; }
}
@media (max-width: 767px) {
    .msf-zakat .msf-zk-group { padding: 20px 16px; }
    .msf-zakat .msf-zk-grid3 { grid-template-columns: minmax(0, 1fr); }
    .msf-zakat .msf-zk-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .msf-zakat .msf-zk-metal { padding: 12px 10px; }
    .msf-zakat .msf-zk-metal .msf-zk-input input { padding-left: 50px; padding-right: 10px; }
    .msf-zakat .msf-zk-metal .msf-zk-input span { left: 5px; padding: 4px 6px; font-size: 12px; }
    .msf-zakat .msf-zk-amount strong { font-size: 38px; }
}
/* Keep the three asset boxes level when one label wraps to two lines. */
.msf-zakat .msf-zk-grid3 .msf-zk-field { display: flex; flex-direction: column; }
.msf-zakat .msf-zk-grid3 .msf-zk-field label { flex: 1 0 auto; }
/* The theme colours <p> dark grey; keep the result card's note light on the green. */
.msf-zakat .msf-zk-result-card .msf-zk-note { color: rgba(255, 255, 255, .85) !important; opacity: 1; }

/* Mobile menu: show every item without scrolling. The theme caps the open menu at 70vh and gives each link
   49px; tighten the links and let the menu use the screen height left under the header. */
@media (max-width: 991px) {
    .pix-header.pix-header-mobile .navbar-collapse.pix-menu-element { max-height: calc(100vh - 150px) !important; max-height: calc(100dvh - 150px) !important; }
    .pix-header-mobile .navbar-collapse .navbar-nav > li > a.nav-link { padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.5 !important; }
    .pix-header.pix-header-mobile .navbar-collapse .dropdown-menu .submenu-box a.dropdown-item { padding-top: 5px !important; padding-bottom: 5px !important; line-height: 1.5 !important; }
}

/* Home hero (slider 1f02f18): dark-green gradient behind the slide text. Moved here from the widget's
   Custom CSS box, which only Elementor Pro outputs (not installed), so it never reached the live site.
   Desktop: green from the text side (right) fading to transparent. Phones/tablets: the text spans the
   width, so the green rises from the bottom and fades out towards the top. */
.elementor-3340 .elementor-element-1f02f18 .pix-slider-has-thumbnails .pixfort-slide-inner { position: relative; }
.elementor-3340 .elementor-element-1f02f18 .pix-slider-has-thumbnails .pixfort-slide-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0, 25, 12, .55) 0%, rgba(0, 25, 12, .35) 45%, transparent 80%);
}
.elementor-3340 .elementor-element-1f02f18 .pix-slider-has-thumbnails .slider-content-row { position: relative; z-index: 2; }
@media (min-width: 992px) {
    .elementor-3340 .elementor-element-1f02f18 .slider-content-row > .col-12 { flex: 0 0 60%; max-width: 60%; }
}
@media (max-width: 991px) {
    .elementor-3340 .elementor-element-1f02f18 .pix-slider-has-thumbnails .pixfort-slide-inner::after {
        background: linear-gradient(to top, rgba(0, 25, 12, .85) 0%, rgba(0, 25, 12, .7) 45%, rgba(0, 25, 12, .35) 80%, transparent 100%);
    }
}

/* ---- My Account login (2026-11-11) ----
   pixfort's .pix-style checkbox is LTR-only (padding-left + margin-left:-29px box),
   and pix-woo-style forces text-align:left on the Woo login/register forms. */
html[dir="rtl"] .woocommerce form.login,
html[dir="rtl"] .woocommerce form.register,
html[dir="rtl"] .woocommerce form.checkout_coupon {
    text-align: right;
}
html[dir="rtl"] .pix-style[class*="form-check"] > label {
    padding-left: 0 !important;
    padding-right: 29px !important;
    text-align: right;
}
html[dir="rtl"] .pix-style[class*="form-check"] > input:first-child + label::before,
html[dir="rtl"] .pix-style[class*="form-check"] > input:first-child + input[type="hidden"] + label::before {
    margin-left: 0;
    top: 0;
    right: 0;
    left: auto;
}
html[dir="rtl"] .pix-style[class*="form-check"] > input[type="checkbox"]:first-child:checked + label::after,
html[dir="rtl"] .pix-style[class*="form-check"] > input[type="checkbox"]:first-child:checked + input[type="hidden"] + label::after {
    left: auto;
    right: 0;
    transform: translate(-6.5px, 2px) rotate(45deg);
}
html[dir="rtl"] .pix-style[class*="form-check"] > input[type="radio"]:first-child:checked + label::after,
html[dir="rtl"] .pix-style[class*="form-check"] > input[type="radio"]:first-child:checked + input[type="hidden"] + label::after {
    left: auto;
    right: 5px;
}
html[dir="rtl"] .pix-style[class*="form-check"] > input:first-child {
    left: auto;
    right: 0;
}
.woocommerce-form-login .lost_password {
    text-align: center;
}
.woocommerce-form-login .lost_password a {
    margin-left: 0;
    margin-right: 0;
}
.woocommerce-form-login .lost_password .pixfort-icon {
    display: none;
}
.woocommerce-form-login button[name="login"],
.woocommerce-form-register button[name="register"],
.woocommerce .woocommerce-ResetPassword button[type="submit"] {
    border-radius: 9999px;
}
/* Reset-password button: Woo's plain .button → same look as the login button (btn-primary shadow-lg shadow-hover) */
.woocommerce .woocommerce-ResetPassword button.button {
    background-color: #0a4e27;
    color: #f3fdf7;
    font-size: 14px;
    font-weight: 700;
    line-height: 25.2px;
    padding: 9px 30px;
    border: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .05), 0 24px 35.2px 0 rgba(0, 0, 0, .1);
    transition: background-color .15s ease-in-out, color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.woocommerce .woocommerce-ResetPassword button.button:hover,
.woocommerce .woocommerce-ResetPassword button.button:focus {
    background-color: #083c1e;
    color: #e1fbec;
    box-shadow: 0 .125rem .375rem rgba(0, 0, 0, .05), 0 .625rem 1.5rem rgba(0, 0, 0, .15);
}
.woocommerce .woocommerce-ResetPassword button.button:active {
    background-color: #042110;
    color: #fff;
}
/* Mastercard card fields (2026-11-11): session.js copies the hidden input's computed style into each card iframe,
   so the page's RTL made "4111 1111 …" show its digit groups reversed. Numbers read LTR; keep them right-aligned. */
input.wc-credit-card-form-card.gw-proxied {
    direction: ltr;
    text-align: right;
}
/* Card fields were 13px (plugin: font-size:1em inside a 13px wrapper); iOS Safari zooms the page when a
   field under 16px is focused. session.js copies this size into the card iframes. */
.wc-block-components-form .payment-core-payment-form-blocks .wc-block-components-text-input input[type="text"].wc-credit-card-form-card.gw-proxied,
input.wc-credit-card-form-card.gw-proxied {
    font-size: 16px;
}
/* Cart / checkout buttons rounded like the theme's btn-rounded (2026-11-11):
   block cart "إتمام التبرع", block checkout "تقديم طلب" (+ any other block button, e.g. coupon apply),
   and the mini-cart sidebar "عرض السلة" / "إتمام الطلب". */
body .wc-block-components-button:not(.is-link),
body .woocommerce-mini-cart__buttons a.button {
    border-radius: 9999px;
}
/* "بوابة الدفع بدعم من" + NBE logo under the card fields (2026-11-11). The Mastercard payment box is rendered
   by the plugin's React code, so this is a pseudo-element on the box rather than markup.
   display:table shrink-wraps text + logo so margin:auto centres them as one line; logo sits after the text (left, RTL). */
.wc-block-components-radio-control-accordion-content:has(> .payment-core-payment-form-blocks)::after {
    content: "بوابة الدفع بدعم من";
    display: table;
    margin: 14px auto 0;
    padding-left: 146px;
    min-height: 36px;
    line-height: 36px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: url("assets/img/nbe-logo.svg") no-repeat left center / auto 36px;
}
/* Visa / Mastercard / Meeza badges at the end of the Egypt card option's title row (2026-11-11).
   Badges: WooCommerce's payment-methods-cards visa/mastercard + Kashier plugin's meeza in a matching frame
   (assets/img/payment-cards.svg, 125×25). Label keeps room on the left so the title wraps instead of overlapping.
   WooCommerce uses this ::after as a separator line (and hides it on the first option), hence the long selector + resets. */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud"] {
    padding-left: 153px;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud"]::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 125px;
    height: 25px;
    margin-top: -12.5px;
    border: 0;
    background: url("assets/img/payment-cards.svg") no-repeat center / contain;
    pointer-events: none;
}
@media (max-width: 480px) {
    .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud"] {
        padding-left: 122px;
    }
    .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud"]::after {
        left: 12px;
        width: 100px;
        height: 20px;
        margin-top: -10px;
    }
}
/* Outside-Egypt card option: Visa + Mastercard only (assets/img/payment-cards-vm.svg, 82×25). Same mechanics as above. */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud_outside"] {
    padding-left: 110px;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud_outside"]::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 82px;
    height: 25px;
    margin-top: -12.5px;
    border: 0;
    background: url("assets/img/payment-cards-vm.svg") no-repeat center / contain;
    pointer-events: none;
}
@media (max-width: 480px) {
    .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud_outside"] {
        padding-left: 88px;
    }
    .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option label.wc-block-components-radio-control__option[for="radio-control-wc-payment-method-options-mastercard_merchant_cloud_outside"]::after {
        left: 12px;
        width: 66px;
        height: 20px;
        margin-top: -10px;
    }
}
