/*
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%;
}

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

.custom-message-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100%, var(--byno-var-container-width, 1200px));
    margin: 0 auto 18px;
    padding: 16px 18px;
    border: 1px solid rgba(var(--byno-var-main-color-rgb, 0, 118, 202), 0.22);
    border-right: 4px solid var(--byno-var-main-color, #0076ca);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--byno-var-main-color-rgb, 0, 118, 202), 0.1), #fff);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    color: var(--byno-var-color-light-dark-text, #333);
    direction: rtl;
}

.custom-message-box p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
}

.custom-message-box .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--byno-var-main-color, #0076ca);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.custom-message-box .whatsapp-button:hover,
.custom-message-box .whatsapp-button:focus {
    background: #005fa3;
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--byno-var-main-color-rgb, 0, 118, 202), 0.22);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .custom-message-box {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
        padding: 14px;
    }

    .custom-message-box p {
        font-size: 14px;
    }

    .custom-message-box .whatsapp-button {
        width: 100%;
    }
}
