/* Main container */
.wp-fontview {
    width: 100%;
    margin: 20px 0;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    font-family: inherit;
}

/* Controls layout */
.wp-fontview-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 16.5rem) 3.125rem;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 15px;
}

/* Text input */
.wp-fontview-controls input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    padding: 0 12px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    outline: none;
    box-shadow: none;
}

/* Font size controls */
.wp-fontview-size-control {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    height: 2.75rem;
}

.wp-fontview-size-control input[type="number"] {
    width: 3.75rem;
    min-width: 3.75rem;
    height: 2.75rem;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    outline: none;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.wp-fontview-size-control input[type="number"]::-webkit-inner-spin-button,
.wp-fontview-size-control input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.wp-fontview-size-control input[type="range"] {
    display: block;
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    margin: 0;
    accent-color: #000000;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

/* Color picker */
.wp-fontview-controls input[type="color"] {
    width: 3.125rem;
    height: 2.75rem;
    padding: 4px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

/* Preview box */
.wp-fontview-preview {
    width: 100%;
    min-height: 90px;
    padding: 24px 20px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 5px;
    background: #ffffff;
    color: #000000;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
    box-shadow: none;
}

/* Remove focus outlines */
.wp-fontview input:focus,
.wp-fontview input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Mobile layout */
@media (max-width: 600px) {
    .wp-fontview-controls {
        grid-template-columns: minmax(0, 1fr) 2.75rem;
        gap: 8px;
    }

    .wp-fontview-controls input[type="text"] {
        height: 2.75rem;
        padding: 0 10px;
        font-size: 16px;
    }

    .wp-fontview-size-control {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 2.75rem;
        gap: 10px;
    }

    .wp-fontview-size-control input[type="number"] {
        width: 3.75rem;
        min-width: 3.75rem;
        height: 2.75rem;
        font-size: 16px;
    }

    .wp-fontview-controls input[type="color"] {
        width: 2.75rem;
        height: 2.75rem;
        grid-column: 2;
        grid-row: 1;
    }

    .wp-fontview-preview {
        min-height: 90px;
        padding: 18px 12px;
        font-size: 28px;
    }
}