<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<div class="drop-popup-section modal fade position-fixed" id="share-Modal-popup" aria-hidden="true"
    data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered">
        <div class="kirb-modal-content drop-section">
            <div class="modal-header">
                <div class="heading-h5 modal-title"><?php echo esc_html('Share'); ?></div>
                <div class="pera-content">
                    <?php echo esc_html('Share this amazing product with your friends and family.'); ?>
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="img-section">
                    <img src="<?php echo esc_url($diamond['imageurl']); ?>"
                        onerror="this.src='<?php echo esc_url(kirb_getShapeErrorImage($diamond['shape'])); ?>';this.onerror=null;"
                        width="107">
                    <div class="pera-content"><?php echo esc_html(kirb_string_split_translate($diamond['title'], $kirb_filter_values_translation_mapping)); ?></div>
                </div>
                <div class="modal__share__section">
                    <div class="modal__share__icon_wrapper">
                        <a href="#" class="modal__share__icons facebook" title="Facebook" id="share_facebook" target="_blank"></a>
                        <a href="#" class="modal__share__icons pinterest" title="Pinterest" id="share_pinterest"
                            target="_blank"></a>
                    </div>
                    <p><?php echo esc_html('Or copy link to share'); ?></p>
                    <div class="modal__copy__link">
                        <span id="pageLinkText"></span>
                        <div class="copy-url cpy-button" title="<?php echo esc_html('Copy'); ?>">
                            <img src="<?php echo esc_html(KIRB_PLUGIN_DIR) ?>/assets/images/copy-url.png" loading="lazy"
                                alt="product image" width="50" height="50">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>