/* THEMES */

/********** Theme: dark **********/
.flipdown.flipdown__theme-dark {
    font-family: sans-serif;
    font-weight: bold;
}
.flipdown.flipdown__theme-dark .rotor-group-heading:before {
    color: #000000;
}
.flipdown.flipdown__theme-dark .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
.flipdown.flipdown__theme-dark .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
    background-color: #151515;
}
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
    color: #ffffff;
    background-color: #151515;
}
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
    color: #efefef;
    background-color: #202020;
}
.flipdown.flipdown__theme-dark .rotor:after {
    border-top: solid 1px #151515;
}

/********** Theme: light **********/
.flipdown.flipdown__theme-light {
    font-family: sans-serif;
    font-weight: bold;
}
.flipdown.flipdown__theme-light .rotor-group-heading:before {
    color: #eeeeee;
}
.flipdown.flipdown__theme-light .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
.flipdown.flipdown__theme-light .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
    background-color: #dddddd;
}
.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
    color: #222222;
    background-color: #dddddd;
}
.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
    color: #333333;
    background-color: #eeeeee;
}
.flipdown.flipdown__theme-light .rotor:after {
    border-top: solid 1px #222222;
}

/* END OF THEMES */

/*
  Card width: 32px, margin: 3px, 2 cards per group = 32+3+32 = 67px
  Colon dot left = 67px
  Groups: 4 × 67px + 3 × 16px gap = 268 + 48 = 316px
*/
.flipdown {
    overflow: visible;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* ── Rotor Group ── */
.flipdown .rotor-group {
    position: relative;
    float: left;
    padding-right: 16px;
}

.flipdown .rotor-group:last-child {
    padding-right: 0;
}

/* ── Group Headings ── */
.flipdown .rotor-group-heading:before {
    display: block;
    height: 18px;
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 500;
}

.flipdown .rotor-group:nth-child(1) .rotor-group-heading:before {
    content: attr(data-before);
}
.flipdown .rotor-group:nth-child(2) .rotor-group-heading:before {
    content: attr(data-before);
}
.flipdown .rotor-group:nth-child(3) .rotor-group-heading:before {
    content: attr(data-before);
}
.flipdown .rotor-group:nth-child(4) .rotor-group-heading:before {
    content: attr(data-before);
}

/* ── Colon dot (bottom) ── */
/* 32 + 3 + 32 = 67px */
/* .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 67px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
} */

/* ── Colon dot (top) ── */
/* .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
    content: "";
    position: absolute;
    bottom: 26px;
    left: 67px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
} */

/* ── Rotor card ── */
.flipdown .rotor {
    position: relative;
    float: left;
    width: 32px;
    height: 48px;
    margin: 0px 3px 0px 0px;
    border-radius: 4px;
    font-size: 1.8rem;
    text-align: center;
    perspective: 200px;
}

.flipdown .rotor:last-child {
    margin-right: 0;
}

/* ── Top & Bottom halves ── */
.flipdown .rotor-top,
.flipdown .rotor-bottom {
    overflow: hidden;
    position: absolute;
    width: 32px;
    height: 24px;
}

/* ── Flip leaf ── */
.flipdown .rotor-leaf {
    z-index: 1;
    position: absolute;
    width: 32px;
    height: 48px;
    transform-style: preserve-3d;
    transition: transform 0s;
}

.flipdown .rotor-leaf.flipped {
    transform: rotateX(-180deg);
    transition: all 0.5s ease-in-out;
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
    overflow: hidden;
    position: absolute;
    width: 32px;
    height: 24px;
    margin: 0;
    transform: rotateX(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
    line-height: 48px;
    border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-leaf-rear {
    line-height: 0px;
    border-radius: 0px 0px 4px 4px;
    transform: rotateX(-180deg);
}

.flipdown .rotor-top {
    line-height: 48px;
    border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-bottom {
    bottom: 0;
    line-height: 0px;
    border-radius: 0px 0px 4px 4px;
}

/* ── Hinge line ── */
.flipdown .rotor:after {
    content: "";
    z-index: 2;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 32px;
    height: 24px;
    border-radius: 0px 0px 4px 4px;
}

/* ── Mobile ── */
@media screen and (max-width: 550px) {
    .flipdown {
        width: 100%;
        height: 58px;
        margin-top: 10px;
    }

    .offers_sells_wrapper h2 {
        font-size: 24px !important;
    }

    .flipdown .rotor {
        font-size: 1.3rem;
        margin-right: 2px;
        width: 24px;
        height: 36px;
    }

    .flipdown .rotor-leaf,
    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
        width: 24px;
    }

    .flipdown .rotor-leaf,
    .flipdown .rotor {
        height: 36px;
    }

    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
        height: 18px;
    }

    .flipdown .rotor-leaf-front,
    .flipdown .rotor-top {
        line-height: 36px;
    }

    .flipdown .rotor-group {
        padding-right: 12px;
    }

    .flipdown .rotor-group:last-child {
        padding-right: 0px;
    }

    .flipdown .rotor-group-heading:before {
        font-size: 14px;
        height: 14px;
        line-height: 14px;
    }

    /* Mobile colon: 24 + 2 + 24 = 50px */
    .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
    .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
        left: 50px;
        width: 4px;
        height: 4px;
    }

    .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before {
        bottom: 7px;
    }

    .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
        bottom: 19px;
    }
}