/* Extracted from event/alert.php.
   Linked from that same file so the cascade order is unchanged. */

#conf-alert-card {
          position: fixed;
          bottom: 30px;
          right: -550px;
          width: 450px;
          max-width: 90%;
          z-index: 2147483647;
          transition: right 0.8s cubic-bezier(0.19, 1, 0.22, 1);
       }

       #conf-alert-card.conf-active {
          right: 30px !important;
       }

       .conf-container {
          background: #7e1e2f;
          border-radius: 24px;
          padding: 30px;
          position: relative;
          box-shadow: 0 25px 50px -12px rgba(126, 30, 47, 0.5);
          border: 1px conf rgba(255, 255, 255, 0.1);
          overflow: hidden;
       }

       .conf-progress-track {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 5px;
          background: rgba(0, 0, 0, 0.2);
       }

       /* RL-49: see the matching block in event/css/app.event.css. `width` is a
          layout property, so the old rule re-ran layout every frame for 20s.
          scaleX is compositor-only and visually identical. */
       #conf-progress-fill {
          height: 100%;
          background: #ffffff;
          width: 100%;
          transform: scaleX(0);
          transform-origin: left center;
          transition: transform 20s linear;
          will-change: transform;
       }

       @media (prefers-reduced-motion: reduce) {
          #conf-progress-fill { transition-duration: 0.01ms; }
          .alert-dot::after { animation: none; }
       }

       .conf-content {
          display: flex;
          gap: 20px;
          align-items: flex-start;
       }

       .conf-icon-circle {
          width: 40px;
          height: 40px;
          background: #ffffff;
          border-radius: 16px;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-shrink: 0;
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
       }

       .conf-title {
          color: #ffffff;
          font-size: 18px;
          font-weight: 600;
          margin: 0 0 10px 0;
          text-transform: uppercase;
          letter-spacing: 0.5px;
       }

       .conf-message {
          color: rgba(255, 255, 255, 0.9);
          font-size: 15px;
          line-height: 1.6;
          margin: 0;
       }

       .conf-message strong {
          color: #ffffff;
          text-decoration: underline;
       }

       #conf-close-btn {
          position: absolute;
          top: 15px;
          right: 15px;
          background: rgba(255, 255, 255, 0.1);
          border: 1px conf rgba(255, 255, 255, 0.2);
          color: #ffffff;
          width: 30px;
          height: 30px;
          border-radius: 50%;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: bold;
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
       }

       #conf-close-btn.ready {
          opacity: 1;
          visibility: visible;
       }

       #conf-close-btn:hover {
          background: #ffffff;
          color: #7e1e2f;
       }
