/* Central UI primitives used by components/ui and ui catalog page */

.ui-catalog-layout {
    padding-bottom: 1rem;
}

.ui-section-card {
    border-radius: 14px;
}

.ui-section-card .pricing-section-body {
    display: grid;
    gap: 0.75rem;
}

.ui-section-description {
    margin-bottom: 0.5rem;
}

.ui-field {
    display: grid;
    gap: 0.35rem;
}

.ui-field .form-label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.field-badge {
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-brown-light, #BBA998);
    background-color: rgba(187, 169, 152, 0.15);
    padding: 0.08rem 0.4rem;
    border-radius: 10px;
    white-space: nowrap;
}

.ui-field .lang-input,
.ui-field .form-control {
    min-height: 40px;
}

.ui-input-group .input-group-text {
    min-width: 42px;
    justify-content: center;
}

.ui-stepper-group {
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Hide native spinners when using custom stepper arrows */
.ui-stepper-group input[type="number"] {
    -moz-appearance: textfield;
    background-image: none !important;
    padding-right: 0.35rem !important;
}

.ui-stepper-group input[type="number"]::-webkit-outer-spin-button,
.ui-stepper-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* Flatten the right edge of the input so it joins the stepper cleanly */
.ui-stepper-group input.form-control[type="number"] {
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
}

/* When percent badge is present after the stepper, close the right edge there */
.ui-percent-stepper-group .input-group-text {
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.ui-upload-dropzone {
    min-height: 88px;
}

.dark-theme .ui-section-card .pricing-section-body {
    color: #e0e0e0;
}
