/**
 * GoodTHCA Exact Age Verification (21+) Styles
 * Parity with Shopify Dawn / GoodApps Age Verification 18+ App Embed (Offer 9862)
 * STRICT ZERO letter-spacing declarations
 */

/* Hidden initially or when verified */
.goodthca-age-gate-wrapper.is-hidden,
.goodthca-age-gate-wrapper.is-verified {
  display: none !important;
}

/* Container wrapper covers entire viewport and blocks all clicks to page behind it */
.goodthca-age-gate-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: auto !important;
  z-index: 2147483646;
  background: rgba(0, 0, 0, 0.46) !important;
}

.goodthca-age-gate-wrapper.is-hidden,
.goodthca-age-gate-wrapper.is-verified {
  display: none !important;
  pointer-events: none !important;
}

.goodthca-age-gate-wrapper .goodav_overlay,
.goodthca-age-gate-wrapper #goodav-app {
  pointer-events: auto !important;
}

/* Scroll lock when age gate active */
html.goodthca-age-gate-active,
body.goodthca-age-gate-active {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Fullscreen Background Overlay - blocks clicks */
.goodav_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  z-index: 2147483646;
  pointer-events: auto !important;
  cursor: default;
}

/* Modal App Container - Always Locked in Center */
div#goodav-app {
  max-width: 820px !important;
  width: 100% !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483647 !important;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
}

@media screen and (max-width: 991px) {
  div#goodav-app {
    width: calc(100% - 32px) !important;
    max-width: 580px !important;
  }
}

@media screen and (max-width: 767px) {
  div#goodav-app {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Modal Card Box */
.goodav-cart {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Outer Wrap clips sliding body so animation occurs strictly within the modal box */
.goodav-cart__wrap {
  align-items: center;
  display: flex !important;
  height: auto !important;
  justify-content: center;
  overflow: hidden !important;
  width: 100%;
  border-radius: 20px;
  background: transparent;
}

/* Modal Body Animation (Exact Shopify slideInRight) */
.goodav-cart__body {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  will-change: transform;
  background-color: #ffffff;
}

@keyframes goodavSlideInRight {
  0% {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes goodavSlideOutRight {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
  }
}

@keyframes goodavFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.46;
  }
}

@keyframes goodavFadeOut {
  0% {
    opacity: 0.46;
  }
  100% {
    opacity: 0;
  }
}

.goodav-slide-in,
.animate__slideInRight {
  animation: goodavSlideInRight 1.3s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.goodav-slide-out,
.animate__slideOutRight {
  animation: goodavSlideOutRight 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) both !important;
}

.goodav-fade-in {
  animation: goodavFadeIn 0.8s ease-out forwards !important;
}

.goodav-fade-out {
  animation: goodavFadeOut 0.5s ease-in forwards !important;
}

.goodav-cart__main {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

/* 2-Column Flex Layout on Desktop */
.goodav-cart__timer-wrap {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  #goodav-root .goodav-cart__timer-wrap,
  .goodav-cart__timer-wrap {
    flex-direction: column !important;
    padding: 0 !important;
    height: auto !important;
    display: flex !important;
    width: 100% !important;
  }
}

/* Hero Image on Left (Desktop) / Top (Mobile) */
.goodav-cart__timer-img {
  max-width: 334px !important;
  height: auto !important;
  margin: 0 !important;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

@media screen and (max-width: 767px) {
  #goodav-root .goodav-cart__timer-wrap .goodav-cart__timer-img,
  .goodav-cart__timer-wrap .goodav-cart__timer-img {
    max-width: 100% !important;
    width: 100% !important;
    height: 391px !important;
    min-height: 391px !important;
    max-height: 391px !important;
    object-fit: cover !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: block !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* Content Area on Right (Desktop) / Bottom (Mobile) */
.goodav-cart__timer-top {
  margin: 0 !important;
  padding: 77px 50px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  box-sizing: border-box;
  background: #ffffff;
}

@media screen and (max-width: 767px) {
  #goodav-root .goodav-cart__timer-top,
  .goodav-cart__timer-top {
    margin: 0 !important;
    padding: 30px !important;
    text-align: center !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }
}

/* Heading: AGE VERIFICATION */
.goodav-cart__timer-title {
  font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 800;
  font-size: 45px;
  line-height: 60px;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 20px 0;
  padding: 0;
}

@media screen and (max-width: 991px) {
  .goodav-cart__timer-title {
    font-size: 36px;
    line-height: 46px;
  }
}

@media screen and (max-width: 767px) {
  #goodav-root .goodav-cart__timer-top .goodav-cart__timer-title,
  .goodav-cart__timer-top .goodav-cart__timer-title {
    font-size: 28px !important;
    line-height: 36px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    font-weight: 800 !important;
    color: #000000 !important;
  }
}

/* Subtitle Message */
.goodav-cart__timer-msg {
  font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  margin: 0 0 40px 0;
  padding: 0;
}

@media screen and (max-width: 767px) {
  .goodav-cart__timer_wrap .goodav-cart__timer-msg,
  .goodav-cart__timer-msg {
    font-size: 16px !important;
    line-height: 28px !important;
    letter-spacing: 0%;
    text-align: center !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    font-weight: 600 !important;
    color: #000000 !important;
  }
}

.goodav-cart__timer_wrap,
.goodav-cart__timer_texts,
.verification_type_1 {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .goodav-cart__timer_wrap,
  .goodav-cart__timer_texts,
  .verification_type_1 {
    width: 100% !important;
    display: block !important;
  }
}

/* Action Buttons Wrapper */
.verification_type_1 .goodav-cart__btn_wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Button Base Styles */
.verification_type_1 .goodav-cart__btn_wrap button {
  width: 100%;
  height: 60px;
  font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
}

@media screen and (max-width: 767px) {
  .verification_type_1 .goodav-cart__btn_wrap button {
    height: 38px !important;
    font-size: 16px !important;
    line-height: 19px !important;
    font-weight: 600 !important;
    font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    text-transform: uppercase !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* Accept Button (YES, I'M OVER 21): Exact black background with green text */
.verification_btn_accept {
  background: #0A0A0A !important;
  color: #20FC03 !important;
  border: 1px solid #0A0A0A  !important;
}
.verification_btn_accept:hover,
.verification_btn_accept:active {
  background: #20FC03 !important;
  color: #0A0A0A !important;
  border: 1px solid #20FC03 !important;
}


/* Reject Button (NO, I'M UNDER 21): Exact white background with black text */
.verification_btn_reject {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  border: 1px solid #0A0A0A !important;
}

.verification_btn_reject:hover,
.verification_btn_reject:active {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}

/* Under Age Block Screen (Shopify blockPage behavior) */
.goodav-underage-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.96);
  z-index: 10000000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.goodav-underage-block__title {
  font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 32px;
  line-height: 42px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 15px 0;
}

.goodav-underage-block__msg {
  font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: #b5b5b5;
  max-width: 500px;
  margin: 0 0 30px 0;
}

.goodav-underage-block__btn {
  font-family: 'Instrument Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto !important;
}

.goodav-underage-block__btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}
