.lfp-shell {
    display: flex;
    width: 100%;
}

.lfp-widget {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 28px;
    gap: 20px;
    background: #eeeeee;
    border: 0 solid transparent;
    color: #111111;
    overflow: hidden;
}

.lfp-widget *,
.lfp-widget *::before,
.lfp-widget *::after {
    box-sizing: border-box;
}

.lfp-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.lfp-font-pill {
    align-items: center;
    background: #ff3b16;
    border-radius: 999px;
    color: #000000;
    display: inline-flex;
    font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 36px;
    max-width: 220px;
    overflow: hidden;
    padding: 0 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfp-range-control {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    display: inline-grid;
    grid-template-columns: auto 78px 42px;
    gap: 7px;
    min-height: 34px;
    min-width: 196px;
    padding: 0 10px 0 20px;
}

.lfp-align-control {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    display: inline-grid;
    gap: 6px;
    grid-template-columns: auto repeat(3, auto);
    min-height: 34px;
    padding: 0 10px 0 18px;
}

.lfp-range-control span,
.lfp-range-control strong,
.lfp-align-control > span {
    color: #000000;
    font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lfp-range-value {
    background: #ffffff;
    display: inline-flex;
    justify-content: center;
    min-width: 34px;
    padding: 2px 4px;
    text-align: right;
}

.lfp-range-control input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    min-width: 0;
    width: 100%;
}

.lfp-range-control input::-webkit-slider-runnable-track {
    background: #000000;
    border: 0;
    height: 1px;
}

.lfp-range-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    margin-top: -4.5px;
    width: 10px;
}

.lfp-range-control input::-moz-range-track {
    background: #000000;
    border: 0;
    height: 1px;
}

.lfp-range-control input::-moz-range-thumb {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    width: 10px;
}

.lfp-align-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #000000;
    cursor: pointer;
    gap: 5px;
    display: inline-flex;
    font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 26px;
    justify-content: center;
    padding: 0 8px;
    white-space: nowrap;
}

.lfp-align-button.is-active {
    background: #000000;
    color: #ffffff;
}

.lfp-align-icon {
    background:
        linear-gradient(currentColor 0 0) 0 0 / 12px 1px no-repeat,
        linear-gradient(currentColor 0 0) 0 5px / 9px 1px no-repeat,
        linear-gradient(currentColor 0 0) 0 10px / 12px 1px no-repeat;
    display: block;
    height: 11px;
    width: 12px;
}

.lfp-align-icon-center {
    background:
        linear-gradient(currentColor 0 0) 50% 0 / 12px 1px no-repeat,
        linear-gradient(currentColor 0 0) 50% 5px / 9px 1px no-repeat,
        linear-gradient(currentColor 0 0) 50% 10px / 12px 1px no-repeat;
}

.lfp-align-icon-right {
    background:
        linear-gradient(currentColor 0 0) 100% 0 / 12px 1px no-repeat,
        linear-gradient(currentColor 0 0) 100% 5px / 9px 1px no-repeat,
        linear-gradient(currentColor 0 0) 100% 10px / 12px 1px no-repeat;
}

.lfp-align-text {
    color: inherit;
    font: inherit;
}

.lfp-header {
    display: grid;
    gap: 8px;
}

.lfp-title-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lfp-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.lfp-style-summary {
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.lfp-input {
    display: block;
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    padding: 14px 16px;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lfp-input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.lfp-preview {
    border: 0 !important;
    box-shadow: none !important;
    width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.05;
    outline: 0 !important;
    white-space: pre-wrap;
}

.lfp-preview[contenteditable="true"] {
    cursor: text;
}

.lfp-preview[contenteditable="true"]:focus,
.lfp-preview[contenteditable="true"]:focus-visible,
.lfp-preview[contenteditable="true"]:active,
.lfp-preview.elementor-inline-editing,
.elementor-widget-lifetime_font_preview .elementor-inline-editing {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.lfp-style-list-widget {
    background: #ffffff;
    gap: 26px;
    padding: 0;
}

.lfp-style-list-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    width: 100%;
}

.lfp-style-list-title,
.lfp-style-list-total {
    color: #000000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.lfp-style-list-total {
    flex: 0 0 auto;
    text-align: right;
}

.lfp-style-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(240px, 39%) 1fr;
    width: 100%;
}

.lfp-style-specimen {
    align-items: center;
    background: #000000;
    border-radius: 18px;
    color: #ffffff;
    display: flex;
    font-size: 50px;
    justify-content: center;
    line-height: 0.92;
    min-height: 342px;
    overflow-wrap: anywhere;
    padding: 48px;
    text-align: center;
    white-space: pre-line;
    width: 100%;
}

.lfp-style-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.lfp-style-card {
    align-items: center;
    background: #eeeeee;
    border-radius: 18px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 102px;
    min-width: 0;
    overflow: hidden;
    padding: 26px 24px;
}

.lfp-style-card-name {
    color: #000000;
    display: block;
    font-size: 24px;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.lfp-style-card-count {
    color: #ff2a12;
    flex: 0 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 767px) {
    .lfp-widget {
        padding: 20px;
    }

    .lfp-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .lfp-font-pill,
    .lfp-range-control,
    .lfp-align-control {
        max-width: none;
        width: 100%;
    }

    .lfp-preview {
        font-size: 52px;
    }

    .lfp-style-list-widget {
        padding: 0;
    }

    .lfp-style-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lfp-style-layout {
        grid-template-columns: 1fr;
    }

    .lfp-style-specimen {
        font-size: 42px;
        min-height: 240px;
        padding: 32px 24px;
    }

    .lfp-style-grid {
        grid-template-columns: 1fr;
    }

    .lfp-style-card {
        min-height: 82px;
        padding: 22px 20px;
    }
}
