/*
Theme Name: Osty (Child Theme)
Theme URI: http://madsparrow.us/
Author: Mad Sparrow
Author URI: https://themeforest.net/user/madsparrow
Description: Osty Creative Agency and Portfolio Theme – The theme is built to take advantage of the Full Site Editing features introduced in WordPress and Elementor plugin, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready, page transition
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osty
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Template: osty
*/

/* Add your own modification from here
-------------------------------------------------------------- */


/* =========================================
   Make deposit/variation Add to Cart exactly
   like the normal Business Launch Kit button
   ========================================= */

/* Fix bugs in CSS */
.ms-single-product .ms-single-product__content .price{padding: 5px;}
.ms-single-product .ms-single-product__content .stock, .ms-single-product .ms-single-product__content .woocommerce-product-details__short-description{padding: 20px 0px;}
.wc-block-cart .wc-block-cart-items th,
.wc-block-cart .wc-block-cart-items th span,
.wc-block-cart .wc-block-cart-items td {
    color: inherit !important;
    border-color: currentColor !important;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text{color:#000;padding: 20px;}
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    width: fit-content;
    max-width: min(90%, 680px);
    margin: 32px auto 40px auto;
    padding: 18px 28px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* خلية الإجراءات */
.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* شكل الأزرار الأساسي */
.woocommerce-orders-table__cell-order-actions .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 14px !important;
    margin: 0 !important;
    border-radius: 10px;
    border: 1px solid transparent !important;
    background: rgba(127,127,127,.08) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: all .2s ease;
}

/* عرض */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.view {
    color: inherit !important;
    background: rgba(127,127,127,.08) !important;
    border-color: rgba(127,127,127,.18) !important;
}

/* الدفع */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.pay {
    color: #111 !important;
    background: #e8c06a !important;
    border-color: #e8c06a !important;
}

/* إلغاء */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.cancel {
    color: #fff !important;
    background: #b85b5b !important;
    border-color: #b85b5b !important;
}

/* Hover */
.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

/* إزالة الفاصل القديم لو موجود */
.woocommerce-orders-table__cell-order-actions .woocommerce-button::after {
    content: none !important;
}

/* موبايل */
@media (max-width: 767px) {
    .woocommerce-orders-table__cell-order-actions {
        gap: 8px;
    }

    .woocommerce-orders-table__cell-order-actions .woocommerce-button {
        min-width: 68px;
        padding: 7px 12px !important;
        font-size: 13px;
    }
}
.woocommerce-order-details td a.woocommerce-button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 9px 16px !important;
    margin: 0 8px 8px 0 !important;
    border-radius: 10px;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    transition: all .2s ease;
}

.woocommerce-order-details td a.woocommerce-button.button.pay {
    background: #e8c06a !important;
    border-color: #e8c06a !important;
    color: #111 !important;
}

.woocommerce-order-details td a.woocommerce-button.button.cancel {
    background: #b85b5b !important;
    border-color: #b85b5b !important;
    color: #fff !important;
}

.woocommerce-order-details td a.woocommerce-button.button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

body.rtl .woocommerce-order-details td a.woocommerce-button.button {
    margin: 0 0 8px 8px !important;
}

/* Hide only the second quantity inside variation/deposit add-to-cart area */
.single-product .variations_form .woocommerce-variation-add-to-cart .ms-quantity,
.single-product .variations_form .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

/* Hide Additional Information tab title */
.single-product #tab-title-additional_information,
.single-product .additional_information_tab {
    display: none !important;
}

/* Hide Additional Information panel */
.single-product #tab-additional_information,
.single-product .woocommerce-Tabs-panel--additional_information {
    display: none !important;
}

/* NWERA menu visibility by login status */
.user-logged-in .nwera-show-logged-out {
    display: none !important;
}

.user-logged-out .nwera-show-logged-in {
    display: none !important;
}
body:not(.logged-in) .nwera-show-logged-in {
    display: none !important;
}

/* Hide SKU / Categories / Tags block on single product page */
.single-product .product_meta {
    display: none !important;
}

/* =========================================
   NWERA - Product page payment currency block
   ========================================= */

/* البلوك كله في سطر واحد */
.single-product .nwera-payment-currency-block {
    margin: 12px 0 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* عنوان السويتشر */
.single-product .nwera-payment-currency-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    color: inherit;
}

/* شيل أي ستايل box/widget من WPML */
.single-product .nwera-payment-currency-block .wcml_currency_switcher,
.single-product .nwera-payment-currency-block .wcml-horizontal-list,
.single-product .nwera-payment-currency-block .wcml-horizontal-list.product {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: block !important;
    width: auto;
}

/* العناصر في سطر */
.single-product .nwera-payment-currency-block ul {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* كل عنصر */
.single-product .nwera-payment-currency-block li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-flex;
    align-items: center;
}

/* نشيل أي فاصل افتراضي */
.single-product .nwera-payment-currency-block li + li::before {
    content: none;
}

/* شكل زرار العملة */
.single-product .nwera-payment-currency-block a {
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 2px solid #cfcfcf;
    border-radius: 5px;
    background: transparent;
    transition: all .2s ease;
}

/* العملة الحالية */
.single-product .nwera-payment-currency-block .wcml-cs-active-currency a {
    border-color: #f0bc5e;
    color: inherit;
    opacity: 1;
}

/* العملة غير الحالية */
.single-product .nwera-payment-currency-block li:not(.wcml-cs-active-currency) a {
    border-color: #cfcfcf;
    color: inherit;
    opacity: 1;
}

/* hover */
.single-product .nwera-payment-currency-block a:hover {
    border-color: #f0bc5e;
    color: inherit;
}

/* إخفاء حالة التوفر في صفحة المنتج */
.single-product .stock.in-stock,
.single-product .stock.out-of-stock,
.single-product .stock.available-on-backorder,
.single-product .stock-notification {
    display: none !important;
}

/* أيقونة Booking */
.woocommerce-MyAccount-navigation-link--booking a::after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 20px;
    background-color: currentColor;
    opacity: .45;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 15H5V10h14zm0-11H5V6h14z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 15H5V10h14zm0-11H5V6h14z'/></svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* أيقونة Payment methods */
.woocommerce-MyAccount-navigation-link--payment-methods a::after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 20px;
    background-color: currentColor;
    opacity: .45;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 14H4v-7h16zm0-11H4V6h16z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 14H4v-7h16zm0-11H4V6h16z'/></svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* شكل fallback لو الـ role مش معروف */
.nwera-booking-fallback {
    padding: 24px;
    border-radius: 18px;
    background: rgba(127,127,127,.06);
}

.nwera-booking-fallback-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nwera-booking-fallback-buttons .button {
    border-radius: 12px;
    padding: 10px 18px;
}

/* Featured */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* ليبل مميز */
.nwera-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #2e7d32;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    white-space: nowrap;
}

/* لو فيه ليبل تخفيض، حرّك مميز جنبه */
.nwera-featured-badge.has-sale-badge {
    left: 92px;
}

/* تحسين شكل ليبل التخفيض لو حبيت */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    z-index: 11;
    white-space: nowrap;
}