/* Silktide Consent Manager – RTL & Hebrew (clean) */

#silktide-wrapper {
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #000000, 0 0 0 6px #ffffff;
  --boxShadow: -5px 5px 10px 0px #00000012, 0px 0px 50px 0px #0000001a;
  --fontFamily: "Heebo","Rubik","Assistant","Helvetica Neue","Segoe UI",Arial,sans-serif;
  --primaryColor: #AFE3FF;
  --backgroundColor: #070219;
  --textColor: #E5F6FA;
  --backdropBackgroundColor: #00000033;
  --backdropBackgroundBlur: 0px;
  --cookieIconColor: #AFE3FF;
  --cookieIconBackgroundColor: #070219;

  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl;
  text-align: right;
}

/* Backdrop (internal) */
#silktide-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--backdropBackgroundColor);
  backdrop-filter: blur(var(--backdropBackgroundBlur));
  pointer-events: all;
}

/* Links */
#silktide-wrapper a { all: unset; display: inline-block; color: var(--primaryColor); text-decoration: underline; }
#silktide-wrapper a:hover { cursor: pointer; color: var(--textColor); }

/* Buttons */
#silktide-wrapper .st-button {
  color: var(--backgroundColor);
  background-color: var(--primaryColor);
  border: 2px solid var(--primaryColor);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
#silktide-wrapper .st-button--secondary { background-color: var(--backgroundColor); color: var(--primaryColor); }
#silktide-wrapper .st-button--primary:hover { background-color: var(--backgroundColor); color: var(--primaryColor); }
#silktide-wrapper .st-button--secondary:hover { background-color: var(--primaryColor); color: var(--backgroundColor); }

/* Disabled buttons look */
#silktide-wrapper .st-button[disabled],
#silktide-wrapper .st-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Banner */
#silktide-banner {
  font-family: var(--fontFamily);
  color: var(--textColor);
  background-color: var(--backgroundColor);
  box-sizing: border-box;
  padding: 32px;
  border-radius: 5px;
  pointer-events: auto;
  border: 0;
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 600px;
  max-width: calc(100% - 32px);
  overflow: auto;
  max-height: calc(100vh - 32px);
  transform: translate(0, -20px);
  opacity: 0;
  animation: silktide-slideInDown 350ms ease-out forwards;
  animation-delay: .3s;
  box-shadow: var(--boxShadow);
}
#silktide-banner.bottomLeft { left: 16px; right: auto; }
#silktide-banner.bottomCenter { left: 50%; right: auto; transform: translate(-50%, -20px); animation: silktide-slideInDown-bottomCenter 350ms ease-out forwards; }
#silktide-banner p { font-size: 16px; line-height: 24px; margin: 0 0 15px; }
#silktide-banner .actions { display: flex; gap: 16px; flex-direction: column; margin-top: 24px; }
@media (min-width: 600px) { #silktide-banner .actions { flex-direction: row; align-items: center; } }
#silktide-banner .actions-row { display: flex; gap: 16px; flex-direction: row; align-items: center; justify-content: space-between; flex-grow: 1; }
#silktide-banner .preferences { display: flex; gap: 5px; border: none; padding: 15px 0; background: transparent; color: var(--primaryColor); cursor: pointer; font-size: 16px; }
#silktide-banner .preferences:after { display: block; content: '‹'; }

/* Modal */
#silktide-modal {
  display: none;
  pointer-events: auto;
  overflow: auto;
  width: 800px;
  max-width: 100%;
  transform: translate(0,-20px);
  opacity: 0;
  animation: silktide-slideInUp-center 350ms ease-out forwards;
  box-shadow: var(--boxShadow);
  font-family: var(--fontFamily);
  color: var(--textColor);
  flex-direction: column;
  padding: 30px;
  background: var(--backgroundColor);
  border-radius: 5px;
  box-sizing: border-box;
}
#silktide-modal header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; gap:16px; }
#silktide-modal h1{ font-size:24px; font-weight:600; margin:0; }
#silktide-modal p{ font-size:16px; line-height:24px; margin:0 0 15px; }
#silktide-modal fieldset{ padding:0; border:none; margin:0 0 32px; }
#silktide-modal legend{ margin:0 0 10px; font-weight:700; font-size:16px; }

/* Switches */
#silktide-modal .switch{ position:relative; display:inline-block; height:34px; width:74px; cursor:pointer; flex-shrink:0; }
#silktide-modal .switch input{ opacity:0; position:absolute; }
#silktide-modal .switch__pill{ display:block; height:34px; width:74px; background:var(--textColor); border-radius:25px; position:relative; }
#silktide-modal .switch__dot{ position:absolute; top:2px; left:2px; height:30px; width:30px; background:var(--backgroundColor); border-radius:50%; transition:left 150ms ease-out; }
#silktide-modal .switch__off,#silktide-modal .switch__on{ position:absolute; top:7px; right:8px; font-size:15px; font-weight:500; color:var(--backgroundColor); transition:right 150ms ease-out, opacity 150ms ease-out; }
#silktide-modal .switch input:checked + .switch__pill{ background:var(--primaryColor); }
#silktide-modal .switch input:checked ~ .switch__dot{ left:calc(100% - 32px); }
#silktide-modal .switch input:checked ~ .switch__off{ right:calc(100% - 32px); opacity:0; }
#silktide-modal .switch input:checked ~ .switch__on{ right:calc(100% - 34px); opacity:1; }

/* Cookie Icon */
#silktide-cookie-icon{
  display:none;
  position:fixed;
  bottom:10px;
  left:10px; /* RTL: אייקון בצד שמאל */
  justify-content:center;
  align-items:center;
  width:60px; height:60px;
  border-radius:50%;
  padding:0; border:none;
  background-color: var(--cookieIconColor);
  cursor:pointer;
  box-shadow: 0 0 6px #0001;
  pointer-events:auto;
  animation: silktide-fadeIn .3s ease-in-out forwards;
}
#silktide-cookie-icon.bottomRight{ left:auto; right:10px; }
#silktide-cookie-icon svg{ fill: var(--cookieIconBackgroundColor); }

/* Animations */
@keyframes silktide-fadeIn{ from{opacity:0;} to{opacity:1;} }
@keyframes silktide-slideInDown{ from{opacity:0; transform:translateY(-20px);} to{opacity:1; transform:translateY(0);} }
@keyframes silktide-slideInDown-bottomCenter{ from{opacity:0; transform:translate(-50%,-20px);} to{opacity:1; transform:translate(-50%,0);} }
@keyframes silktide-slideInUp-center{ from{opacity:0; transform:translate(0,20px);} to{opacity:1; transform:translate(0,0);} }

/* הסתרת קרדיט של Silktide */
#silktide-banner a.silktide-logo,
#silktide-modal footer a[href*="silktide.com"]{ display:none !important; }
