/* 
  Silktide Consent Manager - https://silktide.com/consent-manager/  
  Customized for Dayang Corp
*/

/* --------------------------------
  Global Styles
-------------------------------- */
#silktide-wrapper {
              --focus: 0 0 0 2px #ffffff, 0 0 0 4px #030202, 0 0 0 6px #ffffff;
              --boxShadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
              --fontFamily: 'Affogato', Helvetica Neue, Segoe UI, Arial, sans-serif;
              --primaryColor: #030202;
              --primaryColorHover: #303031;
              --accentColor: #c33e41;
              --backgroundColor: #fefeff;
              --textColor: #030202;
              --textColorSecondary: #4b4b4b;
              --borderColor: #e3dfe1;
              --backdropBackgroundColor: rgba(3, 2, 2, 0.45);
              --backdropBackgroundBlur: 4px;
              --cookieIconColor: #030202;
              --cookieIconBackgroundColor: #fefeff;
              position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  border: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
            }

/* Backdrop (Global) */
#silktide-backdrop-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  border: 0px;
  display: none;
}

/* --------------------------------
  Links
-------------------------------- */
#silktide-wrapper a {
  all: unset;
  display: inline-block;
  color: var(--accentColor);
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#silktide-wrapper a:hover {
  color: var(--textColor);
}

/* --------------------------------
  Focus Styles
-------------------------------- */
#silktide-wrapper a:focus,
#silktide-wrapper #silktide-banner button:focus,
#silktide-wrapper #silktide-modal button:focus,
#silktide-wrapper #silktide-cookie-icon:focus {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

#silktide-wrapper #silktide-cookie-icon:focus {
  border-radius: 50%;
}

/* --------------------------------
  General Styles
-------------------------------- */
#silktide-wrapper .st-button {
  color: var(--backgroundColor);
  background-color: var(--primaryColor);
  border: 2px solid var(--primaryColor);
  padding: 12px 24px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-family: var(--fontFamily);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#silktide-wrapper .st-button--primary:hover {
  background-color: var(--primaryColorHover);
  border-color: var(--primaryColorHover);
  color: var(--backgroundColor);
}

#silktide-wrapper .st-button--secondary {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
}

#silktide-wrapper .st-button--secondary:hover {
  background-color: var(--primaryColor);
  color: var(--backgroundColor);
}

/* --------------------------------
  Banner
-------------------------------- */
#silktide-banner {
  font-family: var(--fontFamily);
  color: var(--textColor);
  background-color: var(--backgroundColor);
  box-sizing: border-box;
  padding: 24px 28px;
  border-radius: 16px;
  pointer-events: auto;
  border: 1px solid var(--borderColor);
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 480px;
  overflow: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  transform: translate(0, 20px);
  opacity: 0;
  animation: silktide-slideInDown 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

#silktide-banner:focus {
  border-radius: 16px;
}

#silktide-banner.center {
  top: 50%;
  left: 50%;
  bottom: auto;
  right: auto;
  position: fixed;
  transform: translate(-50%, calc(-50% - 20px));
  animation: silktide-slideInDown-center 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#silktide-banner.bottomLeft {
  bottom: 20px;
  left: 20px;
  right: auto;
  position: fixed;
}

#silktide-banner.bottomCenter {
  bottom: 20px;
  left: 50%;
  position: fixed;
  transform: translate(-50%, 20px);
  animation: silktide-slideInDown-bottomCenter 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#silktide-banner .preferences {
  display: flex;
  gap: 4px;
  align-items: center;
  border: none;
  padding: 10px 0px;
  background-color: transparent;
  color: var(--textColorSecondary);
  cursor: pointer;
  font-family: var(--fontFamily);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

#silktide-banner .preferences:hover {
  color: var(--textColor);
}

#silktide-banner .preferences span {
  display: block;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#silktide-banner .preferences:after {
  display: block;
  content: '›';
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

#silktide-banner p {
  font-size: 14px;
  line-height: 22px;
  margin: 0px 0px 8px;
  color: var(--textColorSecondary);
}

#silktide-banner a {
  display: inline-block;
  color: var(--accentColor);
  text-decoration: underline;
  text-underline-offset: 3px;
  background-color: transparent;
  font-size: 14px;
}

#silktide-banner a:hover {
  color: var(--textColor);
}

#silktide-banner a.silktide-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--textColorSecondary);
  margin-left: auto;
  text-decoration: none;
  font-size: 13px;
  color: var(--textColorSecondary);
}

#silktide-banner a.silktide-logo:hover {
  color: var(--textColor);
}

#silktide-banner .actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-top: 16px;
}

@media (min-width: 480px) {
  #silktide-banner .actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

#silktide-banner .actions-row {
  display: flex;
  gap: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

/* --------------------------------
  Modal
-------------------------------- */
#silktide-modal {
  display: none;
  pointer-events: auto;
  overflow: auto;
  width: 560px;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  border: 1px solid var(--borderColor);
  transform: translate(0px, 20px);
  opacity: 0;
  animation: silktide-slideInUp-center 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.08);
  font-family: var(--fontFamily);
  color: var(--textColor);
  flex-direction: column;
  padding: 28px 32px;
  background-color: var(--backgroundColor);
  border-radius: 16px;
  box-sizing: border-box;
}

/* --------------------------------
  Modal - Header
-------------------------------- */
#silktide-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--borderColor);
}

#silktide-modal h1 {
  font-family: var(--fontFamily);
  color: var(--textColor);
  font-size: 20px;
  font-weight: 700;
  margin: 0px;
  letter-spacing: -0.01em;
}

#silktide-modal .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderColor);
  padding: 8px;
  cursor: pointer;
  background: var(--backgroundColor);
  color: var(--textColor);
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#silktide-modal .modal-close:hover {
  background: var(--borderColor);
}

#silktide-modal .modal-close svg {
  fill: var(--textColor);
  width: 14px;
  height: 14px;
}

/* --------------------------------
  Modal - Content
-------------------------------- */
#silktide-modal section {
  flex: 1;
  margin-top: 16px;
}

#silktide-modal section::-webkit-scrollbar {
  display: block;
  width: 4px;
}

#silktide-modal section::-webkit-scrollbar-thumb {
  background-color: var(--borderColor);
  border-radius: 10px;
}

#silktide-modal p {
  font-size: 14px;
  line-height: 22px;
  color: var(--textColorSecondary);
  margin: 0px 0px 12px;
}

#silktide-modal p:last-of-type {
  margin: 0px;
}

#silktide-modal fieldset {
  padding: 16px;
  border: 1px solid var(--borderColor);
  border-radius: 12px;
  margin: 0px 0px 12px;
  transition: border-color 0.2s ease;
}

#silktide-modal fieldset:hover {
  border-color: #c8c4c6;
}

#silktide-modal fieldset:last-of-type {
  margin: 0px;
}

#silktide-modal legend {
  padding: 0px 4px;
  margin: 0px 0px 8px;
  font-weight: 700;
  color: var(--textColor);
  font-size: 15px;
  letter-spacing: -0.01em;
}

#silktide-modal .cookie-type-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#silktide-modal .cookie-type-description {
  font-size: 13px;
  line-height: 20px;
  color: var(--textColorSecondary);
}

/* --------------------------------
  Modal - Switches
-------------------------------- */
#silktide-modal .switch {
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  height: 30px;
  width: 56px;
  cursor: pointer;
}

#silktide-modal .switch:focus-within {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 25px;
}

#silktide-modal .switch input {
  opacity: 0;
  position: absolute;
}

/* Unchecked Switch Styles */
#silktide-modal .switch__pill {
  position: relative;
  display: block;
  height: 30px;
  width: 56px;
  background: var(--borderColor);
  border-radius: 25px;
  transition: background 0.25s ease;
}

#silktide-modal .switch__dot {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  height: 24px;
  width: 24px;
  background: var(--backgroundColor);
  border-radius: 50%;
  transition: left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#silktide-modal .switch__off,
#silktide-modal .switch__on {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--textColorSecondary);
  position: absolute;
  top: 7px;
  right: 8px;
  transition: right 0.2s ease, opacity 0.2s ease;
}

#silktide-modal .switch__off {
  opacity: 1;
}

#silktide-modal .switch__on {
  opacity: 0;
  color: var(--backgroundColor);
}

/* Checked Switch Styles */
#silktide-modal .switch input:checked + .switch__pill {
  background: var(--primaryColor);
}

#silktide-modal .switch input:checked ~ .switch__dot {
  left: calc(100% - 27px);
}

#silktide-modal .switch input:checked ~ .switch__off {
  right: calc(100% - 28px);
  opacity: 0;
}

#silktide-modal .switch input:checked ~ .switch__on {
  right: calc(100% - 28px);
  opacity: 1;
}

/* Disabled Switch Styles */
#silktide-modal .switch input:disabled + .switch__pill {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------
  Modal - Footer
-------------------------------- */
#silktide-modal footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--borderColor);
}

@media (min-width: 480px) {
  #silktide-modal footer {
    flex-direction: row;
    align-items: center;
  }
}

#silktide-modal footer a {
  margin-left: auto;
  padding: 10px 0px;
  font-size: 13px;
}

/* Cookie Icon */
#silktide-cookie-icon {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0px;
  border: 1px solid var(--borderColor);
  background-color: var(--backgroundColor);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: silktide-fadeIn 0.3s ease-in-out forwards;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#silktide-cookie-icon:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transform: scale(1.05);
}

#silktide-cookie-icon.bottomRight {
  left: auto;
  right: 16px;
}

#silktide-cookie-icon svg {
  fill: var(--cookieIconColor);
  width: 24px;
  height: 24px;
}

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

/* --------------------------------
  Mobile Overrides
-------------------------------- */
@media (max-width: 520px) {
  #silktide-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 24px;
    border: none;
    border-top: 1px solid var(--borderColor);
  }

  #silktide-banner .actions {
    gap: 8px;
  }

  #silktide-banner .st-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  #silktide-banner .actions-row {
    justify-content: center;
    gap: 16px;
  }

  #silktide-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    align-self: flex-end;
  }

  #silktide-modal footer .st-button {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------
  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-center {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@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(0px, 20px);
  }
  to {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}
