/* ── GALADO Font Preview — Clean White Base ── */
.galado-font-preview-wrap {
    margin: 24px 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* ── Personalisation Toggle ── */
.galado-fp-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 20px !important;
    background: #fff !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none;
    -webkit-user-select: none;
    margin: 0 !important;
}

.galado-fp-toggle:hover {
    border-color: #ccc !important;
}

.galado-fp-toggle input[type="checkbox"] {
    display: none !important;
}

.galado-fp-toggle-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.galado-fp-toggle input:checked ~ .galado-fp-toggle-box {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.galado-fp-toggle input:checked ~ .galado-fp-toggle-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.galado-fp-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.galado-fp-toggle-label strong {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.2px;
}

.galado-fp-toggle-label small {
    font-size: 13px !important;
    color: #888 !important;
    font-weight: 400 !important;
}

/* ── Fields Container ── */
.galado-fp-fields {
    margin-top: 16px !important;
    padding: 24px 20px !important;
    background: #fff !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 12px !important;
}

/* ── Field Labels ── */
.galado-fp-field-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

/* ── Input ── */
.galado-fp-input-wrap {
    margin-bottom: 20px !important;
}

.galado-fp-input {
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 16px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    color: #1a1a1a !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.galado-fp-input:focus {
    outline: none !important;
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08) !important;
    background: #fff !important;
}

/* ── Font Colour Selector ── */
.galado-fp-color-options {
    display: flex !important;
    gap: 12px !important;
}

.galado-fp-color-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 20px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none;
    -webkit-user-select: none;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #555 !important;
    background: #fafafa !important;
}

.galado-fp-color-option:active {
    transform: scale(0.97);
}

.galado-fp-color-option input[type="radio"] {
    display: none !important;
}

.galado-fp-color-option.active {
    border-color: #1a1a1a !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06) !important;
    color: #1a1a1a !important;
}

.galado-fp-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.galado-fp-swatch-black {
    background: #1a1a1a;
    border: 1.5px solid #1a1a1a;
}

.galado-fp-swatch-white {
    background: #fff;
    border: 1.5px solid #ccc;
}

/* ── Grid ── */
/* No max-height / overflow — cards flow naturally with the page so mobile
   users are never trapped scrolling inside a nested scroll container. */
.galado-fp-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 2px !important;
}

.galado-fp-placeholder {
    text-align: center !important;
    padding: 32px 16px !important;
    color: #aaa !important;
    font-size: 14px !important;
}

/* ── Font Card ── */
.galado-fp-card {
    padding: 16px 14px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    user-select: none;
    -webkit-user-select: none;
    min-height: 88px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.galado-fp-card:active {
    transform: scale(0.97);
}

.galado-fp-card.selected {
    border-color: #1a1a1a !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06) !important;
}

.galado-fp-card .font-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #aaa !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.galado-fp-card.selected .font-name {
    color: #1a1a1a !important;
}

.galado-fp-card .font-sample {
    font-size: 32px !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    word-break: break-word !important;
    max-width: 100% !important;
    padding: 4px 0 !important;
}

/* ── Badge ── */
.galado-fp-badge {
    font-size: 14px !important;
    color: #333 !important;
    margin-top: 12px !important;
    letter-spacing: 0.2px !important;
}
