/* ***************************************** */
/* ************ Utility & Reset ************ */
/* ***************************************** */
.ow-heading button {
    all: inherit;
}

/* .ow-heading button:hover, .ow-heading button:focus {}
.ow-heading button[aria-expanded="true"] {} */

/* ***************************************** */
/* ***************** 3-tab ***************** */
/* ***************************************** */
.style-3-tab .ow-panel-icon {
    display: block;
    position: absolute;
    top: 42px;
    left: calc(46% - 56.5px);
    height: 113px;
    width: 113px;
    z-index: 1;
}

.style-3-tab .ow-panel-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.style-3-tab .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
    justify-content: space-between;
    max-width: 411px;
}

@media (min-width: 640px) {
    .style-3-tab .ow-hidden {
        display: none;
    }

    .style-3-tab .ow-accordion-item {
        display: grid;
        grid-template-columns: 100%;
        overflow: hidden;
        position: relative;
        /* transition: width 0.2s; */
        width: 92px;
    }

    .style-3-tab .ow-accordion-item.wp-block-acf-ow-accordion-panel.ow-open:not(:first-child) {
        margin-left: 20px;
    }

    .style-3-tab .ow-panel-title {
        margin-top: -0.5px;
        margin-bottom: -0.5px;
        order: 2;
    }

    .style-3-tab .ow-heading {
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin: 0;
        height: 100%;
        position: relative;
        width: 100%;
    }

    .style-3-tab .ow-accordion-item:not(.ow-open) .ow-heading:before {
        background-image: url(images/tab-plus.svg);
        background-repeat: no-repeat;
        background-size: contain;
        content: "";
        display: block;
        position: absolute;
        left: 35px;
        top: 15px;
        height: 19px;
        width: 19px;
    }

    .style-3-tab .ow-heading button {
        align-items: start;
        background: none;
        display: grid;
        width: 92px;
    }

    .style-3-tab .ow-heading button span {
        align-items: center;
        cursor: pointer;
        display: inline-flex;
        font-family: "sofia-pro";
        font-size: 19px;
        font-style: normal;
        font-weight: 800;
        height: 22px;
        letter-spacing: 2.47px;
        line-height: 23px;
        /* 121.053% */
        padding-left: 20px;
        text-transform: uppercase;
        transform: rotate(90deg);
        transform-origin: 46px 45px;
        width: max-content;
    }

    .style-3-tab .ow-accordion-panel {
        position: relative;
    }

    .style-3-tab .ow-panel-content,
    .style-3-tab .ow-panel-content>* {
        height: 100%;
    }

    .style-3-tab.ow-accordion-container .acf-innerblocks-container {
        display: flex;
        height: 100%;
        min-height: 568px;
        padding: 0;
        width: 100%;
    }

    .style-3-tab .ow-accordion-item.ow-open {
        grid-template-columns: auto 92px;
        width: calc(100% - 92px - 80px);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(1n + 4) {
        display: none;
    }

    /* First Child */
    .style-3-tab .ow-accordion-item.ow-open:first-child {
        background: var(--wp--preset--color--light-2);
    }

    .style-3-tab .ow-accordion-item:first-child .ow-heading {
        background-image: url(images/tab-styled-1.svg);
    }

    .style-3-tab .ow-accordion-item:not(.ow-open):not(:first-child) .ow-heading:before {
        left: 20px;
    }

    .style-3-tab .ow-accordion-item.ow-open:first-child .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-2);
        border-right: 0;
    }

    .style-3-tab .ow-accordion-item:first-child .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        border-left: 3px solid var(--wp--preset--color--dark-2);
    }

    .style-3-tab .ow-accordion-item:first-child .ow-heading button span {
        padding-top: 8px;
        padding-left: 78px;
        width: 180px;
    }

    /* Second Child */
    .style-3-tab .ow-accordion-item.ow-open:nth-of-type(2) {
        background: var(--wp--preset--color--light-1);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(2) .ow-heading {
        background-image: url(images/tab-styled-2.svg);
    }

    .style-3-tab .ow-accordion-item.ow-open:nth-of-type(2) .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-1);
        border-right: 0;
    }

    .style-3-tab .ow-accordion-item:nth-of-type(2) .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        border-left: 3px solid var(--wp--preset--color--dark-1);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(2) .ow-heading button span {
        padding-top: 14px;
        padding-left: 261px;
        width: 130px;
    }

    /* Third Child */
    .style-3-tab .ow-accordion-item:nth-of-type(3) {
        margin-left: -12px;
    }

    .style-3-tab .ow-accordion-item.ow-open:nth-of-type(3) {
        background: var(--wp--preset--color--light-3);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(3) .ow-heading {
        background-image: url(images/tab-styled-3.svg);
    }

    .style-3-tab .ow-accordion-item.ow-open:nth-of-type(3) .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-3);
        border-right: 0;
    }

    .style-3-tab .ow-accordion-item:nth-of-type(3) .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        border-left: 3px solid var(--wp--preset--color--dark-3);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(3) .ow-heading button span {
        padding-top: 16px;
        padding-left: 432px;
        width: 140px;
    }
}

/* ***************************************** */
/* ***************** 6-tab ***************** */
/* ***************************************** */
.style-6-tab .ow-panel-content,
.style-6-tab .ow-accordion-item:not(:last-child) {
    background: #fff;
}

.style-6-tab .ow-panel-content .wp-block-columns {
    border: 3px solid var(--wp--preset--color--dark-1);
}

@media (min-width: 1227px) {
    .style-6-tab .ow-hidden {
        display: none;
    }

    .style-6-tab .ow-accordion-item {
        display: grid;
        grid-template-columns: 100%;
        overflow: hidden;
        position: relative;
        /* transition: width 0.2s; */
        width: 92px;
    }

    .style-6-tab .ow-accordion-item.wp-block-acf-ow-accordion-panel.ow-open:not(:first-child) {
        margin-left: 20px;
    }

    .style-6-tab .ow-panel-title {
        margin-top: -0.5px;
        margin-bottom: -0.5px;
        order: 2;
    }

    .style-6-tab .ow-heading {
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin: 0;
        height: 100%;
        position: relative;
        width: 100%;
    }

    .style-6-tab .ow-accordion-item:not(.ow-open) .ow-heading:before {
        background-image: url(images/tab-plus.svg);
        background-repeat: no-repeat;
        background-size: contain;
        content: "";
        display: block;
        position: absolute;
        left: 35px;
        top: 15px;
        height: 19px;
        width: 19px;
    }

    .style-6-tab .ow-heading button {
        align-items: start;
        background: none;
        display: grid;
        width: 92px;
    }

    .style-6-tab .ow-heading button span {
        align-items: center;
        cursor: pointer;
        display: inline-flex;
        font-family: "sofia-pro";
        font-size: 19px;
        font-style: normal;
        font-weight: 800;
        height: 22px;
        letter-spacing: 2.47px;
        line-height: 23px;
        /* 121.053% */
        padding-left: 20px;
        text-transform: uppercase;
        transform: rotate(90deg);
        transform-origin: 46px 45px;
        width: max-content;
    }

    .style-6-tab .ow-accordion-panel {
        position: relative;
    }

    .style-6-tab .ow-panel-content,
    .style-6-tab .ow-panel-content>* {
        height: 100%;
    }

    .style-6-tab.ow-accordion-container .acf-innerblocks-container {
        display: flex;
        height: 100%;
        min-height: 568px;
        padding: 0;
        width: 100%;
    }

    .style-6-tab .ow-accordion-item,
    .style-6-tab .ow-heading button {
        width: 73px;
    }

    .style-6-tab .ow-accordion-item:not(:first-child) {
        margin-left: -12px;
    }

    /* Enhancement: enter the number of items and show this in the block.php file so it's full width (or do in JS) */
    .style-6-tab .ow-accordion-item.ow-open {
        grid-template-columns: auto 73px;
        width: calc(100% - (61px * 5));
    }

    .style-6-tab .ow-accordion-item.ow-open:not(:first-child) {
        margin-left: 0;
        padding-left: 12px;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(1n + 7) {
        display: none;
    }

    .style-6-tab .ow-panel-content .wp-block-columns {
        border-right: 0;
    }

    .style-6-tab .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        max-width: 411px;
        border-left: 3px solid var(--wp--preset--color--dark-1);
    }

    .style-6-tab .ow-heading {
        position: relative;
    }

    .style-6-tab .ow-accordion-item:not(.ow-open):not(:first-child) .ow-heading:before {
        left: 15px;
    }

    .style-6-tab .ow-accordion-item:not(.ow-open):first-child .ow-heading:before {
        display: none;
    }

    .style-6-tab .ow-heading button span {
        padding-top: 11px;
        transform-origin: 36px 37px;
        width: 190px;
    }

    /* First Child */
    .style-6-tab .ow-accordion-item:first-child .ow-heading {
        background-image: url(images/tab-mono-1.svg);
        z-index: 6;
    }

    .style-6-tab .ow-accordion-item:first-child .ow-heading button span {
        padding-top: 17px;
        width: 180px;
    }

    /* Second Child */
    .style-6-tab .ow-accordion-item:nth-of-type(2).ow-open {
        grid-template-columns: auto 80px;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(2) {
        margin-left: -10px;
    }

    .style-6-tab .ow-accordion-item:not(.ow-open):nth-of-type(2),
    .style-6-tab .ow-accordion-item:nth-of-type(2) .ow-heading button {
        width: 80px;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(2) .ow-heading {
        background-image: url(images/tab-mono-2.svg);
        position: relative;
        z-index: 5;
    }

    .style-6-tab .ow-accordion-item.ow-open:nth-of-type(2) .ow-heading:after {
        background: var(--wp--preset--color--dark-1);
        content: "";
        height: 3.5px;
        position: absolute;
        top: 0;
        left: 0;
        width: 19px;
    }

    .style-6-tab .ow-accordion-item:not(.ow-open):nth-of-type(2) .ow-heading:before {
        left: 29px;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(2) .ow-heading button span {
        padding-left: 100px;
    }

    /* Third Child */
    .style-6-tab .ow-accordion-item:nth-of-type(3) {
        margin-left: -10px;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(3) .ow-heading {
        background-image: url(images/tab-mono-3.svg);
        z-index: 4;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(3) .ow-heading button span {
        padding-left: 172px;
    }

    /* Fourth Child */
    .style-6-tab .ow-accordion-item:nth-of-type(4) .ow-heading {
        background-image: url(images/tab-mono-4.svg);
        z-index: 3;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(4) .ow-heading button span {
        padding-left: 242px;
    }

    /* Fifth Child */
    .style-6-tab .ow-accordion-item:nth-of-type(5) .ow-heading {
        background-image: url(images/tab-mono-5.svg);
        z-index: 2;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(5) .ow-heading button span {
        padding-left: 315px;
    }

    /* Sixth */
    .style-6-tab .ow-accordion-item:nth-of-type(6) .ow-heading {
        background-image: url(images/tab-mono-6.svg);
        z-index: 1;
    }

    .style-6-tab .ow-accordion-item:nth-of-type(6) .ow-heading button span {
        padding-left: 375px;
    }

    /* Last Child */
    .style-6-tab .ow-accordion-item.ow-open:last-child:before {
        background: #fff;
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -7px;
        width: 19px;
    }
}

/* Mobile Adjustments */
@media (max-width: 1227px) {

    .style-3-tab .ow-accordion-panel {
        width: calc(100% + 25px);
    }

    .style-3-tab .ow-panel-content .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .style-3-tab .ow-panel-content .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }

    .style-3-tab .ow-accordion-item .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        border-left: none !important;
        gap: 0;
        max-width: 100%;
        padding-top: 50px !important;
        padding-bottom: 32px !important;
        padding-left: 35px !important;
    }

    .style-3-tab .ow-panel-content .wp-block-cover {
        min-height: 300px !important;
    }

    .style-3-tab .ow-panel-icon {
        top: 240px;
        left: calc(50% - 56.5px + 13px);
    }

    .style-3-tab .ow-panel-content .wp-block-buttons {
        margin-top: 20px !important;
    }

    /* Style 6-tab */
    .style-6-tab .ow-panel-title {
        display: none;
    }

    .style-6-tab .ow-accordion-panel {
        position: relative;
        width: 100%;
    }

    .style-6-tab .ow-panel-content .wp-block-columns {
        min-height: 568px;
    }

    .style-6-tab .ow-accordion-item .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        padding-top: 50px !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

@media (max-width: 781px) {
    .style-6-tab .acf-innerblocks-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 450px;
    }

    .style-6-tab .ow-panel-content .wp-block-cover {
        min-height: 450px !important;
    }

    .style-6-tab .ow-accordion-item .ow-panel-content .wp-block-column:nth-child(2) .wp-block-group {
        padding-top: 25px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 639.9px) {
    .style-3-tab .ow-panel-title {
        display: none;
    }

    .style-3-tab .ow-accordion-panel {
        position: relative;
        width: 100%;
    }

    .style-3-tab .ow-accordion-item:first-child .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-2);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(2) .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-1);
    }

    .style-3-tab .ow-accordion-item:nth-of-type(3) .ow-panel-content .wp-block-columns {
        border: 3px solid var(--wp--preset--color--dark-3);
    }
}