.summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.summary.summary--expanded {

    bottom: 0;
    height: 75vh;
}

.summary.summary--expanded>.box {
    height: 100%;
}

.summary.summary--expanded .summary__quote {
    flex: 1 0 0;
}


@media all and (min-width: 700px) {
    .summary {
        position: sticky;
        top: 9em;
        bottom: unset;
        left: unset;
        z-index: 0;
    }
}


.page__inner {
    padding: 1em;
    padding-top: 0;
}

/* @TODO: Pass this to JinjaX custom component style later... */

.selected-finishing {
    border: 1px solid var(--color-primary) !important;
}

.acabamento-transition {
    will-change: opacity, transform, height;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* Entering */
.acabamento-enter {
    transition: height 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

.acabamento-enter-start {
    height: 0;
    opacity: 0;
}

.acabamento-enter-end {
    height: var(--acabamento-max-height, 1000px);
    /* fallback, will be set inline */
    opacity: 1;
}

/* Leaving */
.acabamento-leave {
    transition: height 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

.acabamento-leave-start {
    height: var(--acabamento-max-height, 1000px);
    opacity: 1;
}

.acabamento-leave-end {
    height: 0;
    opacity: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 50vh;
    /* border-radius: 24px; */
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-input:checked+.toggle-slider {
    background-color: var(--color-primary);
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.toggle-input:focus+.toggle-slider {
    box-shadow: 0 0 1px var(--color-primary);
}

.finish-controls {
    width: 100%;
    display: flex;
    justify-content: space-around;
    max-height: 2em;
    flex-wrap: wrap;
    align-content: center;
    gap: 0.5em;
}




.finish-controls .button--icon {
    min-width: 2.5em;
    min-height: 2.5em;
    width: 2.5em;
    height: 2.5em;
}

.finish-controls .button--icon:hover {
    background: var(--color-primary-dark);
}

.finish-controls input[type="number"] {
    max-width: 8em;
    width: 100%;
    min-width: 0;
    height: 2.5em;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 0.5em;
    padding: 0 0.5em;
    flex: 1 1 0;
}

.file-drop {
    min-height: 12em;
}

.file-drop.highlighted {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.file-drop.on-hightlighted {
    display: none;
}

input[type='number'] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.carrousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.carrousel__inner {
    display: flex;
    gap: 1em;
    position: absolute;
    height: 100%;
}

.carrousel-item>img {
    flex: 0 0 auto;
    margin-right: 16px;
    height: 100%;
    border-radius: 0.25em;
}

.carrousel-item {
    border-radius: 0.25em;
}

.box {
    background-color: white;
    padding: 1em;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    border: 1px solid lightgray;
}

.w-text {
    color: #f9f9f9;
}

.design-templates-box {
    transition: all 0.3s ease;
}

.design-templates-box:hover .fa-arrow-right {
    transform: translateY(50%) translateX(0.5em) !important;
    transition: transform 0.3s ease;
}

.design-templates-box .fa-arrow-right {
    transition: transform 0.3s ease;
}

[x-ref="description"] {
    overflow-y: hidden;
    padding-bottom: 4em;
    max-height: 10em;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, white 2em);
    mask-image: linear-gradient(to top, transparent 0%, white 2em);
    width: 100%;
}