/**
 * WooCommerce single-product WhatsApp button styling.
 *
 * This stylesheet is loaded only on the front-end and enhances the look of
 * the WhatsApp button injected into product pages (the .nta-woo-products-button
 * wrapper). It deliberately scopes rules under that wrapper so they do not
 * affect the floating widget or shortcode buttons used elsewhere.
 *
 * Specificity is intentionally raised to override styles that ship inside the
 * minified assets/dist/css/style.css.
 */

/* Layout: make the button(s) sit on their own line with consistent spacing. */
.nta-woo-products-button {
    clear: both;
    display: block;
    margin: 18px 0;
    width: 100%;
}

.nta-woo-products-button + .nta-woo-products-button {
    margin-top: 12px;
}

/* The anchor button produced by njtWhatsApp.createButton. */
.nta-woo-products-button .wa__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    min-height: 50px;
    padding: 12px 20px !important;
    margin: 0 auto;
    box-sizing: border-box;

    background-color: #25D366 !important;
    color: #ffffff !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;

    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);

    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.nta-woo-products-button .wa__button:hover,
.nta-woo-products-button .wa__button:focus {
    background-color: #1ebd5b !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
    text-decoration: none;
}

.nta-woo-products-button .wa__button:active {
    transform: translateY(1px);
}

/* Keep the WhatsApp icon/avatar visually balanced next to the label. */
.nta-woo-products-button .wa__button .wa__btn_icon,
.nta-woo-products-button .wa__button .wa__cs_img {
    flex: 0 0 auto;
    margin-inline-end: 10px;
}

.nta-woo-products-button .wa__button .wa__btn_icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.nta-woo-products-button .wa__button .wa__cs_img_wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Label block. */
.nta-woo-products-button .wa__button .wa__btn_txt {
    text-align: start;
}

.nta-woo-products-button .wa__button .wa__btn_title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
}

/* When an account name/status block is present, soften the secondary text. */
.nta-woo-products-button .wa__button .wa__cs_name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
}

.nta-woo-products-button .wa__button .wa__cs_status {
    font-size: 11px;
    opacity: 0.85;
    color: #ffffff !important;
}

/* On narrow screens let the button breathe but stay full-width. */
@media (max-width: 480px) {
    .nta-woo-products-button .wa__button {
        max-width: 100%;
        font-size: 14px;
    }
}

/* Respect right-to-left languages (Persian). */
.rtl .nta-woo-products-button .wa__button {
    text-align: center;
}

.rtl .nta-woo-products-button .wa__button .wa__btn_icon,
.rtl .nta-woo-products-button .wa__button .wa__cs_img {
    margin-inline-end: 10px;
    margin-right: 0;
}
