/*
Theme Name: Buyno Child
Theme URI: https://shokrino.com
Author: Matin Shokri
Author URI: https://shokrino.com/make
Description: A clean, upgrade-safe child theme for Buyno with design tokens, quick font tools, custom hook slots, and developer-friendly extension points.
Template: buyno
Requires at least: 5.3
Tested up to: 6.5.5
Requires PHP: 7.4
Version: 1.0.0
License: All Rights Reserved for Shokrino Team.
Text Domain: buyno-child
Domain Path: /languages
*/

.buyno-child-hook-slot {
    width: 100%;
}

.byno-orders-status-tabs {
    display: none !important;
}

.buyno-child-hidden {
    display: none !important;
}

.byno-suggestion-category {
    display: none !important;
}

a.byno-suggestion-item {
    color: inherit;
    display: block;
    text-decoration: none;
}

a.byno-suggestion-title {
    text-decoration: none;
}

a.byno-suggestion-title:hover {
    color: var(--byno-var-main-color);
}

.single-product .byno-product-overview-text,
.single-product .byno-product-overview-text table,
.single-product .byno-product-overview-text th,
.single-product .byno-product-overview-text td,
.single-product .byno-product-overview-text a,
.single-product .byno-product-overview-text span,
.single-product .byno-product-overview-text strong,
.single-product .byno-product-overview-text em,
.single-product .byno-product-quick-specs,
.single-product .byno-product-quick-specs table,
.single-product .byno-product-quick-specs th,
.single-product .byno-product-quick-specs td,
.single-product .byno-product-quick-specs a {
    -webkit-user-select: text !important;
    user-select: text !important;
}

img.pws-method-image {
    mix-blend-mode: multiply !important;
}

#shipping_method .byno-shipping-delivery-note {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    border-right: 3px solid #f59e0b !important;
    border-radius: 8px !important;
    background: #fffbeb !important;
    color: #92400e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.9 !important;
}

#shipping_method .byno-shipping-delivery-note-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #f59e0b !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.single-product .buyno-child-product-edit-date {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0084ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    direction: rtl;
}

.single-product .buyno-child-product-edit-date__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
}

.single-product .buyno-child-product-edit-date__icon img,
.single-product .buyno-child-product-edit-date__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.single-product .buyno-child-product-edit-date__text {
    min-width: 0;
}

.single-product .buyno-child-in-person-purchase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 92px;
    margin-top: -6px;
    padding: 18px 16px 18px clamp(145px, 36%, 230px);
    align-items: flex-start;
    background: #0f766e;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.single-product .buyno-child-in-person-purchase::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -2;
    width: 46%;
    background-image: url('assets/images/in-person-purchase.jpg');
    background-position: left center;
    background-size: cover;
    opacity: 0.74;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}

.single-product .buyno-child-in-person-purchase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0) 0%, rgba(15, 118, 110, 0.72) 38%, #0f766e 58%);
    pointer-events: none;
}

.single-product .buyno-child-in-person-purchase>* {
    position: relative;
    z-index: 1;
}

.single-product .buyno-child-in-person-purchase .buyno-child-product-edit-date__icon {
    background: rgba(255, 255, 255, 0.22);
}


.single-product .buyno-child-in-person-purchase__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.single-product .buyno-child-in-person-purchase__button {
    align-self: flex-start;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f766e;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    padding: 6px 12px;
}

.buyno-child-store-address-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(17, 24, 39, 0.48);
    direction: rtl;
}

.buyno-child-store-address-modal.is-open {
    display: flex;
}

.buyno-child-store-address-modal__panel {
    position: relative;
    width: min(100%, 440px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
    color: #1f2937;
    padding: 22px;
}

.buyno-child-store-address-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.buyno-child-store-address-modal__title {
    display: block;
    margin: 0 0 14px;
    color: #0f766e;
    font-size: 17px;
    font-weight: 800;
}

.buyno-child-store-address-modal__address,
.buyno-child-store-address-modal__hours {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
}

.buyno-child-store-address-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.buyno-child-store-address-modal__primary,
.buyno-child-store-address-modal__secondary {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    padding: 9px 13px;
    text-decoration: none;
}

.buyno-child-store-address-modal__primary {
    background: #0f766e;
    color: #fff;
}

.buyno-child-store-address-modal__primary:hover,
.buyno-child-store-address-modal__primary:focus,
.buyno-child-store-address-modal__primary:visited {
    color: #fff;
}

.buyno-child-store-address-modal__secondary {
    background: #eef2f7;
    color: #1f2937;
}

.buyno-child-store-address-modal__secondary.is-copied {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 480px) {
    .single-product .buyno-child-in-person-purchase {
        min-height: 0;
        gap: 8px;
        padding: 12px;
        align-items: flex-start;
    }

    .single-product .buyno-child-in-person-purchase::before {
        width: 100%;
        opacity: 0.42;
        background-position: left center;
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 88%);
        mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 88%);
    }

    .single-product .buyno-child-in-person-purchase::after {
        background: linear-gradient(90deg, rgba(15, 118, 110, 0.18) 0%, rgba(15, 118, 110, 0.72) 38%, #0f766e 78%);
    }

    .single-product .buyno-child-in-person-purchase .buyno-child-product-edit-date__icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .single-product .buyno-child-in-person-purchase__content {
        flex: 1 1 100%;
        gap: 7px;
        align-items: stretch;
        width: 100%;
    }

    .single-product .buyno-child-in-person-purchase .buyno-child-product-edit-date__text {
        display: block;
        width: 100%;
        font-size: 11px;
        line-height: 1.85;
    }

    .single-product .buyno-child-in-person-purchase__button {
        align-self: flex-start;
        max-width: 100%;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.7;
        padding: 5px 10px;
    }
}