/*-- -------------------------- -->
<---           Modal            -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cs-modal-1605 {
    padding: var(--sectionPadding);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    transition-delay: 0.3;
  }
  #cs-modal-1605.cs-loaded {
    /* when the page finishes loading, the JS will add this class to the cs-modal which will then animate into existence */
    opacity: 1;
    visibility: visible;
  }
  #cs-modal-1605.cs-loaded .cs-wrapper {
    opacity: 1;
    transform: translateY(0);
  }
  #cs-modal-1605.cs-closed {
    opacity: 0;
    visibility: hidden;
    z-index: -1000;
  }
  #cs-modal-1605 .cs-wrapper {
    width: 100%;
    /* changes to 846px at tbalet */
    max-width: 25rem;
    background-color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transform: translateY(12.25rem);
    transition: transform 0.7s, opacity 0.3s;
    transition-delay: 0.5s;
  }
  #cs-modal-1605 .cs-content {
    text-align: center;
    /* 40px - 60px top & bottom */
    /* 24px - 40px left & right */
    padding: clamp(2.5rem, 8vw, 3.75rem) clamp(1.5rem, 3vw, 2.5rem);
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #cs-modal-1605 .cs-close {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    transition: border-color 0.3s, transform 0.5s;
  }
  #cs-modal-1605 .cs-close:hover {
    cursor: pointer;
    border-color: #e8e8e8;
    transform: rotate(90deg);
  }
  #cs-modal-1605 .cs-close img {
    width: 1.5rem;
    height: auto;
  }
  #cs-modal-1605 .cs-picture {
    width: 100%;
    height: 60vw;
    /* removed at tablet */
    max-height: 15.625rem;
    display: block;
    position: relative;
    z-index: 1;
  }
  #cs-modal-1605 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #cs-modal-1605 .cs-header {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
    text-align: inherit;
    line-height: 1.2em;
    font-weight: 700;
    max-width: 20ch;
    /* 12px - 16px */
    margin: 0 0 clamp(0.75rem, 2vw, 1rem);
    display: block;
  }
  #cs-modal-1605 .cs-text {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    /* 28px - 32px */
    margin: 0 0 clamp(1.75rem, 2.5vw, 2rem);
  }
  #cs-modal-1605 .cs-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  #cs-modal-1605 .cs-input {
    font-size: 1rem;
    width: 100%;
    height: clamp(2.875rem, 5.5vw, 3.5rem);
    margin: 0;
    padding: 0;
    padding-left: 1.25rem;
    background-color: #f7f7f7;
    border: none;
    /* prevents padding from adding to width and height */
    box-sizing: border-box;
    display: block;
  }
  #cs-modal-1605 .cs-input::placeholder {
    color: #767676;
  }
  #cs-modal-1605 .cs-submit {
    width: 100%;
    border: none;
  }
  #cs-modal-1605 .cs-submit:hover {
    cursor: pointer;
  }
  #cs-modal-1605 .cs-social {
    height: 2rem;
    margin-top: 2rem;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s, visibility 0.3s, height 0.3s;
  }
  #cs-modal-1605 .cs-social-link {
    text-decoration: none;
    width: 2rem;
    height: 2rem;
    background-color: #484848;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
  }
  #cs-modal-1605 .cs-social-link:hover {
    background-color: var(--primary);
  }
  #cs-modal-1605 .cs-social-link:hover .cs-social-icon {
    opacity: 1;
    filter: grayscale(1) brightness(10000%);
  }
  #cs-modal-1605 .cs-social-icon {
    width: 0.75rem;
    height: auto;
    filter: grayscale(1) brightness(1000%);
    opacity: 0.6;
    display: block;
    transition: opacity 0.6s;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #cs-modal-1605 .cs-wrapper {
    max-width: 52.875rem;
    flex-flow: row;
    align-items: stretch;
  }
  #cs-modal-1605 .cs-close {
    background-color: transparent;
    top: 1rem;
    right: 1rem;
  }
  #cs-modal-1605 .cs-content {
    width: 50%;
  }
  #cs-modal-1605 .cs-picture {
    width: 50%;
    min-height: 27rem;
    height: auto;
    max-height: 100%;
  }
}
/* Maintenance Modal Countdown Styles */
@media only screen and (min-width: 0rem) {
  #cs-modal-1605 .cs-maintenance-modal .cs-header {
    color: var(--primary);
    text-transform: uppercase;
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
  #cs-modal-1605 .cs-maintenance-modal .cs-notice {
    background-color: var(--primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
  }
  #cs-modal-1605 .cs-maintenance-modal .cs-notice strong {
    display: block;
    margin-bottom: 0.25rem;
  }
  #cs-modal-1605 .cs-countdown {
    width: 100%;
    margin-top: 1rem;
  }
  #cs-modal-1605 .cs-countdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bodyTextColor);
    margin-bottom: 0.75rem;
  }
  #cs-modal-1605 .cs-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }
  #cs-modal-1605 .cs-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 3.75rem;
  }
  #cs-modal-1605 .cs-countdown-number {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
  }
  #cs-modal-1605 .cs-countdown-unit {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
  }
}
/* Dark Mode - Maintenance Modal */
@media only screen and (min-width: 0rem) {
  body.dark-mode #cs-modal-1605 .cs-wrapper {
    background-color: var(--dark);
  }
  body.dark-mode #cs-modal-1605 .cs-header {
    color: var(--secondary);
  }
  body.dark-mode #cs-modal-1605 .cs-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-modal-1605 .cs-notice {
    background-color: var(--secondary);
    color: var(--dark);
  }
  body.dark-mode #cs-modal-1605 .cs-countdown-label {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-modal-1605 .cs-countdown-item {
    background-color: var(--secondary);
  }
  body.dark-mode #cs-modal-1605 .cs-countdown-number {
    color: var(--dark);
  }
  body.dark-mode #cs-modal-1605 .cs-countdown-unit {
    color: rgba(0, 0, 0, 0.7);
  }
}
