/*!
Theme Name:   Monument Valley Child
Template:     monument-valley
Theme URI:    https://github.com/webmandesign/child-theme/
Author:       WebMan Design
Author URI:   https://www.webmandesign.eu/
Version:      1.0.0
Description:  You can change this description text in your child theme's "style.css" file.
License:      GNU General Public License v3
License URI:  http://www.gnu.org/licenses/gpl-3.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Put your custom CSS styles below... */
add_action('wp_enqueue_scripts', function () {
    // nach Eventin-CSS laden (Priority 20+)
    $css = <<<CSS
/* dein CSS – scoped aufs Eventin-Template */
body.etn-template-default .etn-ticket-wrapper{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:20px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
body.etn-template-default .etn-ticket-wrapper .etn-ticket-title{font-weight:700;font-size:1.1rem;color:#1e2a47;margin-bottom:6px}
body.etn-template-default .etn-ticket-wrapper .etn-ticket-price,
body.etn-template-default .etn-ticket-wrapper .etn-ticket-qty,
body.etn-template-default .etn-ticket-wrapper .etn-ticket-subtotal{display:inline-block;margin-right:12px;vertical-align:middle}
body.etn-template-default .etn-ticket-wrapper .etn-qty-btn,
body.etn-template-default .etn-ticket-wrapper .etn-cart-qty button,
body.etn-template-default .etn-ticket-wrapper .quantity button{background:#3a6ee8;color:#fff;border:none;border-radius:8px;padding:4px 10px;cursor:pointer}
CSS;

    // An ein vorhandenes Stylesheet anhängen (Fallback: an Theme-Styles anhängen)
    wp_add_inline_style('eventin-frontend', $css);       // Handle kann je nach Version 'eventin-frontend' / 'etn-frontend' sein
    wp_add_inline_style('wp-block-library', $css);        // Fallback, falls obiger Handle nicht existiert
}, 20);
/* TEST */
body { outline: 4px dashed hotpink !important; }
