.cmp-stoolcheckermanual {
    background: #e9f8ff;
    border-radius: 1.75rem;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1300px; /* TODO: consider 900px */
    overflow: hidden;
    padding: 2rem 1rem 1.75rem;
    width: 100%;
}

.cmp-stoolcheckermanual__tool-title {
    color: #001489;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1rem;
    text-align: center;
}

/* Stool Checker Manual Wrapper */
.cmp-stoolcheckermanual__wrapper {
    align-items: center;
    display: flex;
    gap: 0;
    justify-content: center;
    margin: auto;
    position: relative;
    width: min(100%, 1120px);
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual {
        padding: 2.75rem 2.5rem 2.25rem;
    }

    .cmp-stoolcheckermanual__wrapper {
        gap: 0;
    }
}

/* Slider Unit */
.cmp-stoolcheckermanual__slider-unit {
    height: 45px;
    width: 35px;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider-unit {
        height: 50px;
        width: 40px;
    }
}

/* Slider Color & Type */
.cmp-stoolcheckermanual__slider--color,
.cmp-stoolcheckermanual__slider--type {
    height: auto;
    position: relative;
    width: 35px;
}

.cmp-stoolcheckermanual__slider--color-wrapper,
.cmp-stoolcheckermanual__slider--type-wrapper {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color,
    .cmp-stoolcheckermanual__slider--type {
        width: 40px;
    }
}

/* Handle */
.cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle,
.cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle {
    color: #fff;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 700;
    height: 60px;
    left: 0;
    line-height: 30px;
    margin-left: -15px;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateY(135px);
    width: 60px;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle,
    .cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle {
        font-size: .875rem;
        margin-left: 0;
        transform: translateY(145px);
    }
}

/* Handle Dragger Pointer */
.cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger-pointer:after,
.cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger-pointer:after {
    background-image: url(../../assets/stool-images/draggerPointer.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    height: 110px;
    left: 5.5px;
    position: absolute;
    top: -35px;
    width: 55px;
    z-index: 80;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-name: blinker;
    animation-timing-function: linear;
    text-align: center;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger-pointer:after,
    .cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger-pointer:after {
        height: 140px;
        left: -9px;
        top: -40px;
        width: 60px;
    }
}

/* Blinker Animation */
@keyframes blinker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Handle Dragger Label */
.cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger-label,
.cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger-label {
    align-items: center;
    display: flex;
    height: 30px;
    justify-content: center;
    left: 5px;
    line-height: 1.1;
    position: absolute;
    text-align: center;
    top: 5px;
    width: 55px;
    z-index: 50;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger-label,
    .cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger-label {
        left: -20px;
        top: 15px;
        width: 80px;
    }
}

/* Handle Dragger */
.cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger,
.cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger {
    height: 110px;
    margin-left: -5px;
    margin-top: -35px;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle--dragger,
    .cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle--dragger {
        margin-left: -30px;
        margin-top: -25px;
    }
}

/* Hexagon Dragger */
.cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle .hexagonDragger,
.cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle .hexagonDragger {
    height: 90px;
    margin-left: -40px;
    margin-top: -25px;
    position: absolute;
    top: 0;
    width: 90px;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__slider--color .cmp-stoolcheckermanual__handle .hexagonDragger,
    .cmp-stoolcheckermanual__slider--type .cmp-stoolcheckermanual__handle .hexagonDragger {
        height: 110px;
        margin-left: -50px;
        width: 110px;
    }
}

/* Point Up & Down */
.point-down,
.point-up {
    clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
}

.point-down {
    transform: rotate(180deg);
}

/* Stool Checker Manual Image */
.cmp-stoolcheckermanual__image {
    left: 50%;
    max-height: 220px;
    max-width: 220px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(34vw, 220px);
    z-index: 2;
}

.cmp-stoolcheckermanual__image img {
    height: auto;
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__image {
        height: 250px;
        width: 250px;
    }
}

@media (min-width: 1200px) {
    .cmp-stoolcheckermanual__image {
        height: 280px;
        max-height: 280px;
        max-width: 280px;
        width: 250px;
    }
}

/* Stool Checker Manual Description */
.cmp-stoolcheckermanual__description {
    color: #001489;
    font-size: .875rem;
    font-weight: 325;
    letter-spacing: -.0175rem;
    line-height: 1.5rem;
    margin: 1rem auto 0;
    max-width: 920px;
    text-align: center;
    width: 80%;
}

.cmp-stoolcheckermanual__description p {
    margin: 0;
}

.cmp-stoolcheckermanual__description b,
.cmp-stoolcheckermanual__description strong {
    display: inline-block;
    font-weight: 700;
    margin-bottom: .25rem;
}

/* Background Images */
.cmp-stoolcheckermanual__background-image {
    display: none;
}

.cmp-stoolcheckermanual__background-image,
.cmp-stoolcheckermanual__background-image-mobile {
    min-width: 0;
    position: relative;
}

.cmp-stoolcheckermanual__background-image img,
.cmp-stoolcheckermanual__background-image-mobile img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__background-image {
        display: block;
    }
}

.cmp-stoolcheckermanual__background-image-mobile {
    display: block;
}

@media (min-width: 768px) {
    .cmp-stoolcheckermanual__background-image-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .cmp-stoolcheckermanual {
        border-radius: 1.25rem;
        padding: 1.5rem 1.5rem;
    }

    .cmp-stoolcheckermanual__wrapper {
        gap: 0;
    }

    .cmp-stoolcheckermanual__background-image-mobile img {
        max-width: 360px;
    }

    .cmp-stoolcheckermanual__description {
        margin-top: 1.5rem;
        width: 100%;
    }
}

/* ============================================
   See Results / Try Again buttons
   ============================================ */

.cmp-stoolcheckermanual__actions {
    display: flex;
    justify-content: center;
    /* At the bottom slider position the hexagon handle extends ~60px (desktop)
       or ~43px (mobile) below the wrapper. margin-top must exceed that to
       prevent the handle from overlapping the button. */
    margin-top: 5rem;
}

.cmp-stoolcheckermanual__see-result-btn {
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    background-color: #95b8cc;
    border: 2px solid transparent;
    border-radius: 2rem;
    box-shadow: 0 4px 14px rgba(149, 184, 204, 0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.25rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    letter-spacing: .015rem;
    line-height: 1rem;
    padding: 1rem 1.25rem;
    text-transform: uppercase;
    transition: background-color .3s ease-in-out, transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

.cmp-stoolcheckermanual__see-result-btn::after {
    background-image: url("../../assets/stool-images/btn_poop_icon.png");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: inline-block;
    height: 2.5rem;
    width: 2.5rem;
}

.cmp-stoolcheckermanual__see-result-btn:hover {
    background-color: #7aa3bc;
    box-shadow: 0 6px 18px rgba(149, 184, 204, 0.55);
    transform: scale(1.02);
}

/* Description hidden by default; revealed when result is shown */
.cmp-stoolcheckermanual__description {
    display: none;
}

.cmp-stoolcheckermanual.has-result .cmp-stoolcheckermanual__description {
    display: block;
}

/* When result is shown, collapse the 5rem gap used to clear the hex handle (button is gone) */
.cmp-stoolcheckermanual.has-result .cmp-stoolcheckermanual__actions {
    margin-top: 0;
}

.cmp-stoolcheckermanual.has-result .cmp-stoolcheckermanual__see-result-btn {
    display: none;
}

@media (max-width: 767px) {
    .cmp-stoolcheckermanual__see-result-btn {
        font-size: 1rem;
        width: 100%;
    }
}