/**
 * Accepta Typography Control CSS
 * Styles for the typography control with Google Fonts integration
 */

.accepta-typography-control-wrapper {
    margin-bottom: 20px;
}

.accepta-typography-fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accepta-typography-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accepta-typography-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.accepta-typography-select,
.accepta-typography-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.accepta-typography-select:focus,
.accepta-typography-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.3);
    outline: none;
}

/* Font family select with font styling */
.accepta-font-family-select {
    width: 100% !important;
}

.accepta-font-family-select option {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.accepta-font-family-select optgroup {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accepta-input-with-unit {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.accepta-input-with-unit .accepta-typography-input {
    flex: 1;
    padding-right: 35px;
}

.accepta-unit-label {
    position: absolute;
    right: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    pointer-events: none;
}


/* Font preview styles */
.accepta-font-preview {
    font-size: 14px;
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    color: #333;
}


/* Typography field groups */
.accepta-typography-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .accepta-typography-field-group {
        grid-template-columns: 1fr;
    }
}

/* Responsive font size controls */
.accepta-responsive-field {
    grid-column: 1 / -1; /* Span full width */
}

.accepta-responsive-tabs {
    display: flex;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.accepta-responsive-tab {
    flex: 1;
    padding: 6px 8px;
    background: #f7f7f7;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.accepta-responsive-tab:last-child {
    border-right: none;
}

.accepta-responsive-tab:hover {
    background: #e7e7e7;
}

.accepta-responsive-tab.active {
    background: #0073aa;
    color: #fff;
}

.accepta-responsive-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.accepta-responsive-inputs {
    position: relative;
}

.accepta-responsive-input {
    display: none;
}

.accepta-responsive-input.active {
    display: block;
}

.accepta-responsive-input input::placeholder {
    color: #999;
    font-style: italic;
}
