/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


.acf-field-wysiwyg html body *,p,ul,ol{
    margin:1px;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.ui_tpicker_second{
    display:none;
}

.cbm-event-calendar .event:hover::after, .cbm-event.event:hover::after {
    pointer-events: none; /* This ensures the tooltip doesn't block interactions */
    content: attr(data-tooltip);
    position: absolute;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    max-width: 250px;
    min-width: 150px;

    z-index: 10;
    opacity: 0.95;
}
.event[data-tooltip="Aucune description"]::after{
    font-style: italic;
}

@keyframes punchBlink{
    0%, 100%    {color:red;background-color:#ffffff66;}
    50% 	    {color:#330066;background-color:#ffffff66;}
}
@keyframes opacityBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

/* ================================================================
   READ‑ONLY / LOCKED SELECT2
   ────────────────────────────────────────────────────────────── */
.select2-container--default.locked .select2-selection--single {
    background: var(--bricks-color-bg-disabled, #f5f5f5);  /* light grey fallback */
    border-color: var(--bricks-color-border-disabled, #d0d0d0);
    color: var(--bricks-color-text-disabled, #666);
    cursor: default;                   /* arrow changes to default */
    opacity: .85;                      /* subtle “inactive” feel   */
    position: relative;
}

.select2-container--default.locked .select2-selection--single
.select2-selection__arrow               { display:none; }  /* hide ▼ */

.select2-container--default.locked .select2-selection--single::after {
    content: "🔒";                     /* lock emoji – swap for svg if you like */
    position: absolute;
    right: .75em;                      /* lines up where the arrow used to be  */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    pointer-events:none;               /* arrow already blocked in JS; keep UI inert */
}

