/* ==============================================
   Slapukų juosta — cookies.css
   Pridėkite <link rel="stylesheet" href="cookies.css"> visose puslapiuose
   ============================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--black);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

#cookie-banner.cb-visible {
  transform: translateY(0);
}

.cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

.cb-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.cb-text p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-light);
}

.cb-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.cb-inner .btn-1, .cb-inner .btn-2{
    margin:0;
    background-image: none;
    /* Was 30px, shrinking the gap to the »-arrow (right:20px in main.css)
       down to ~10px — the button's own :hover state already uses the
       correct 40px, so this just brings the resting state in line. */
    padding-right: 40px;
}

.cb-inner .btn-1:hover{
    display: inline-flex;
    align-items: center;
    height:39px;
    width: fit-content;
    padding:7px 0px;
    padding-left:28px;
    padding-right:40px;
    font-weight: 600;
    color: var(--bg);
    background-color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cb-inner .btn-2:hover{
    display: inline-flex;
    align-items: center;
    margin:0;
    height:39px;
    width: fit-content;
    padding:7px;
    padding-left:28px;
    padding-right:40px;
    font-weight: 600;
    color: var(--accent-dark);
    background-color: var(--bg);
    border: 2px solid var(--accent-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cb-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
}

.cb-btn:active {
  transform: scale(0.97);
}

.cb-btn--primary {
  background: var(--accent);
  color: var(--text-light);
}

.cb-btn--primary:hover {
  opacity: 0.9;
}

.cb-btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.cb-btn--secondary:hover {
  background: rgba(200, 169, 110, 0.1);
}

.cb-btn--link {
  background: none;
  color: var(--bg);
  padding: 10px 8px;
  font-weight: 500;
}

.cb-btn--link:hover {
  color: var(--accent);
}

/* Nustatymų skydelis */
.cb-settings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--accent-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cb-settings[hidden] { display: none; }

.cb-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--bg);
}

.cb-toggle input {
  display: none;
}

.cb-toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--accent-dark);
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s;
}

.cb-toggle-slider::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.cb-toggle input:checked ~ .cb-toggle-slider {
  background: var(--accent);
}

.cb-toggle input:checked ~ .cb-toggle-slider::after {
  transform: translateX(18px);
}

.cb-toggle input:disabled ~ .cb-toggle-slider {
  background: var(--accent);
  opacity: 0.9;
  cursor: not-allowed;
}

.cb-toggle input:disabled ~ .cb-toggle-slider::after {
  transform: translateX(18px);
}

.cb-toggle em {
  font-size: 0.75rem;
  color: var(--bg-dark);
}

/* YouTube placeholder */
.yt-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  border-radius: 8px;
  overflow: hidden;
}

.yt-blocked-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--bg-dark);
  text-align: center;
  padding: 24px;
  gap: 12px;
}

.yt-blocked-msg svg {
  color: var(--bg-dark);
}

.yt-blocked-msg p {
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.5;
  margin: 0;
}

.yt-unblock-btn {
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.yt-unblock-btn:hover {
  opacity: 0.85;
}

.yt-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  display: block;
}

/* Responsyvumas */
@media (max-width: 600px) {
  .cb-inner {
    padding: 16px;
  }

  .cb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-btn {
    text-align: center;
    width: 100%;
  }
}