/*UPDATEDDDDDDDDDDDDDDDD*/
.typelove-wrapper {
    max-width: -webkit-fill-available;
    margin: 0 auto;
    box-sizing: border-box;
}

.typelove-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}



.sticky-bar {
    position: sticky;
}

.typelove-categories {
    transition: transform 0.5s cubic-bezier(0.2, 0.06, 0, 1.15), opacity 0.5s ease;
    will-change: auto;
}
.typelove-categories.hide {
    transform: translateY(-200%);
    opacity: 0;
    position: absolute;
}






.typelove-categories button span {
    opacity: .56;
    display: inline-block;
}
.typelove-categories button {
    border: 1px solid #eee;
    background: #fafafa;
    color: #555;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: all .2s ease;
}

.typelove-categories label.typelove-category {
    border: 1px solid #eee;
    background: #fafafa;
    color: #555;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: all .2s ease;
}

.typelove-categories button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.typelove-categories button.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.top-left p.font-title {
    font-size: 8px !important;
    width: fit-content !important;
}

.typelove-input {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 8px;
    border: 1px solid #eee;
    border-radius: 45px;
    background: #fafafa;
}

#typelove-live-text {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.view-toggle {
    position: relative;
    display: flex;
    background: #f2f2f2;
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    outline: none;
}

.view-btn {
    outline: none;
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn svg {
    fill: #cccccc;
    transition: fill .25s ease;
}

.view-btn.active svg {
    fill: #0e0e0e;
}

#typelove-sort {
    border: none;
    border-radius: 32px;
    padding: 4px 12px;
    font-size: 12px;
    background: #e8e8e8;
    cursor: pointer;
    outline: none;
    color: #999999;
}

.typelove-flex {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    padding: 28px;
}

.typelove-flex.is-list {
    grid-template-columns: repeat(1, 1fr);
    min-height: 150px;
}

.top-left {
    display: flex;
    gap: 5px;
    align-items: baseline;
}

p.typelove-count {
    margin: 0;
}

p.typelove-foundry {
    margin: 0;
}

.typelove-item {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f2f2f2;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 165px;
}

.typelove-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}



.top-bar-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: sans-serif;
}

.typelove-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
    width: 100%;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 8px;
    font-family: sans-serif;
    font-weight: bold;
}

.typelove-links a {
    text-decoration: none;
    background: #f0e5ff;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.5s;
    color: #ad74f7;
}

.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #F2EFF3;
    background: linear-gradient(180deg, #f2eff3 0%, #ffffff 87%);
    padding: 20px 28px;
    border-bottom: 1px solid #f1f1f1;
    box-shadow: 0 20px 10px -15px rgba(0, 0, 0, .04);
    backdrop-filter: blur(8px);
    transition: all 0.5s 
cubic-bezier(0.2, 0.06, 0, 1.15);
    will-change: auto;
}

a.typelove-download {
    color: #ad74f7;
    background: #dec4ff;
}

.typelove-links a:hover {
    background: black;
    padding: 8px 16px;
    border-radius: 24px;
    color: white;
}

.typelove-download {
    background: #111;
    padding: 6px 14px;
    border-radius: 999px;
}

h1.wp-block-post-title {
    display: none;
    visibility: hidden;
}

.typelove-preview {
    font-size: var(--typelove-font-size, 38px);
    margin: 16px 0 24px 0;
    line-height: 1.1;
    word-break: break-word;
    outline-color: transparent;
}

input.font-size {
    flex: 1;
}

input#typelove-live-text {
    flex: 5;
    padding: 8px;
    color: #333;
}

input {
    outline: transparent;
}

#viewToggle > button:nth-child(1) {
    padding-right: 4px;
}
#viewToggle > button:nth-child(2) {
    padding-left: 4px;
}

div#viewToggle {
    background: #efefef;
}
.font-size-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 32px;
}

.size-lable {
    font-size: 10px;
    margin: 0;
    color: #888;
}

span.font-size-value {
    text-align: right;
    min-width: 33px;
    font-size: 12px;
    margin-right: 11px;
}

.font-title {
    font-weight: bold;
}

/*********** Baseline, reset styles ***********/
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #00000000;
    cursor: pointer;
    width: 100px;
}

/* Removes default focus */
input[type="range"]:focus {
    outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
    background-color: #e3e3e3;
    border-radius: 2.5rem;
    height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Override default look */
    appearance: none;
    margin-top: 0px;
    /* Centers thumb on the track */
    background-color: #0a0a0a;
    border-radius: 2.5rem;
    height: 0.5rem;
    width: 1rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
    outline: 3px solid #0a0a0a;
    outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
    background-color: #e3e3e3;
    border-radius: 2.5rem;
    height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
    background-color: #0a0a0a;
    border: none;
    /*Removes extra border that FF applies*/
    border-radius: 2.5rem;
    height: 0.5rem;
    width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb {
    outline: 3px solid #0a0a0a;
    outline-offset: 0.125rem;
}

/* Laptop */
@media (max-width: 1280px) {
    .typelove-flex {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .typelove-flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone */ @media (max-width: 600px) {
    .typelove-flex {
        grid-template-columns: 1fr;
    }

    .typelove-input {
        display: flex;
        flex-direction: column-reverse;
        border-radius: 22px;
    }

    .view-toggle {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        border-radius: 14px;
    }

    div#viewToggle {
        width: 100%;
        border-radius: 10px;
    }

    .font-size-wrap {
        padding: 0 10px;
        width: 100%;
    }

    input.font-size {
        width: 100%;
    }

    input#typelove-live-text {
        width: 94%;
        padding: 8px 18px;
    }

    select#typelove-sort {
        border-radius: 6px;
    }

    .typelove-categories {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        overflow: auto;
        scrollbar-width: none;
    }

    button.typelove-category {
        min-width: max-content;
    }

    .font-category {
        font-size: 10px;
    }

    span.font-size-value {
        margin: 0;
        min-width: 33px;
    }

    .view-btn {
        padding: 8px 8px;
    }
}