/* Styles extracted from the original Words With Letters shortcode. */
/* =========================================================
   WORDS WITH LETTERS — WORD UNSCRAMBLER DESIGN SYSTEM
   ========================================================= */

.wwl-wrap,
.wwl-wrap * {
    box-sizing: border-box;
}

.wwl-wrap {
    --wwl-green: #057a1b;
    --wwl-green-dark: #046516;
    --wwl-green-light: #0a9b2d;
    --wwl-ink: #16344a;
    --wwl-muted: #65798a;
    --wwl-line: #dce7e0;
    --wwl-soft: #f0f8f2;
    --wwl-pale: #f7fbf8;
    --wwl-gold: #ffc107;

    width: 100%;
    max-width: 780px;
    margin: 28px auto 40px;
    color: var(--wwl-ink);
    font-family: inherit;
}

/* MAIN TOOL PANEL */
.wwl-form {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #cfe1d4 !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #f4fbf5, #ffffff) !important;
    box-shadow: 0 8px 24px rgba(24, 62, 37, .05) !important;
}

.wwl-form::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -80px;
    top: -85px;
    border-radius: 50%;
    background: rgba(10, 155, 45, .06);
    pointer-events: none;
}

.wwl-form > * {
    position: relative;
    z-index: 1;
}

/* TABS */
.wwl-tabs {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--wwl-line);
    overflow-x: auto;
}

.wwl-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--wwl-muted) !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
    transition: .18s ease;
}

.wwl-tab:hover,
.wwl-tab:focus {
    background: var(--wwl-soft) !important;
    color: var(--wwl-green) !important;
    outline: none !important;
    box-shadow: none !important;
}

.wwl-tab.is-active {
    border-bottom-color: var(--wwl-green) !important;
    color: var(--wwl-green) !important;
}

/* TAB PANELS */
.wwl-panel {
    display: none;
}

.wwl-panel.is-active {
    display: block;
}

.wwl-field {
    margin-bottom: 17px;
}

.wwl-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--wwl-ink);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.wwl-help {
    margin: 0 0 12px;
    color: var(--wwl-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* LETTER BOXES */
.wwl-letter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wwl-letter-row input.wwl-letter-box {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 1px solid #cfe1d4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--wwl-ink) !important;
    font-family: inherit;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    outline: none !important;
    box-shadow: 0 2px 7px rgba(20, 50, 30, .025) !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.wwl-letter-row input.wwl-letter-box:focus {
    border-color: var(--wwl-green) !important;
    box-shadow: 0 0 0 3px rgba(5, 122, 27, .10) !important;
}

/* WORD LENGTH */
.wwl-length-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.wwl-any-length-input {
    display: block;
    width: 100% !important;
    max-width: 420px !important;
    min-height: 48px !important;
    margin: 0 auto !important;
    padding: 11px 14px !important;
    border: 1px solid #cfe1d4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--wwl-ink) !important;
    font-family: inherit;
    font-size: 16px !important;
    text-align: center;
    text-transform: uppercase;
    box-sizing: border-box;
}

.wwl-any-length-input:focus {
    border-color: var(--wwl-green) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(5, 122, 27, .10) !important;
}

.wwl-length-control select {
    width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid #cfe1d4 !important;
    background: #fff !important;
    color: var(--ws-ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: none !important;
    border-radius: 9px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M0 0L6 8L12 0Z%22 fill=%22%23057a1b%22/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    padding-right: 36px !important;
    cursor: pointer;
}

.wwl-advanced select,
.wwl-advanced input {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
    border: 1px solid #cfe1d4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--wwl-ink) !important;
    font-family: inherit;
    font-size: 15px;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
	box-shadow: none !important;

}

.wwl-length-control select {
    width: auto !important;
    min-width: 110px !important;
    max-width: 150px !important;
    min-height: 38px;
    padding: 7px 12px !important;
    font-size: 14px;
}

.wwl-length-control select:focus,
.wwl-advanced select:focus,
.wwl-advanced input:focus {
    border-color: var(--wwl-green) !important;
    box-shadow: 0 0 0 3px rgba(5, 122, 27, .10) !important;
}

/* ANY / EXACT SWITCH */
.wwl-search-type {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 17px;
    padding: 11px 13px;
    border: 1px solid var(--wwl-line);
    border-radius: 10px;
    background: var(--wwl-pale);
}

.wwl-search-type label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--wwl-ink);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    cursor: pointer;
}

.wwl-search-type input {
    width: auto !important;
    min-height: 0 !important;
    margin: 0;
    accent-color: var(--wwl-green);
}

/* ACTIONS */
.wwl-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.wwl-button,
.wwl-advanced-toggle {
    width: 100%;
    min-height: 45px;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition: .18s ease;
}

.wwl-button {
    border: 1px solid var(--wwl-green) !important;
    background: var(--wwl-green) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(5, 122, 27, .16);
}

.wwl-button:hover,
.wwl-button:focus,
.wwl-button:active {
    background: var(--wwl-green-dark) !important;
    border-color: var(--wwl-green-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    outline: none;
}

.wwl-advanced-toggle {
    border: 1px solid #cfe1d4 !important;
    background: #fff !important;
    color: var(--wwl-green) !important;
    box-shadow: none !important;
}

.wwl-advanced-toggle:hover,
.wwl-advanced-toggle:focus,
.wwl-advanced-toggle:active {
    background: var(--wwl-soft) !important;
    border-color: #b8d8c0 !important;
    color: var(--wwl-green-dark) !important;
    outline: none;
}

/* ADVANCED OPTIONS */
.wwl-advanced {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.wwl-advanced.is-open {
    display: grid;
    padding-top: 14px;
    border-top: 1px solid var(--wwl-line);
}

/* RESULTS */
.wwl-results {
    margin-top: 25px;
}

.wwl-results-title {
    position: relative;
    margin: 0 0 12px !important;
    padding: 0 0 0 15px !important;
    color: #303639 !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.wwl-results-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 5px;
    height: calc(100% - 8px);
    border-radius: 99px;
    background: #057a1b !important;
}

.wwl-count {
    margin: 0 0 14px;
    color: #303639 !important;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

/* RESULT GROUPS */
.wwl-group {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--wwl-line) !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(20, 50, 30, .035);
}

.wwl-group h2.wwl-group-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 !important;
    padding: 13px 16px 13px 18px !important;
    background: var(--wwl-pale) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wwl-line) !important;
    color: var(--wwl-ink) !important;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
}


.wwl-group-title span:last-child {
    color: var(--wwl-muted) !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.wwl-word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 16px;
    list-style: none;
}

.wwl-word-list li {
    width: auto;
    margin: 0;
}

.wwl-word {
    display: block;
    width: auto;
    padding: 8px 12px !important;
    border: 1px solid #cfe1d4 !important;
    border-radius: 9px !important;
    background: var(--wwl-pale) !important;
    color: #034c11 !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgba(5, 122, 27, .04);
    transition: .16s ease;
}

.wwl-word:hover,
.wwl-word:focus,
.wwl-word:active {
    background: #eaf7ed !important;
    border-color: #b8d8c0 !important;
    color: var(--wwl-green-dark) !important;
    transform: translateY(-1px);
    outline: none;
}

.wwl-word sub {
    color: #7c8e9a;
    font-size: 10px;
    font-weight: 800;
    margin-left: 3px;
    vertical-align: baseline;
}

/* EMPTY RESULTS */
.wwl-empty {
    padding: 20px;
    border: 1px solid var(--wwl-line);
    border-radius: 12px;
    background: var(--wwl-pale);
    color: var(--wwl-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* POPUP */
.wwl-popup {
    position: fixed !important;
    inset: 0;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 30, 16, .72) !important;
    color: #333 !important;
    isolation: isolate !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wwl-popup-box {
    position: relative !important;
    z-index: 2147483647 !important;
    width: 100% !important;
    max-width: 360px;
    padding: 22px;
    border: 1px solid #dce7e0;
    border-radius: 16px;
    background: #fff !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .22) !important;
}

.wwl-popup-word {
    margin: 0 0 18px !important;
    color: #16344a !important;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
}

.wwl-popup-button {
   display: block !important;
            width: 100%;
            margin-top: 9px;
            min-height: 43px;
            padding: 11px 14px;
            border: 1px solid var(--ws-green);
            border-radius: 10px;
            background: #057a1b !important;
            color: #fff !important;
            opacity: 1 !important;
            visibility: visible !important;
            font-family: inherit;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            text-align: center;
            text-decoration: none !important;
            cursor: pointer;
            box-sizing: border-box;
            transition: .18s ease;
        }

.wwl-popup-button:hover,
.wwl-popup-button:focus {
    background: #057a1b !important;
    border-color: #057a1b !important;
    color: #fff !important;
    outline: none;
}


.wwl-popup-close,
.wwl-popup-close:hover {
   background: #fff !important;
    border-color: #cfe1d4 !important;
    color: #057a1b !important;
}

/* MOBILE */
@media (max-width: 600px) {
    .wwl-wrap {
        margin: 22px auto 32px;
        padding: 0px;
    }

    .wwl-form {
        padding: 18px;
        border-radius: 15px !important;
    }

    .wwl-action-row {
        grid-template-columns: 1fr;
    }

    .wwl-advanced {
        grid-template-columns: 1fr;
    }

    .wwl-results-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .wwl-group h2.wwl-group-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 13px 14px 13px 17px !important;
    }

    .wwl-word-list {
        gap: 7px;
        padding: 14px;
    }

    .wwl-word {
        padding: 8px 10px !important;
        font-size: 13px;
    }

    .wwl-letter-row input.wwl-letter-box {
        width: 43px !important;
        min-width: 43px !important;
        max-width: 43px !important;
        height: 43px !important;
        min-height: 43px !important;
    }

    .wwl-popup {
        padding: 15px;
    }

    .wwl-popup-box {
        padding: 18px;
    }
}
