/* Filename: instaTest.css */


/* =========================================================
   PAGE
========================================================= */

.instagram-counter-page {
    box-sizing: border-box;
    width: 100%;
    padding: 106px 16px 64px;
}


/* =========================================================
   PAGE GRID
========================================================= */

.instagram-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    width: min(100%, 1200px);
    margin: 0 auto;
    align-items: start;
}


.instagram-main-column {
    min-width: 0;
}


.instagram-sidebar {
    width: 300px;
    min-width: 300px;
}


.sidebar-ad {
    width: 300px;
    min-height: 600px;
}


/* =========================================================
   MAIN CONTENT WIDTH
========================================================= */

.instagram-tool,
.instagram-content {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}


.instagram-tool {
    color: #17212b;
}


/* =========================================================
   TOOL HEADING
========================================================= */

.tool-heading {
    margin-bottom: 18px;
    text-align: center;
}


.tool-heading h1 {
    margin: 0;
    color: #031f30;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}


/* =========================================================
   PRIMARY METRIC
========================================================= */

.primary-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}


.primary-metric {
    box-sizing: border-box;
    min-width: 0;
    padding: 15px 20px 14px;

    background: #ffffff;

    border: 1px solid #d7e4ec;
    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(3, 31, 48, 0.07);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}


.primary-metric-single {
    width: 100%;
}


.primary-metric-centered {
    text-align: center;
}


.primary-metric-centered .metric-heading-row {
    justify-content: center;
}


.primary-metric-centered .metric-count,
.primary-metric-centered .metric-remaining {
    text-align: center;
}


/* =========================================================
   PRIMARY METRIC HEADING
========================================================= */

.metric-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 5px;
}


.metric-label {
    color: #17384d;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.025em;
    text-transform: uppercase;
}


/* =========================================================
   PRIMARY METRIC COUNT
========================================================= */

.metric-count {
    color: #071b28;

    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.05;

    font-variant-numeric: tabular-nums;
}


.metric-total {
    color: #75838d;

    font-size: 17px;
    font-weight: 500;
}


/* =========================================================
   REMAINING COUNT
========================================================= */

.metric-remaining {
    min-height: 20px;

    margin-top: 5px;

    color: #667681;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.metric-progress {
    height: 5px;

    margin-top: 9px;

    overflow: hidden;

    background: #e9eff3;

    border-radius: 999px;
}


.metric-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: #405de6;

    border-radius: inherit;

    transition:
        width 120ms ease,
        background-color 160ms ease;
}


/* =========================================================
   CAPTION WARNING STATE
========================================================= */

.primary-metric.is-warning:not(.is-over) {
    border-color: #e2c174;
}


.primary-metric.is-warning:not(.is-over) .metric-progress span {
    background: #e9a11b;
}


.primary-metric.is-warning:not(.is-over) .metric-remaining {
    color: #a96b00;
}


/* =========================================================
   CAPTION OVER LIMIT
========================================================= */

.primary-metric.is-over {
    background: #fffafa;
    border-color: #d13b3b;
}


.primary-metric.is-over .metric-count,
.primary-metric.is-over .metric-remaining {
    color: #bd2525;
}


.primary-metric.is-over .metric-progress span {
    background: #c93232;
}


/* =========================================================
   EDITOR + SIDE METRICS
========================================================= */

.instagram-editor-layout {
    display: grid;

    grid-template-columns:
        200px
        minmax(0, 1fr);

    grid-template-areas:
        "metrics editor";

    gap: 10px;

    align-items: start;
}


/* =========================================================
   EDITOR COLUMN
========================================================= */

.editor-column {
    position: relative;

    z-index: 4;

    grid-area: editor;

    min-width: 0;
    width: 100%;
}


/* =========================================================
   METRICS COLUMN
========================================================= */

.metrics-column {
    position: relative;

    z-index: 500;

    grid-area: metrics;

    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows:
        repeat(
            7,
            58px
        );

    gap: 6px;

    min-width: 0;
    width: 100%;
}


/* =========================================================
   EDITOR CARD
========================================================= */

.editor-card {
    position: relative;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    width: 100%;

    overflow: visible;

    background: #ffffff;

    border: 1px solid #cbd8e1;
    border-radius: 14px;

    box-shadow: 0 7px 24px rgba(3, 31, 48, 0.08);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.editor-card:focus-within {
    border-color: #405de6;

    box-shadow:
        0 0 0 3px rgba(64, 93, 230, 0.11),
        0 7px 24px rgba(3, 31, 48, 0.08);
}


/* =========================================================
   TEXTAREA
========================================================= */

#userWord {
    display: block;

    box-sizing: border-box;

    width: 100%;

    height: 380px;
    min-height: 110px;
    max-height: 800px;

    margin: 0;

    padding: 16px 18px;

    resize: vertical;

    overflow: auto;

    border: 0;

    border-radius:
        13px
        13px
        0
        0;

    outline: 0;

    background: #ffffff;

    color: #15222c;

    font-family: Arial, sans-serif;

    font-size: 17px;

    line-height: 1.55;
}


#userWord::placeholder {
    color: #8b98a2;
    opacity: 1;
}


/* =========================================================
   EDITOR FOOTER
========================================================= */

.editor-footer {
    display: flex;

    flex: 0 0 auto;

    box-sizing: border-box;

    width: 100%;

    padding: 10px 12px;

    border-top: 1px solid #e5ebef;

    border-radius:
        0
        0
        13px
        13px;

    background: #fbfcfd;
}


.editor-footer-content {
    display: flex;

    width: 100%;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.tool-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    width: 100%;
}


/* =========================================================
   BUTTONS
========================================================= */

.tool-button {
    min-height: 38px;

    padding: 8px 14px;

    border: 1px solid transparent;

    border-radius: 9px;

    font: inherit;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        transform 140ms ease,
        opacity 140ms ease;
}


.tool-button:hover:not(:disabled) {
    transform: translateY(-1px);
}


.tool-button:focus-visible {
    outline: 3px solid rgba(64, 93, 230, 0.22);

    outline-offset: 2px;
}


.tool-button:disabled {
    opacity: 0.46;

    cursor: default;

    transform: none;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.tool-button-primary {
    color: #ffffff;

    background: #405de6;

    border-color: #405de6;
}


.tool-button-primary:hover:not(:disabled) {
    background: #334cc4;

    border-color: #334cc4;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.tool-button-secondary {
    color: #36505f;

    background: #ffffff;

    border-color: #cbd8e1;
}


.tool-button-secondary:hover:not(:disabled) {
    background: #f1f6f9;

    border-color: #aebfca;
}


/* =========================================================
   COPY BUTTON
========================================================= */

#copyButton {
    min-width: 72px;
}


/* =========================================================
   GENERIC INFO WRAPPER
========================================================= */

.metric-info-wrapper {
    position: relative;

    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   GENERIC INFO BUTTON
========================================================= */

.metric-info {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    width: 18px;
    height: 18px;

    padding: 0;
    margin: 0;

    border: 1px solid #afc2cd;

    border-radius: 50%;

    background: #ffffff;

    color: #536f7e;

    font-family: Arial, sans-serif;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        color 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease;
}


.metric-info:hover {
    color: #405de6;

    border-color: #8497e7;

    background: #f7f9ff;
}


.metric-info:focus-visible {
    outline: 2px solid rgba(64, 93, 230, 0.28);

    outline-offset: 2px;
}


/* =========================================================
   ADD LINE BREAKS BUTTON + INFO ICON
========================================================= */

.line-break-action {
    position: relative;

    display: inline-block;

    flex: 0 0 auto;
}


#lineBreakButton {
    position: relative;

    min-height: 38px;

    padding-left: 14px;
    padding-right: 39px;
}


/* =========================================================
   LINE BREAK INFO ICON
========================================================= */

.line-break-action .line-break-info-wrapper {
    position: absolute;

    z-index: 320;

    top: 50%;
    right: 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);
}


.line-break-action .line-break-info-wrapper .metric-info {
    width: 17px;
    height: 17px;

    padding: 0;
    margin: 0;

    border: 1px solid #aebdca;

    border-radius: 50%;

    background: transparent;

    color: #536f7e;

    font-family: Arial, sans-serif;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
}


.line-break-action .line-break-info-wrapper .metric-info:hover {
    border-color: #405de6;

    background: rgba(64, 93, 230, 0.06);

    color: #405de6;
}


#lineBreakButton:disabled + .line-break-info-wrapper .metric-info {
    opacity: 0.72;
}


/* =========================================================
   SECONDARY METRIC CARDS
========================================================= */

.secondary-metric {
    position: relative;

    display: flex;

    box-sizing: border-box;

    min-width: 0;
    height: 58px;

    flex-direction: column;
    justify-content: center;

    gap: 3px;

    padding: 7px 11px;

    overflow: visible;

    background: #f7f9ff;

    border: 1px solid #d9e0f1;

    border-radius: 10px;

    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        color 140ms ease;
}


/* =========================================================
   SECONDARY OVER LIMIT
========================================================= */

.secondary-metric.is-over {
    background: #fff5f5;

    border-color: #e7aaaa;
}


.secondary-metric.is-over .secondary-label,
.secondary-metric.is-over .secondary-count {
    color: #bd2525;
}


/* =========================================================
   CAPTION BEFORE "MORE"

   Red once the count passes 125 so the UI is consistent
   with the other threshold/limit cards.
========================================================= */

.preview-metric.is-over {
    background: #fff5f5;

    border-color: #e7aaaa;
}


.preview-metric.is-over .secondary-label,
.preview-metric.is-over .secondary-count {
    color: #bd2525;
}


/* =========================================================
   HASHTAG LIMIT
========================================================= */

.hashtag-metric.is-over {
    background: #fff5f5;

    border-color: #e7aaaa;
}


.hashtag-metric.is-over .secondary-label,
.hashtag-metric.is-over .secondary-count {
    color: #bd2525;
}


/* =========================================================
   SECONDARY LABEL
========================================================= */

.secondary-label {
    min-width: 0;

    color: #527080;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.02em;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   SECONDARY COUNT
========================================================= */

.secondary-count {
    color: #183647;

    font-size: 13px;
    line-height: 1.2;

    font-variant-numeric: tabular-nums;

    white-space: nowrap;
}


.secondary-count strong {
    font-size: 17px;
}


/* =========================================================
   USERNAME INVALID STATE
========================================================= */

.username-metric.is-invalid,
.username-metric.has-error {
    background: #fff5f5;

    border-color: #df9292;
}


.username-metric.is-invalid .secondary-label,
.username-metric.has-error .secondary-label {
    color: #a52c2c;
}


.username-metric.is-invalid .secondary-count,
.username-metric.has-error .secondary-count {
    color: #bd2525;
}


/* =========================================================
   LABEL / INFO ROW
========================================================= */

.secondary-label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   COUNT / STATUS ROW
========================================================= */

.secondary-count-row {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   USERNAME STATUS
========================================================= */

.secondary-status {
    min-width: 0;

    overflow: hidden;

    color: #bd2525;

    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.15;

    text-align: right;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.secondary-status:empty {
    display: none;
}


/* =========================================================
   USERNAME ERROR INFO ICON
========================================================= */

.username-metric.is-invalid .metric-info,
.username-metric.has-error .metric-info {
    color: #9b4141;

    border-color: #d2a1a1;

    background: #ffffff;
}


.username-metric.is-invalid .metric-info:hover,
.username-metric.has-error .metric-info:hover {
    color: #8d2929;

    border-color: #bd7777;

    background: #fffafa;
}


/* =========================================================
   GENERIC TOOLTIP
========================================================= */

.metric-tooltip {
    position: absolute;

    z-index: 1000;

    left: 50%;

    bottom: calc(100% + 9px);

    box-sizing: border-box;

    width: 220px;

    padding: 10px 11px;

    transform:
        translateX(-50%)
        translateY(4px);

    border: 1px solid #c7d7e0;

    border-radius: 8px;

    background: #17313f;

    color: #ffffff;

    box-shadow:
        0 8px 24px
        rgba(3, 31, 48, 0.18);

    font-family: Arial, sans-serif;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.42;

    text-align: left;

    letter-spacing: normal;

    text-transform: none;

    white-space: normal;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 110ms ease,
        transform 110ms ease,
        visibility 110ms ease;
}


/* =========================================================
   TOOLTIP TITLE
========================================================= */

.metric-tooltip strong {
    display: block;

    margin-bottom: 3px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   TOOLTIP BODY
========================================================= */

.metric-tooltip span {
    display: block;

    color: #e2edf2;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.42;
}


/* =========================================================
   GENERIC TOOLTIP ARROW
========================================================= */

.metric-tooltip::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 100%;

    width: 0;
    height: 0;

    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #17313f;
}


/* =========================================================
   GENERIC TOOLTIP OPEN STATES
========================================================= */

.metric-info-wrapper:hover .metric-tooltip,
.metric-info-wrapper:focus-within .metric-tooltip,
.metric-info-wrapper.is-open .metric-tooltip {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   SIDE-METRIC TOOLTIPS
========================================================= */

.metrics-column .metric-tooltip {
    z-index: 1100;
}


/* =========================================================
   LINE BREAK TOOLTIP
========================================================= */

.line-break-action .line-break-info-wrapper #lineBreakTooltip {
    left: auto;

    right: -8px;

    bottom: calc(100% + 10px);

    width: 250px;

    transform: translateY(4px);
}


.line-break-action .line-break-info-wrapper #lineBreakTooltip::before {
    left: auto;

    right: 10px;

    transform: none;
}


.line-break-action .line-break-info-wrapper:hover #lineBreakTooltip,
.line-break-action .line-break-info-wrapper:focus-within #lineBreakTooltip,
.line-break-action .line-break-info-wrapper.is-open #lineBreakTooltip {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   TOOL DESCRIPTION
========================================================= */

.tool-description {
    margin-top: 30px;

    color: #4c5e69;

    font-size: 15px;
    line-height: 1.6;
}


.tool-description-primary {
    box-sizing: border-box;

    margin: 0;

    padding: 14px 17px;

    background: #f7f9ff;

    border: 1px solid #dce2f3;

    border-left: 3px solid #405de6;

    border-radius: 9px;

    color: #435864;

    line-height: 1.65;
}


.tool-description p {
    margin: 0;
}


/* =========================================================
   ARTICLE
========================================================= */

.instagram-content {
    margin-top: 44px;

    color: #263640;

    font-size: 18px;
    line-height: 1.68;
}


.instagram-content p {
    margin: 1em 0;
}


/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.instagram-content h2,
.instagram-content h3 {
    color: #102f42;

    line-height: 1.25;
}


.instagram-content h2 {
    margin: 1.9em 0 0.6em;

    font-size:
        clamp(
            23px,
            3vw,
            29px
        );
}


.instagram-content h3 {
    margin: 1.6em 0 0.5em;

    font-size:
        clamp(
            19px,
            2.4vw,
            23px
        );
}


/* =========================================================
   ARTICLE LISTS
========================================================= */

.instagram-content ul {
    margin: 0.9em 0 1.2em;

    padding-left: 1.5em;

    list-style: disc;
}


.instagram-content li {
    margin: 0.3em 0;
}


/* =========================================================
   ARTICLE LINKS
========================================================= */

.instagram-content a {
    color: #405de6;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;
}


.instagram-content a:hover {
    text-decoration-thickness: 2px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;

    margin: -1px !important;

    overflow: hidden !important;

    clip:
        rect(
            0,
            0,
            0,
            0
        ) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   SMALL DESKTOP / LAPTOP
========================================================= */

@media (max-width: 1100px) {

    .instagram-page-grid {
        display: block;

        width: 100%;

        max-width: 920px;
    }


    .instagram-sidebar {
        display: none;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {

    .instagram-counter-page {
        padding:
            94px
            12px
            48px;
    }


    .tool-heading {
        margin-bottom: 16px;
    }


    .tool-heading h1 {
        font-size: 34px;
    }


    .primary-metrics {
        gap: 9px;

        margin-bottom: 10px;
    }


    .primary-metric {
        padding:
            14px
            15px
            13px;

        border-radius: 12px;
    }


    .metric-heading-row {
        margin-bottom: 4px;
    }


    .metric-count {
        font-size: 36px;
    }


    .metric-total {
        font-size: 15px;
    }


    .instagram-editor-layout {
        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .editor-column {
        order: 1;

        width: 100%;
    }


    .metrics-column {
        order: 2;

        z-index: 500;

        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        grid-template-rows:
            repeat(
                3,
                67px
            );

        gap: 7px;

        width: 100%;
    }


    #userWord {
        height: 240px;

        min-height: 100px;
        max-height: 800px;

        padding:
            16px
            17px;

        font-size: 16px;
    }


    .editor-footer {
        padding:
            10px
            11px;
    }


    .secondary-metric {
        height: 67px;

        padding:
            9px
            11px;
    }


    .secondary-label {
        font-size: 11px;
    }


    .secondary-count {
        font-size: 13px;
    }


    .secondary-count strong {
        font-size: 17px;
    }


    .secondary-status {
        font-size: 10px;
    }


    .metric-tooltip {
        width: 215px;
    }


    .line-break-action .line-break-info-wrapper #lineBreakTooltip {
        width: 245px;
    }


    .tool-description {
        margin-top: 26px;

        font-size: 15px;
    }


    .tool-description-primary {
        padding:
            13px
            15px;
    }


    .instagram-content {
        margin-top: 38px;

        font-size: 17px;

        line-height: 1.62;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 550px) {

    .instagram-counter-page {
        padding:
            92px
            10px
            44px;
    }


    .tool-heading {
        margin-bottom: 15px;
    }


    .tool-heading h1 {
        font-size: 30px;
    }


    .primary-metric {
        padding:
            13px
            14px
            12px;
    }


    .metric-label {
        font-size: 13px;
    }


    .metric-count {
        margin-top: 3px;

        font-size: 34px;
    }


    .metric-total {
        font-size: 14px;
    }


    .metric-remaining {
        margin-top: 4px;
    }


    .editor-card {
        border-radius: 12px;
    }


    #userWord {
        height: 200px;

        min-height: 90px;

        padding: 15px;

        border-radius:
            11px
            11px
            0
            0;
    }


    .editor-footer {
        padding:
            9px
            10px;

        border-radius:
            0
            0
            11px
            11px;
    }


    .tool-actions {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.55fr)
            minmax(0, 1fr);

        gap: 7px;
    }


    .tool-button {
        width: 100%;

        min-width: 0;

        min-height: 40px;

        padding:
            9px
            8px;

        font-size: 13px;

        white-space: nowrap;
    }


    #copyButton {
        min-width: 0;
    }


    .line-break-action {
        width: 100%;
    }


    #lineBreakButton {
        width: 100%;

        min-height: 40px;

        padding-left: 8px;

        padding-right: 34px;

        font-size: 12.5px;
    }


    .line-break-action .line-break-info-wrapper {
        right: 8px;
    }


    .line-break-action .line-break-info-wrapper .metric-info {
        width: 16px;
        height: 16px;

        font-size: 9px;
    }


    .metrics-column {
        z-index: 500;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        grid-template-rows:
            repeat(
                4,
                64px
            );

        gap: 7px;
    }


    .secondary-metric {
        height: 64px;

        padding:
            8px
            10px;
    }


    .secondary-status {
        font-size: 9.5px;
    }


    .preview-metric .secondary-label {
        font-size: 10px;

        letter-spacing: 0.01em;
    }


    .metric-tooltip {
        left: auto;

        right: -8px;

        width: 205px;

        transform: translateY(4px);
    }


    .metric-tooltip::before {
        left: auto;

        right: 10px;

        transform: none;
    }


    .metric-info-wrapper:hover .metric-tooltip,
    .metric-info-wrapper:focus-within .metric-tooltip,
    .metric-info-wrapper.is-open .metric-tooltip {
        transform: translateY(0);
    }


    .line-break-action .line-break-info-wrapper #lineBreakTooltip {
        left: auto;

        right: -7px;

        width:
            min(
                245px,
                calc(100vw - 32px)
            );

        transform: translateY(4px);
    }


    .line-break-action .line-break-info-wrapper #lineBreakTooltip::before {
        left: auto;

        right: 9px;

        transform: none;
    }


    .line-break-action .line-break-info-wrapper:hover #lineBreakTooltip,
    .line-break-action .line-break-info-wrapper:focus-within #lineBreakTooltip,
    .line-break-action .line-break-info-wrapper.is-open #lineBreakTooltip {
        transform: translateY(0);
    }


    .tool-description {
        margin-top: 24px;

        font-size: 14px;

        line-height: 1.55;
    }


    .tool-description-primary {
        padding:
            12px
            13px;

        line-height: 1.6;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .instagram-counter-page {
        padding-left: 9px;

        padding-right: 9px;
    }


    .tool-heading h1 {
        font-size: 29px;
    }


    #userWord {
        height: 185px;

        min-height: 85px;

        padding: 14px;
    }


    .tool-button {
        font-size: 12.5px;
    }


    #lineBreakButton {
        font-size: 12px;
    }


    .secondary-count {
        font-size: 13px;
    }


    .secondary-count strong {
        font-size: 16px;
    }


    .preview-metric .secondary-label {
        font-size: 9.5px;
    }


    .metric-tooltip {
        width: 195px;
    }


    .line-break-action .line-break-info-wrapper #lineBreakTooltip {
        width:
            min(
                235px,
                calc(100vw - 28px)
            );
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .tool-heading h1 {
        font-size: 27px;
    }


    .tool-actions {
        grid-template-columns: 1fr;
    }


    .tool-button {
        min-height: 40px;

        font-size: 13px;
    }


    #lineBreakButton {
        font-size: 13px;
    }


    .metrics-column {
        z-index: 500;

        grid-template-columns: 1fr;

        grid-template-rows:
            repeat(
                7,
                62px
            );
    }


    .secondary-metric {
        height: 62px;
    }


    .preview-metric .secondary-label {
        font-size: 11px;
    }


    #userWord {
        min-height: 80px;
    }


    .secondary-status {
        font-size: 10px;
    }


    .metric-tooltip {
        width: 190px;
    }


    .line-break-action .line-break-info-wrapper #lineBreakTooltip {
        width:
            min(
                225px,
                calc(100vw - 24px)
            );
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .primary-metric,
    .metric-progress span,
    .editor-card,
    .tool-button,
    .secondary-metric,
    .metric-info,
    .metric-tooltip {
        transition: none;
    }


    .tool-button:hover:not(:disabled) {
        transform: none;
    }

}