img:not([src]) {
    visibility: hidden;
}

/* Fixes Firefox anomaly during image load */
@-moz-document url-prefix() {
    img:-moz-loading {
        visibility: hidden;
    }
}

.navbar-default .navbar-brand {
    color: #ecf0f1;
}

.auth-clients {
    padding: 0;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

.auth-client {
    margin-right: 5px;
}

.list-group-item {
    padding: 4px 15px;
}

a.active_bar {
    color: #000 !important;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#wc_navbar a {
    margin-top: 8px;
    padding-top: 10px;
    position: relative;
    top: 1px;
    padding-bottom: 12px;
}

@media only screen and (min-width: 768px) and (max-width: 993px) {
    a.navbar-brand {
        padding-left: 0 !important;
    }
}

label {
    font-weight: normal
}

.task-list {
    padding-left: 0;
}

#details_buttons>.col-md-6:last-child {
    padding-left: 0;
}

@media screen and (max-width: 991px) {
    #details_buttons>.col-md-6:last-child {
        padding-left: 15px;
    }

    #wc_navshare {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .form-control {
        font-size: 16px;
    }
}

@media (min-width : 620px) {
    .swfloat {
        float: right;
    }
}

/* Custom styles for gly cta */
#gly-cta-1:not(:empty) {
    display: inline-flex !important;
    align-items: center;
    background-color: #FFF4CC;
    color: #424d62;
    padding: 8px 12px;
    border: 1px solid #e0dcdd;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in-out;
}

#gly-cta-1 a {
    background-color: #1a8a7d;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 13px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out;
    margin-left: 10px;
    vertical-align: middle;
}

#gly-cta-1 a:hover {
    background-color: #1f4b43;
}

#gly-cta-2:not(:empty) {
    display: inline-block;
    padding: 5px 0;
    font-size: 14px;
    color: #555;
    animation: fadeIn 0.3s ease-in-out;
}

#gly-cta-2 a {
    color: #079180;
    font-weight: bold;
    text-decoration: underline;
    font-size: inherit;
    margin-left: 5px;
}

#gly-cta-2 a:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    #gly-cta-2:not(:empty) {
        font-size: 13px !important;
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    vertical-align: middle;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Override Bootstrap 3 lg container+columns */
@media (min-width: 1200px) {
    .container {
        width: 1200px;
    }

    .col-md-3 {
        width: 304px;
    }

    .col-md-9 {
        width: 896px;
    }
}

/* Ajust Our Tools Layout */
@media (min-width: 1200px) {
    .our_tools .col-md-3 {
        width: 25%;
    }
}

/* --- Howto Modal --- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
}

/* Root Container */
.gly-explainer-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Header */
.gly-explainer-card .gly-header {
    background-color: #3074b6;
    color: white;
    padding: 40px 30px 25px 30px;
    text-align: center;
}

.gly-explainer-card .gly-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: white;
}

/* Close Button */
#glyup .gly-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.7;
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: none;
}

#glyup .gly-close-btn:hover {
    opacity: 1;
}

.gly-mockup-container {
    padding: 30px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.gly-editor {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    padding-bottom: 40px;
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    position: relative;
    background: #fff;
}

.gly-error-word {
    border-bottom: 2px solid #d93025;
    cursor: pointer;
    background-color: rgba(217, 48, 37, 0.05);
}

/* Popup Card */
.gly-popup-card {
    position: absolute;
    top: 45px;
    left: 80px;
    background: white;
    width: 320px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    text-align: left;
}

.gly-popup-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.gly-popup-suggestion {
    font-size: 16px;
    color: #1f1f1f;
    font-weight: 700;
    margin-bottom: 20px;
}

.gly-green-text {
    color: #027e6f;
}

.gly-popup-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gly-footer-brand {
    color: #d93025;
}

.gly-footer-ignore {
    color: #999;
    cursor: pointer;
}

/* Bottom Grid */
.gly-steps-grid {
    display: flex;
    flex-wrap: wrap;
}

.gly-col-steps {
    flex: 1;
    min-width: 300px;
    background-color: #3074b6;
    padding: 30px;
    color: white;
}

.gly-step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    text-align: left;
}

.gly-step-num {
    font-weight: 800;
    opacity: 0.8;
}

.gly-col-benefits {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gly-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.gly-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.gly-check-icon {
    width: 20px;
    height: 20px;
    fill: #027e6f;
    flex-shrink: 0;
}

.gly-green-btn {
    background-color: #027e6f;
    color: white !important;
    border: none;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
    display: block;
    text-decoration: none;
}

.gly-green-btn:hover {
    background-color: #1f4b43;
    text-decoration: none;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 600px) {
    .gly-explainer-card .gly-header h2 {
        font-size: 20px;
    }

    .gly-editor {
        font-size: 15px;
    }

    .gly-popup-card {
        left: 10px;
        right: 10px;
        width: auto;
        top: 60px;
    }

    .gly-col-steps {
        padding-bottom: 10px;
    }
}

/* =========================================================
   WordCounter Check Modals
   ========================================================= */
#wc-tc-overlay {
    position: absolute;
    inset: 0;
    background: rgb(245 245 245 / 46%);
    z-index: 1049;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    box-sizing: border-box;
    border-radius: 0;
}

#wc-tc-overlay.active {
    display: flex;
}

#wc-tc-overlay .wc-confirm-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    max-width: 420px;
    width: 92vw;
    border: 1px solid #eaeaea;
}

#wc-tc-overlay .wc-confirm-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #111;
    font-weight: 700;
}

#wc-tc-overlay .wc-confirm-card p {
    margin: 0 0 18px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

#wc-confirm-btns.wc-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-btn-action {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.08s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.wc-btn-action:active {
    transform: translateY(1px);
}

.wc-btn-primary {
    background: #027e6f;
    color: #fff;
}

.wc-btn-primary:hover {
    background: #1f4b43;
}

.wc-btn-secondary {
    background: #f1f3f5;
    color: #444;
}

.wc-btn-secondary:hover {
    background: #e9ecef;
}

.wc-upsell-list {
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-align: left;
    padding-left: 0;
    list-style: none;
}

.wc-upsell-list li {
    margin-bottom: 6px;
    list-style: none;
    position: relative;
}

.wc-upsell-list li::before {
    content: '✓';
    color: #027e6f;
    font-weight: 700;
    position: absolute;
    left: -18px;
}

/* =========================================================================
   Auto-Save Revisions Dropdown (delete "×" + empty-state UX)
   ========================================================================= */

/* If there are no revisions, hide the dropdown menu completely */
#revisions_ul:empty,
#revisions_ul.wc-revisions-empty {
    display: none;
}

/* Each revision row is the positioning anchor for its delete button */
#revisions_ul>li.wc-revision-row {
    position: relative;
}

/* Reserve space on the right so timestamps never overlap the "×" */
#revisions_ul>li.wc-revision-row>a.revision_link,
#revisions_ul>li.wc-revision-row>a.wc-revision-load {
    display: block;
    padding-right: 48px;
}

/* The delete "×" button */
#revisions_ul>li.wc-revision-row>a.wc-revision-del {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(calc(-50% - 1px));

    width: 24px;
    height: 24px;

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

    padding: 0;
    margin: 0;

    font-size: 18px;
    line-height: 1;
    text-decoration: none;

    opacity: 0.7;
    cursor: pointer;
    user-select: none;

    /* avoid Bootstrap hover background looking like a "selected row" */
    background: transparent;
}

#revisions_ul>li.wc-revision-row>a.wc-revision-del:hover,
#revisions_ul>li.wc-revision-row>a.wc-revision-del:focus {
    opacity: 1;
    text-decoration: none;
    outline: none;
    background: transparent;
}