/* Consent Mode - port banera z awolg-cms-bundle (consent-mode.scss) na statyczną stronę */

.consent-mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  border-radius: 0 5px 0 0;
  background-color: #000;
}
.consent-mode-icon svg { display: block; width: 100%; height: 100%; }

html.has-consent-popup { overflow: hidden; }
html.has-consent-popup::after {
  content: '';
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
}

.consent-mode-popup {
  width: 800px;
  max-width: 90%;
  height: 80%;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-family: var(--font);
}
.consent-mode-popup[hidden] { display: none; }

.consent-mode-popup__container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: calc(100% - 60px);
  padding: 30px;
  position: relative;
  overflow: auto;
}

.consent-mode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 10px;
  border-top: 1px solid #dfdfdf;
  background: #fff;
  border-radius: 0 0 5px 5px;
}
.consent-mode-actions button {
  width: 100%;
  height: 100%;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #000;
  border-radius: 5px;
  background: transparent;
}
.consent-mode-actions button:hover { color: #fff; background: #000; }

.consent-mode-popup__title {
  display: block;
  width: 100%;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid #dfdfdf;
  padding-block: 10px;
}
.consent-mode-popup__description {
  display: block;
  width: 100%;
  color: #333;
  font-size: 16px;
}
.consent-mode-popup__description a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.consent-mode-popup__description a:hover { color: var(--violet); }

.consent-mode-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 0;
}
.consent-mode-form input[type='checkbox'] {
  width: 40px;
  height: 20px;
  flex: 0 0 40px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  border-radius: 50px;
  background: #cecece;
  appearance: none;
  margin: 0;
}
.consent-mode-form input[type='checkbox']::before {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  border-radius: 50%;
  background: #fff;
}
.consent-mode-form input[type='checkbox']:checked { background: var(--violet); }
.consent-mode-form input[type='checkbox']:checked::before { transform: translateX(20px); }
.consent-mode-form input[type='checkbox']:disabled { cursor: default; opacity: 0.6; }
.consent-mode-form input[type='checkbox']:focus { outline: none; box-shadow: none; }

.consent-mode-option { display: flex; flex-direction: column; gap: 10px; }
.consent-mode-option > button {
  display: flex;
  align-self: flex-start;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}
.consent-mode-option__checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  color: #000;
  cursor: pointer;
}
.consent-mode-option__description { display: none; width: 100%; font-size: 16px; }
.consent-mode-option__description--short { display: block; font-size: 16px; color: #555; }
.consent-mode-option__description table { width: 100%; border-collapse: collapse; }
.consent-mode-option__description td {
  padding: 6px 8px;
  font-size: 14px;
  color: #333;
  border: 1px solid #dfdfdf;
}
.consent-mode-option__description th {
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-align: left;
  border: 1px solid #dfdfdf;
  background: #f5f5f5;
}

@media (max-width: 1280px) {
  .consent-mode-actions button { font-size: 14px; }
  .consent-mode-popup__title { font-size: 18px; }
  .consent-mode-popup__description,
  .consent-mode-option__description { font-size: 14px; }
  .consent-mode-option__description--short { font-size: 13px; }
}

@media (max-width: 576px) {
  .consent-mode-popup__container { height: calc(100% - 140px); }
  .consent-mode-actions { grid-template-columns: 1fr; height: 140px; }
  .consent-mode-actions button { padding: 5px 10px; }
  .consent-mode-option__checkbox { font-size: 14px; }
}
