/* =====================================================
   XJM TOOLBOX – GDPR COOKIE NOTICE CSS
===================================================== */

/* =========================
   BANNER
========================= */

#xjm-cookie-banner.xjm-cookie-box {
  position: fixed !important;
  width: 420px !important;
  max-width: 95% !important;
  border-radius: 7px;
  box-shadow: 0 -1px 10px 0 rgba(0, 0, 0, 0.3);
  padding: 20px;
  z-index: 999999 !important;
  display: none;
  box-sizing: border-box !important;
  font-family: inherit;
}

#xjm-cookie-banner *, #xjm-cookie-banner *:before, #xjm-cookie-banner *:after {
  box-sizing: border-box !important;
}

/* Positions & Layouts */
#xjm-cookie-banner.xjm-position-bottom-right { bottom: 20px; right: 20px; width: 420px !important; }
#xjm-cookie-banner.xjm-position-bottom-left  { bottom: 20px; left: 20px; width: 420px !important; }
#xjm-cookie-banner.xjm-position-top-right    { top: 20px; right: 20px; width: 420px !important; }
#xjm-cookie-banner.xjm-position-top-left     { top: 20px; left: 20px; width: 420px !important; }
#xjm-cookie-banner.xjm-position-bottom-bar   { bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 0 !important; }
#xjm-cookie-banner.xjm-position-top-bar      { top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 0 !important; }
#xjm-cookie-banner.xjm-position-center       { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 480px !important; max-width: 95% !important; }

/* Close X */
#xjm-cookie-banner .xjm-cookie-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  opacity: .75;
}
#xjm-cookie-banner .xjm-cookie-close:hover { opacity: 1; }

/* Banner content spacing */
#xjm-cookie-banner .xjm-cookie-header h3 { margin: 0 0 0px !important; line-height: 1.3; }
#xjm-cookie-banner .xjm-cookie-body p { margin: 0px; line-height: 1.6; }

/* Banner buttons */
#xjm-cookie-banner .xjm-cookie-actions {
  display: flex;
  gap: 14px;
}
#xjm-cookie-banner .xjm-cookie-actions button {
  flex: 1;
  padding: 12px 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
#xjm-cookie-banner .xjm-cookie-actions button:hover {
  opacity: 0.9;
}
#xjm-cookie-banner .xjm-cookie-actions button:active {
  transform: scale(0.98);
}

/* Customize link */
#xjm-cookie-banner .xjm-cookie-links {
  text-align: center;
  margin-top: 5px !important;
}
#xjm-cookie-banner a.xjm-open-settings, #xjm-cookie-banner a.xjm-cookie-policy {
  cursor: pointer !important;
  text-decoration: underline !important;
  color: inherit;
  font-size: inherit;
}
#xjm-cookie-banner a.xjm-open-settings:hover, #xjm-cookie-banner a.xjm-cookie-policy:hover {
  text-decoration: none !important;
}

/* =========================
   MODAL
========================= */

html body #xjm-cookie-modal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,.55) !important;
  z-index: 2147483647 !important;
  font-family: inherit;
}

#xjm-cookie-modal *, #xjm-cookie-modal *:before, #xjm-cookie-modal *:after {
  box-sizing: border-box !important;
}

html body #xjm-cookie-modal.is-open {
  display: flex !important;
}

#xjm-cookie-modal .xjm-modal-content {
  width: 500px;
  max-width: 95%;
  background: #fff;
  color: #1c1c1c;
  border: 1px solid #aaaaaa;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 -1px 10px 0 rgba(0, 0, 0, 0.3);
}

#xjm-cookie-modal .xjm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 30px;
  line-height: 44px;
  text-align: center;
}

#xjm-cookie-modal h4 {
  margin: 0 0 12px;
  line-height: 1.3;
  color: inherit;
}

.xjm-modal-description {
  margin-bottom: 20px;
  color: inherit;
}

.xjm-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.xjm-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: inherit;
}

.xjm-modal-actions {
  display: flex;
  gap: 12px;
}

.xjm-modal-actions button {
  flex: 1;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.xjm-modal-actions button:hover {
  opacity: .92;
}

#xjm-cookie-modal #xjm-save-preferences {
  background: #4b7957;
  color: #fff;
  border: 1px solid #292911;
}

#xjm-cookie-modal .xjm-modal-reject {
  background: #eee;
  color: #aaa;
  border: 1px solid #aaa;
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 768px){
  #xjm-cookie-banner{
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    border-radius: 0 !important;
  }

  #xjm-cookie-banner.xjm-position-center{
    top: auto !important;
  }

  #xjm-cookie-banner .xjm-cookie-actions{
    flex-direction: column;
  }

  #xjm-cookie-banner .xjm-cookie-actions button{
    width: 100%;
  }

  #xjm-cookie-modal .xjm-modal-content{
    width: 95%;
    padding: 24px;
  }

  .xjm-modal-actions{
    flex-direction: column;
  }

  .xjm-modal-actions button{
    width: 100%;
  }
}

/* =========================================
   Floating Cookie Icon Button
========================================= */

.xjm-floating-cookie{
  position: fixed;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483646;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, opacity .2s ease;
  padding: 0;
}

.xjm-floating-cookie svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.xjm-floating-cookie.xjm-pos-left{
  left: 20px;
}

.xjm-floating-cookie.xjm-pos-right{
  right: 20px;
}

.xjm-floating-cookie:hover{
  transform: scale(1.08);
  opacity: .9;
}

@keyframes xjmPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.xjm-floating-cookie.pulse{
  animation: xjmPulse 2s infinite;
}
