/* Cookie Consent Modal Styles */

.cookie-consent-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%); /* Initial hidden state */
  z-index: 9999;
  width: 100%;
  background: #F4F4F4;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent-modal.show {
  transform: translateY(0); /* Visible state */
}

.cookie-consent-inner {
  width: 100%;
  background: var(--field-contextual, #FFFFFF);
}

.cookie-consent-content {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.cookie-consent-text {
  box-sizing: border-box;
}

.cookie-consent-text p {
  box-sizing: border-box;
  display: block;
  padding: 0px;
  width: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
  color: #161616;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cookie-policy-link {
  color: #2E2C7E;
  text-decoration: underline;
  text-decoration-style: solid;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
}

.cookie-policy-link:hover {
  color: #2E2C7E;
  text-decoration: none;
}

.cookie-consent-buttons {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 24px;
}


/* Accept All Button - Default State */
.btn-accept-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  height: 40px;
  background: #2E2C7E;
  border-radius: 47px;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.16px;
  transition: all 0.3s ease;
}

/* Removed duplicate - see simplified version below */

/* Deny All Button - Default State */
.btn-deny-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  height: 40px;
  border: 1px solid #2E2C7E;
  border-radius: 47px;
  background: transparent;
  box-sizing: border-box;
  color: #2E2C7E;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.16px;
  transition: all 0.3s ease;
}

/* Hover effects similar to subscription button */
.btn-accept-all:hover {
  background: #fff;
  color: #2E2C7E;
  border: 1px solid #2E2C7E;
  transition: all 0.3s ease;
}

.btn-deny-all:hover {
  background: #2E2C7E;
  color: #fff;
  transition: all 0.3s ease;
}


/* Mobile Styles - Exact Figma Specs (max-width: 800px) */
@media screen and (max-width: 800px) {
  .cookie-consent-modal {
    height: auto; /* Flexible height based on content */
    min-height: auto; /* Remove fixed minimum height */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
  }
  
  .cookie-consent-inner {
    height: auto; /* Flexible height based on content */
    min-height: auto; /* Remove fixed minimum height */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    isolation: isolate;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
  }
  
  .cookie-consent-content {
    height: auto; /* Flexible height based on content */
    min-height: auto; /* Remove fixed minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 0px 24px;
    gap: 8px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
  }
  
  .cookie-consent-text {
    width: 100%; /* Full available width */
    height: auto; /* Flexible height based on content */
    min-height: auto; /* Remove fixed minimum height */
    padding: 16px 32px; /* Respect existing padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
  }
  
  .cookie-consent-text p {
    width: 100%; /* Full available width within padding */
    max-width: 100%; /* Remove fixed max-width constraint */
    height: auto; /* Flexible height based on content */
    min-height: auto; /* Remove fixed minimum height */
  }
  
  .cookie-consent-buttons {
    width: 100%; /* Full available width */
    height: 40px;
    padding: 0px 32px; /* Respect existing padding */
    justify-content: center;
    align-items: flex-start;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
  }

  

}


/* Desktop Styles - Figma Specs (801px to 1399px) */
@media screen and (min-width: 801px) and (max-width: 1399px) {
  .cookie-consent-modal {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    position: fixed; /* Fixed to viewport */
    bottom: 0; /* Bottom of visible screen */
    left: 0;
    right: 0;
    width: 100%;
    background: #F4F4F4;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
    z-index: 1000; /* Ensure it's above other content */
  }
  
  .cookie-consent-inner {
    /* Modal/Large */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    isolation: isolate;
    width: 100%;
    background: var(--field-contextual, #FFFFFF);
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
  }
  
  .cookie-consent-content {
    /* Content */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 0px;
    width: 100%;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    z-index: 1;
  }
  
  .cookie-consent-text {
    /* Progress indicator + Description */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px;
    flex: 1; /* Take available space but leave room for buttons */
    order: 0;
  }
  
  .cookie-consent-text p {
    /* Description padding */
    display: block; /* Use normal block display for natural text flow */
    padding: 0px;
    width: 100%; /* Fill full width of text container */
    height: auto; /* Let content define height */
    margin: 0; /* Remove default paragraph margins */
    /* Body styles/body-01 */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.16px;
    color: #161616;
  }
  
  .cookie-consent-text p .cookie-policy-link {
    white-space: nowrap; /* Prevent link from wrapping to new line */
  }
  
  .cookie-consent-buttons {
    /* Frame 2609228 */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 32px;
    gap: 24px;
    flex: none; /* Don't grow, maintain fixed width */
    order: 1;
    height: 40px;
  }

  

}

/* Large Desktop Styles - Figma Specs (1400px and larger) */
@media screen and (min-width: 1400px) {
  .cookie-consent-modal {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 104px; /* Figma spec: 104px height */
    background: #F4F4F4;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
    z-index: 1000;
  }
  
  .cookie-consent-inner {
    /* Modal/Large */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    isolation: isolate;
    width: 100%;
    height: 104px; /* Figma spec: 104px height */
    background: var(--field-contextual, #FFFFFF);
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
  }
  
  .cookie-consent-content {
    /* Content */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0px;
    width: 100%;
    max-width: 1440px; /* 1440 container */
    margin: 0 auto;
    height: 104px; /* Figma spec: 104px height */
    order: 1;
    z-index: 1;
  }
  
  .cookie-consent-text {
    /* Progress indicator + Description */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px;
    width: auto; /* allow to shrink between 1400 and 1440 */
    height: 72px; /* Figma spec: 72px height */
    order: 0;
    flex: 1 1 auto; /* take remaining space next to buttons */
    min-width: 0; /* enable flexbox shrinking without overflow */
  }
  
  .cookie-consent-text p {
    /* Description padding */
    box-sizing: border-box;
    display: block; /* normal text flow so link stays inline */
    padding: 0px;
    width: 100%; /* fill the available text area */
    height: 40px; /* Figma spec: allows up to 2 lines */
    flex: none;
    order: 0;
    flex-grow: 0;
    /* Body styles/body-01 */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.16px;
    color: #161616;
    white-space: normal; /* wrap to second line if needed */
    overflow: visible;
    text-overflow: clip;
  }

  /* Keep the Cookie Policy link attached to the preceding text on large screens */
  .cookie-consent-text p .cookie-policy-link {
    white-space: nowrap;
  }
  
  .cookie-consent-buttons {
    /* Frame 2609228 */
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 32px;
    gap: 24px;
    width: 285px; /* Updated to accommodate wider Deny All button */
    height: 40px; /* Figma spec: 40px height */
    order: 1;
    flex: none;
  }


}


/* XL Desktop Styles - Figma Specs (1920px and larger) */
@media screen and (min-width: 1920px) {
  .cookie-consent-modal {
    height: 104px; /* Spec */
  }

  .cookie-consent-inner {
    height: 104px; /* Spec */
  }

  .cookie-consent-content {
    /* Center a 1920px-wide content area */
    max-width: 1920px;
    margin: 0 auto;
    justify-content: space-between; /* ensure buttons remain on the right */
  }

  .cookie-consent-text {
    /* Progress indicator + Description */
    padding: 16px 32px;
    width: auto;
    height: 72px;  /* Spec */
    flex: 1 1 auto;
    min-width: 0;
  }

  .cookie-consent-text p {
    width: 100%;
    height: 40px;  /* Spec */
    display: block;
    white-space: normal; /* allow wrapping to second line */
    overflow: visible;
    text-overflow: clip;
  }

  .cookie-consent-buttons {
    width: 285px;  /* Updated to accommodate wider Deny All button */
    height: 40px;
    padding: 0 32px;
  }
}
