/* =========================================================================
   Banner thu thap cookie + popup "Cai dat Cookie"
   Figma file "[FshareStorage] Website", node 117:41269
   (frame Thu thap Cookie- 1/2/3, 1366x768).

   Markup: views/layouts/_cookie-consent.php. JS: js/cookie-consent.js.
   Nut dung class .mdc-button cua button-v4.css (cao 36, chu 14/21 SemiBold IN HOA);
   o day chi them khoang cach/bo cuc. Mau chu dao #025AFC giong cac thanh phan V4 khac.

   Banner : fixed day trang, nen #fff, cao >= 114, bong 0 2 18 rgba(81,81,81,.25);
            noi dung rong 1178 (le 94 o 1366), chu 14/21, nut cach nhau 16.
   Popup  : the trang 656 (padding 24/28), tieu de 20/28, mo ta 14/20, danh sach 4 nhom co
            cong tac, 3 nut canh phai. Scrim den 50%.
   ========================================================================= */

:root {
  --fck-blue: #025afc;
  --fck-text: #1f1f1f;
  --fck-sub: #5f6368;
  --fck-line: #e3e6ea;
}

.fck-banner[hidden],
.fck-dialog[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- banner */
.fck-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  box-sizing: border-box;
  min-height: 114px;
  background: #fff;
  box-shadow: 0 2px 18px rgba(81, 81, 81, 0.25);
  font-family: Roboto, sans-serif;
  color: var(--fck-text);
}
.fck-banner__in {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1366px;
  min-height: 114px;
  margin: 0 auto;
  padding: 26px 94px 25px;
}
.fck-banner__text {
  flex: 0 1 727px;
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--fck-text);
}
.fck-banner__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------------------------------------------------------------- popup */
html.fck-lock,
html.fck-lock body {
  overflow: hidden;
}
.fck-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: Roboto, sans-serif;
}
.fck-dialog__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.fck-dialog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 656px;
  max-width: 100%;
  max-height: 100%;
  padding: 24px 28px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
  color: var(--fck-text);
  outline: none;
}
.fck-dialog__title {
  flex: none;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--fck-text);
}
.fck-dialog__desc {
  flex: none;
  margin: 24px 0 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fck-text);
}

/* danh sach nhom cookie (cuon neu thap hon noi dung) */
.fck-dialog__list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 352px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  border: 1px solid var(--fck-line);
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #b7c4e2 transparent;
}
.fck-dialog__list::-webkit-scrollbar {
  width: 6px;
}
.fck-dialog__list::-webkit-scrollbar-thumb {
  background: #b7c4e2;
  border-radius: 3px;
}
.fck-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 0;
}
.fck-row + .fck-row {
  border-top: 1px solid var(--fck-line);
}
.fck-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.fck-row__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fck-row__title {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--fck-text);
}
.fck-row__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--fck-sub);
}
.fck-tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  background: #dcf5d6;
  color: #1e7b34;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

/* cong tac (Material switch: duong ray 34x14 + nut tron 20) */
.fck-switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 40px;
  height: 20px;
  cursor: pointer;
}
.fck-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.fck-switch__track {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 34px;
  height: 14px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.26);
  transition: background-color 0.15s;
}
.fck-switch__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s, background-color 0.15s;
}
.fck-switch input:checked ~ .fck-switch__track {
  background: rgba(2, 90, 252, 0.5);
}
.fck-switch input:checked ~ .fck-switch__thumb {
  background: var(--fck-blue);
  transform: translateX(20px);
}
.fck-switch input:disabled {
  cursor: default;
}
.fck-switch input:disabled ~ .fck-switch__track,
.fck-switch input:disabled ~ .fck-switch__thumb {
  opacity: 0.6;
}
.fck-switch input:focus-visible ~ .fck-switch__thumb {
  outline: 2px solid var(--fck-blue);
  outline-offset: 2px;
}

.fck-dialog__actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* ------------------------------------------------- nut (tren .mdc-button) */
.fck-btn {
  white-space: nowrap;
  border: 0;
}
.fck-btn:not(.mdc-button--raised) {
  background: transparent;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .fck-banner__in {
    padding: 20px 24px;
    gap: 24px;
  }
}
@media (max-width: 720px) {
  .fck-banner__in {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .fck-banner__text {
    flex: none;
  }
  .fck-banner__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
  }
  .fck-dialog__card {
    padding: 20px 16px;
  }
  .fck-dialog__list {
    max-height: none;
  }
  .fck-dialog__actions {
    gap: 8px 12px;
  }
  .fck-dialog__actions .fck-btn {
    flex: 1 1 100%;
  }
}
