/**
 * Directories plugin button shape overrides.
 *
 * Auto-detected and enqueued by the Directories plugin (Platform::getCustomAssetsDir())
 * from {active theme}/drts/style.css, loaded after the plugin's own Bootstrap CSS.
 *
 * Scope: padding, border-width, and border-radius only, to match this theme's
 * button shapes. Colors are intentionally left untouched - manage those via
 * WP Admin > Directories > Settings > Appearance > Color Settings instead.
 */

/* Solid/filled buttons: theme's pill CTA shape */
.drts .drts-bs-btn,
.drts .drts-bs-btn-primary,
.drts .drts-bs-btn-secondary,
.drts .drts-bs-btn-success,
.drts .drts-bs-btn-danger,
.drts .drts-bs-btn-warning,
.drts .drts-bs-btn-info,
.drts .drts-bs-btn-light,
.drts .drts-bs-btn-dark {
    padding: 0.75rem 1.25rem;
    border-width: 1px;
    border-radius: 9999px;
}

.drts .drts-bs-btn-lg,
.drts .drts-bs-btn-group-lg > .drts-bs-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
}

.drts .drts-bs-btn-sm,
.drts .drts-bs-btn-group-sm > .drts-bs-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

/* Outline buttons: same pill radius as solid buttons, just a heavier border */
.drts .drts-bs-btn-outline-primary,
.drts .drts-bs-btn-outline-secondary,
.drts .drts-bs-btn-outline-success,
.drts .drts-bs-btn-outline-danger,
.drts .drts-bs-btn-outline-warning,
.drts .drts-bs-btn-outline-info,
.drts .drts-bs-btn-outline-light,
.drts .drts-bs-btn-outline-dark {
    border-width: 2px;
    border-radius: 9999px;
}

/*
 * The search form submit button's radius is forced to 3px (or 0, on its
 * left/attached side) by main.css's @container query and
 * .drts-search-form-inline rules, both using !important. Match that
 * specificity to win (this file loads after main.css).
 */
.drts-search-form-field:last-child .drts-search-form-submit,
.drts-search-form-inline .drts-search-form-field:last-child .drts-search-form-submit {
    border-radius: 9999px !important;
}
