/* GLOBAL STYLES */
html {
    scroll-behavior: smooth;
}

div[class*="PreviewCalendar_previewContainer"] {
    display: none;
}

.keyswitches-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #fff;
}

.keyswitches-content h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #fff;
}

.keyswitches-content ul {
    list-style-type: disc;
    list-style-position: inside;
}

.keyswitches-content p,
.keyswitches-content li {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #fff;
}

.keyswitches-content .block-subtitle {
    letter-spacing: 0.15em;
    color: #ece81a;
    font-weight: 500;
    font-size: 1rem;
}

.material-symbols-rounded {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

@media screen and (min-width: 768px) {
    .keyswitches-content h1 {
        font-size: 4.75rem;
    }

    .keyswitches-content h2 {
        font-size: 3.25rem;
    }

    .keyswitches-content p,
    .keyswitches-content li {
        font-size: 1.125rem;
    }
}

/* ULTRAWIDE VIEWPORTS */
@media screen and (min-width: 1920px) {
    .keyswitches-content>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .keyswitches-content>div>section {
        width: 100%;
        max-width: 2400px;
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 15%,
                black 85%,
                transparent 100%);
        margin: 0 auto;
    }
}

/* HERO */
.keyswitches-hero {
    background: url("https://assets.corsair.com/image/upload/f_auto,q_auto/pages/Keyswitches%20LP/Desktop/Hero_Keyboard_Background_Img_Desktop.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    min-height: 800px;
    height: 50vh;
}

.keyswitches-hero .block-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
}

.keyswitches-hero .block-title {
    margin-bottom: 0.5rem;
}

@media only screen and (min-width: 767px) {
    .keyswitches-hero {
        height: 60vh;
    }

    .keyswitches-hero .block-title {
        margin-bottom: 0.5rem;
    }
}

/* NAVIGATION */
#keyswitches-navigation {
    display: none;
    justify-content: center;
    position: sticky;
    top: 0;
    background: #262626;
    z-index: 100;
    transition: all 300ms ease-out;
    padding: 0.5rem 6rem;
    width: 100%;
}

#keyswitches-navigation.megamenu-visible {
    top: 100px;
}

#keyswitches-navigation .navigation-content {
    max-width: 1920px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#keyswitches-navigation .navigation-list {
    display: flex;
    gap: 4rem;
    color: #fff;
}

#keyswitches-navigation .nav-item {
    display: flex;
}

#keyswitches-navigation .nav-item button {
    font-weight: 600;
    font-size: 0.875rem;
}

#shop-all-cta .shop-all-text {
    padding: 0.625rem 2.5rem;
}

#shop-all-cta {
    position: relative;
    background-color: #ece81a;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    padding: 0 0.5rem;
}

@media screen and (min-width: 1200px) {
    #keyswitches-navigation {
        display: flex;
    }
}

/* SWITCH STORY */
.keyswitches-content .block-two-tile {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.keyswitches-content .block-two-tile .block-content {
    display: grid;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    text-align: center;
    max-width: 600px;
}

.keyswitches-content .block-two-tile .block-media {
    display: flex;
    justify-content: center;
}

.keyswitches-content .block-two-tile .block-title {
    margin-bottom: 0.5rem;
}

.keyswitches-content .linear-gradient-wrapper {
    background: linear-gradient(180deg, #000 3.74%, #272829 100%), #000;
    width: 100%;
}

#switchcraft .block-description p,
#switchcraft .block-description ul {
    margin-bottom: 1.5rem;
}

#switchcraft .block-media-interactive {
    position: relative;
}

@media screen and (min-width: 1024px) {
    #switchcraft {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .keyswitches-content .block-two-tile {
        padding: 12rem 6rem;
    }

    .keyswitches-content .block-two-tile .block-content {
        max-width: none;
        grid-template-columns: 1fr 1fr;
        justify-items: flex-start;
        text-align: left;
        max-width: 1600px;
        width: 100%;
    }

    .keyswitches-content .block-two-tile .block-copy {
        max-width: 640px;
    }

    #switch-story {
        background-image: url("https://assets.corsair.com/image/upload/f_auto,q_auto/pages/Keyswitches%20LP/Desktop/Switch_Story_Background_Image_Desktop.webp");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #switch-story .block-media {
        display: none;
    }

    #switchcraft .block-media-interactive {
        grid-row-start: 1;
        grid-column: 1 / 2;
    }

    #switchcraft .block-copy {
        grid-row-start: 1;
        grid-column: 2 / 3;
    }
}

/* SWITCHCRAFT TOOLTIPS */
#switchcraft .tooltip-expand,
#switchcraft .tooltip-close {
    z-index: 50;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 3px;
}

#switchcraft .tooltip-expand span,
#switchcraft .tooltip-close span {
    border-radius: 50%;
    border: 2px solid #fff;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#switchcraft .tooltip-expand {
    position: absolute;
    transform: translate(-50%, -50%);
}

#switchcraft-tooltip-0 .tooltip-expand {
    top: 36%;
    left: 20%;
}

#switchcraft-tooltip-1 .tooltip-expand {
    top: 31%;
    left: 41%;
}

#switchcraft-tooltip-2 .tooltip-expand {
    top: 74%;
    left: 45%;
}

#switchcraft .tooltip-card-desktop {
    display: none;
}

#switchcraft .tooltip-card {
    background: rgba(19, 19, 19, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    text-align: left;
    padding: 2rem;
}

#switchcraft .tooltip-close {
    margin-bottom: 0.5rem;
}

#switchcraft .tooltip-card h4 {
    color: #fff;
    font-weight: 500;
    color: #ece81a;
}

@media screen and (min-width: 1024px) {
    #switchcraft .tooltip-card-desktop {
        display: block;
        position: absolute;
        z-index: 100;
        max-width: 450px;
    }

    #switchcraft .tooltip-card-mobile {
        display: none;
    }

    #switchcraft-tooltip-card-0 {
        top: 29%;
        left: 13%;
    }

    #switchcraft-tooltip-card-1 {
        top: 24%;
        left: 34%;
    }

    #switchcraft-tooltip-card-2 {
        top: 67%;
        left: 38%;
    }
}

/* VIDEO WITH TABS */
#keyswitches-types {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#keyswitches-types .block-header {
    text-align: center;
    margin-bottom: 1rem;
}

#keyswitches-types .block-content {
    max-width: 600px;
}

#keyswitches-types .video-wrapper {
    margin-bottom: 0.5rem;
}

#keyswitches-types .video-item {
    display: none;
}

#keyswitches-types .video-item.active {
    display: block;
}

#keyswitches-types .tabs-wrapper {
    display: flex;
    gap: 0.5rem;
}

#keyswitches-types .tab-button {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    background: #1d1e1f;
    border-top: 4px solid #6d717d;
    color: #fff;
}

#keyswitches-types .tab-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

#keyswitches-types .tab-button.active {
    border-color: #ece81a;
    background: linear-gradient(180deg, #42434b 0%, #333334 100%), #1d1e1f;
}

@media screen and (min-width: 1024px) {
    #keyswitches-types .block-header {
        width: 100%;
        max-width: 1600px;
        text-align: left;
    }

    #keyswitches-types .block-content {
        display: flex;
        max-width: 1600px;
        gap: 1rem;
    }

    #keyswitches-types .tabs-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
    }

    #keyswitches-types .tab-button {
        border-left-width: 4px;
        border-top-width: 0;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        padding: 2rem;
    }

    #keyswitches-types .tab-title {
        font-size: 1.75rem;
        font-family: "Saira Condensed", "Saira", sans-serif !important;
    }

    #keyswitches-types .video-wrapper {
        margin-bottom: 0;
    }

    #keyswitches-types .video-item.active {
        height: 100%;
    }

    #keyswitches-types .video-item.active>video {
        height: 100%;
        object-fit: cover;
        object-position: left;
    }
}

/* MODAL GRID */
.keyswitches-content .block-modal-grid {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.keyswitches-content .block-modal-grid .block-header {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 600px;
}

.keyswitches-content .block-modal-grid .modal-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.keyswitches-content .block-modal-grid .block-content {
    width: 100%;
    max-width: 600px;
    display: flex;
}

.keyswitches-content .block-modal-grid .modal-button {
    background: radial-gradient(50% 50% at 50% 100%,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #1c1c1c 0%, #2a2a2a 50.48%, #383838 100%), #373638;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    padding-bottom: 3rem;
    text-align: left;
    position: relative;
}

.keyswitches-content .block-modal-grid .modal-button-image {
    margin-bottom: 0.5rem;
}

.keyswitches-content .block-modal-grid .modal-button-title {
    font-size: 1.25rem;
    font-weight: 400;
}

.keyswitches-content .block-modal-grid .modal-expand {
    color: #ece81a;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    border: 2px solid #ece81a;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.125rem;
}

@media screen and (min-width: 1024px) {
    .keyswitches-content .block-modal-grid .modal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .keyswitches-content .block-modal-grid .block-header {
        max-width: 1440px;
    }

    .keyswitches-content .block-modal-grid .block-content {
        max-width: 1440px;
    }

    .keyswitches-content .block-modal-grid .modal-button {
        padding: 6rem 2rem;
    }

    .keyswitches-content .block-modal-grid .modal-button-title {
        font-size: 1.375rem;
    }

    .keyswitches-content .block-modal-grid .modal-button-image {
        margin-bottom: 1rem;
    }
}

/* MODAL */
.modal-wrapper {
    position: fixed;
    inset: 0px;
    z-index: 99;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-wrapper .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-wrapper .modal-content {
    background: radial-gradient(33.13% 33.13% at 50% 100%,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #171717 0%, #212121 50.48%, #2f2f2f 100%),
        linear-gradient(180deg, #171a24 0%, #2d3040 100%),
        linear-gradient(0deg, #373638 0%, #373638 100%), #272829;
    padding: 2rem;
    padding-top: 3rem;
    color: #fff;
    position: relative;
    margin-top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.modal-wrapper .modal-logo-image {
    margin-bottom: 2rem;
}

.modal-wrapper .modal-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ece81a;
    letter-spacing: 0.3em;
    line-height: 1.25;
    margin-bottom: 0.125rem;
}

.modal-wrapper .modal-title {
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 300;
}

.modal-wrapper .modal-description {
    line-height: 1.75;
    font-weight: 400;
}

#keyswitch-technology-modal .modal-content {
    max-width: 720px;
}

@media screen and (min-width: 1024px) {
    .modal-wrapper .modal-content {
        padding: 4rem;
        max-height: calc(90vh - 154px);
        /* margin-top: 154px; */
    }

    .modal-wrapper .modal-image-wrapper {
        margin-bottom: 3rem;
    }

    .modal-wrapper .modal-title {
        font-size: 3rem;
    }
}

/* TABS */
#mgx-tabs {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#mgx-tabs .block-header,
#mgx-tabs .block-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    color: #fff;
}

#mgx-tabs .block-cta {
    color: #ece81a;
    display: flex;
}

#mgx-tabs .tab-heading-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

#mgx-tabs .tab-heading-item {
    border-bottom: 2px solid #555;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    font-weight: 500;
}

#mgx-tabs .tab-heading-item[aria-selected="true"] {
    border-color: #ece81a;
    color: #fff;
}

#mgx-tabs .mgx-tab-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

#mgx-tabs .block-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media screen and (min-width: 1024px) {
    #mgx-tabs .block-header {
        max-width: 1600px;
        align-items: flex-start;
        width: 100%;
        text-align: left;
        margin-bottom: 2rem;
        gap: 0.75rem;
    }

    #mgx-tabs .block-header .block-description {
        max-width: 900px;
    }

    #mgx-tabs .block-content {
        max-width: 1600px;
    }

    #mgx-tabs .tab-heading-container {
        flex-direction: row;
        width: 100%;
    }

    #mgx-tabs .tab-heading-item {
        flex: 1 1 0;
        font-size: 1.5rem;
    }

    #mgx-tabs .tab-content-item {
        display: grid;
        grid-template-columns: 5fr 7fr;
        align-items: center;
        gap: 2rem;
    }

    #mgx-tabs .mgx-tab-content-copy {
        text-align: left;
        padding-top: 1rem;
        max-width: 540px;
    }

    #mgx-tabs .mgx-tab-content h2 {
        margin-bottom: 1rem;
    }

    #mgx-tabs .mgx-tab-content p {
        margin-bottom: 1rem;
    }
}

/* NEW SWITCHES */
#new-switches {
    background: linear-gradient(180deg, #272829 0%, #141414 30.73%, #000 100%),
        #000;
}

#new-switches .modal-button {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: linear-gradient(180deg, #171717 0%, #212121 50.48%, #2f2f2f 100%),
        linear-gradient(180deg, #1c1c1c 0%, #2a2a2a 50.48%, #383838 100%),
        linear-gradient(180deg, #14151a 0%, #171a24 50.48%, #2d3040 100%), #373638;
    align-items: center;
}

#new-switches .modal-button-image {
    width: 80%;
}

#new-switches .modal-button-subtitle {
    color: #ece81a;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
}

#new-switches .modal-button-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
}

#new-switches-modal .modal-content {
    display: grid;
    gap: 2rem;
}

#new-switches-modal .modal-content-image {
    grid-row: 1/2;
}

/* MODAL - SPECS */
#new-switches-modal .modal-description-wrapper {
    margin-bottom: 2rem;
}

#new-switches-modal .modal-description {
    max-width: 800px;
}

#new-switches-modal .modal-table {
    border: 1px solid #5c5c5d;
}

#new-switches-modal .table-heading {
    border-bottom: 1px solid #5c5c5d;
    border-left: 8px solid #ece81a;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

#new-switches-modal .table-heading h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

#new-switches-modal .table-content {
    position: relative;
    display: grid;
    align-items: flex-start;
    text-align: center;
    padding: 2rem;
    row-gap: 1rem;
}

#new-switches-modal .table-cell .cell-metrics {
    font-family: "Saira Condensed", "Saira", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

#new-switches-modal .table-cell .cell-units {
    font-family: "Saira Condensed", "Saira", sans-serif;
    color: #ece81a;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

#new-switches-modal .table-heading::before,
#new-switches-modal .table-heading::after {
    content: "";
    position: absolute;
    top: -1px;
    width: 24px;
    height: 24px;
    border: 1px solid #fff;
    border-width: 0;
}

#new-switches-modal .table-content::before,
#new-switches-modal .table-content::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 24px;
    height: 24px;
    border: 1px solid #fff;
    border-width: 0;
}

#new-switches-modal .table-heading::before {
    left: -9px;
    border-top-width: 1px;
    border-left-width: 1px;
}

#new-switches-modal .table-heading::after {
    right: -1px;
    border-top-width: 1px;
    border-right-width: 1px;
}

#new-switches-modal .table-content::before {
    left: -1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

#new-switches-modal .table-content::after {
    right: -1px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* MODAL - IMAGE */
#new-switches-modal .modal-switch-regular-wrapper {
    margin-bottom: 2rem;
}

#new-switches-modal .modal-switch-image-wrapper {
    max-width: 200px;
}

/* MODAL - AUDIO */
#new-switches-modal figure figcaption {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.25rem;
}

#new-switches-modal figure audio {
    width: 100%;
}

/* MODAL - PRODUCTS */
#new-switches-modal h3 {
    font-size: 1.75rem;
    line-height: 1.25;
}

#new-switches-modal .products-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#new-switches-modal .products-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    text-align: center;
}

#new-switches-modal .products-list-item :is(p, a) {
    color: #ece81a;
    font-family: "Saira Condensed", "Saira", sans-serif;
    letter-spacing: 0.08em;
    width: 80%;
}

@media screen and (min-width: 480px) {
    #new-switches-modal .table-content {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1rem;
    }
}

@media screen and (min-width: 768px) {
    #new-switches-modal {
        padding: 2rem;
    }

    #new-switches-modal .table-content {
        grid-template-columns: repeat(4, 1fr);
    }

    #new-switches-modal .modal-content {
        column-gap: 2rem;
        max-height: calc(90vh - 60px);
        width: clamp(768px, 90vw, 1200px);
    }

    #new-switches-modal .products-list {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media screen and (min-width: 1280px) {
    #new-switches-modal .modal-content {
        grid-template-columns: 1fr auto;
        column-gap: 4rem;
        row-gap: 4rem;
        max-width: none;
    }

    #new-switches-modal .modal-content-specs {
        grid-row: 1/3;
    }

    #new-switches-modal .modal-content-products {
        grid-row: 3/4;
        grid-column: 1/2;
    }

    #new-switches-modal .modal-content-image {
        grid-row: 1/2;
        grid-column: 2/3;
    }

    #new-switches-modal .modal-content-audio {
        grid-row: 2/4;
        grid-column: 2/3;
    }

    #new-switches-modal .table-heading {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #new-switches-modal .table-heading h3 {
        font-size: 1.5rem;
    }

    #new-switches-modal .modal-switch-image-wrapper {
        max-width: 400px;
    }
}

@media screen and (min-width: 1600px) {
    #new-switches-modal .table-content {
        grid-template-columns: repeat(7, auto);
        column-gap: 1.5rem;
        text-align: left;
    }

    #new-switches-modal .modal-content {
        column-gap: 2rem;
        width: clamp(1440px, 90vw, 1600px);
    }

    #new-switches-modal .modal-content-specs {
        grid-row: 1/2;
    }

    #new-switches-modal .modal-content-products {
        grid-row: 2/4;
        grid-column: 1/2;
    }

    #new-switches-modal .modal-content-image {
        grid-row: 1/3;
        grid-column: 2/3;
    }

    #new-switches-modal .modal-content-audio {
        grid-row: 3/4;
        grid-column: 2/3;
    }
}