/* -----------------------------------------
   Theme polish: rounded corners + brand gradient across the public site.
   Loaded after every other stylesheet, so it only needs to override values.
   Change the tokens below to tune the whole site at once.
----------------------------------------- */
:root {
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    --grad-end: #1aa99a;
    --grad: linear-gradient(135deg, var(--color-primary) 0%, var(--grad-end) 150%);
    --grad-hover: linear-gradient(135deg, var(--color-primary) 0%, var(--grad-end) 100%);
    --grad-soft: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.07) 0%, rgba(26, 169, 154, 0.09) 100%);
    --shadow-brand: 0 10px 24px rgba(var(--color-primary-rgb), 0.26);
    --shadow-card: 0 12px 34px rgba(17, 16, 33, 0.08);
}

/* ---------- Utility radius classes already used across the templates ---------- */
.radius-sm {
    border-radius: var(--r-sm) !important;
}

.radius-md {
    border-radius: var(--r-md) !important;
}

.radius-lg {
    border-radius: var(--r-lg) !important;
}

/* ---------- Buttons ---------- */
.btn:not(.btn-close):not(.btn-icon):not(.btn-block-square) {
    border-radius: var(--r-pill) !important;
}

.btn-primary,
.btn-secondary.btn-gradient,
.btn.btn-primary:focus {
    color: #fff !important;
    background-image: var(--grad) !important;
    background-color: var(--color-primary) !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-brand);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:active {
    color: #fff !important;
    background-image: var(--grad-hover) !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-outline,
.btn-outline-primary {
    border-color: var(--color-primary);
    transition: all 0.2s ease;
}

.btn-outline:hover,
.btn-outline-primary:hover {
    color: #fff !important;
    background-image: var(--grad) !important;
    background-color: var(--color-primary) !important;
    border-color: transparent !important;
}

/* keep the framed / tinted buttons used inside cards and headers tidy */
.header-area .btn-primary,
.header-area .btn-outline {
    box-shadow: none;
}

/* ---------- Form fields ---------- */
.form-control,
.form-select,
select.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="password"].form-control,
input[type="number"].form-control {
    border-radius: var(--r-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nice-select {
    border-radius: var(--r-sm);
}

.nice-select .list {
    overflow: hidden;
    border-radius: var(--r-md);
    box-shadow: 0 18px 44px rgba(17, 16, 33, 0.14);
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-image: var(--grad-soft);
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: var(--r-sm);
}

/* ---------- Dropdown menus, modals, alerts ---------- */
.dropdown-menu,
.dropdown-menu.radius-0,
.header-area .main-navbar .menu-dropdown {
    border-radius: var(--r-md) !important;
}

.dropdown-menu {
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--r-md);
    box-shadow: 0 18px 44px rgba(17, 16, 33, 0.14);
}

.dropdown-menu .dropdown-item {
    border-radius: var(--r-xs);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-image: var(--grad-soft);
}

.modal-content {
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: 0 30px 80px rgba(17, 16, 33, 0.25);
}

.alert {
    border-radius: var(--r-md);
}

#toast-container > div {
    border-radius: var(--r-md);
}

/* ---------- Cards, images and tiles ---------- */
.product-default,
.card,
.category-item,
.process-item,
.item-single,
.blog-item,
.author-item,
.agent-details {
    border-radius: var(--r-lg);
}

.product-default {
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.lazy-container {
    border-radius: var(--r-lg);
    overflow: hidden;
}

.product-default .lazy-container,
.product-default .product-img {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.card img,
.card .lazy-container {
    border-radius: var(--r-lg);
}

.accordion-item {
    overflow: hidden;
    border-radius: var(--r-md) !important;
}

/* ---------- Labels, badges, tags ---------- */
.badge {
    border-radius: var(--r-pill);
}

.product-default .label,
.agent-box .label,
.agent-column .label,
.agent-single .label {
    color: #fff;
    background-image: var(--grad);
    border-radius: 0 var(--r-pill) var(--r-pill) 0 !important;
}

/* ---------- Tabs and pagination ---------- */
/* Active tab: translucent "frosted glass" pill (iOS style) instead of a solid fill. */
.tabs-navigation .nav-link.active,
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.pricing-area .tabs-navigation .nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 700;
    background-color: rgba(var(--color-primary-rgb), 0.2) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(var(--color-primary-rgb), 0.05), 0 6px 18px rgba(var(--color-primary-rgb), 0.2);
}

.pagination .page-link,
.dataTables_wrapper .paginate_button .page-link {
    border-radius: var(--r-sm);
}

.pagination .page-item.active .page-link,
.dataTables_wrapper .paginate_button.active .page-link {
    color: #fff;
    background-image: var(--grad) !important;
    background-color: var(--color-primary);
    border-color: transparent;
}

/* ---------- Sliders, range bar, back-to-top ---------- */
.slider-btn,
.slider-btn.slider-btn-prev,
.slider-btn.slider-btn-next,
.product-slider-btn-prev,
.product-slider-btn-next,
.cat-slider-btn-prev,
.cat-slider-btn-next,
.swiper-button-next,
.swiper-button-prev {
    border-radius: 50% !important;
}

.slider-btn:not(.swiper-button-disabled),
.product-slider-btn-prev:not(.swiper-button-disabled),
.product-slider-btn-next:not(.swiper-button-disabled),
.cat-slider-btn-prev:not(.swiper-button-disabled),
.cat-slider-btn-next:not(.swiper-button-disabled) {
    color: #fff;
    background-image: var(--grad);
    border-color: transparent;
    box-shadow: var(--shadow-brand);
}

.swiper-pagination-bullet-active {
    background-image: var(--grad);
    background-color: var(--color-primary);
}

.noUi-connect {
    background-image: var(--grad);
}

.noUi-handle {
    border-radius: 50%;
}

.go-top {
    color: #fff;
    background-image: var(--grad);
    background-color: var(--color-primary);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-brand);
}

/* ---------- Section accents ---------- */
.section-title .title::after,
.section-title .title::before {
    background-image: var(--grad);
}

.page-title-area {
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ---------- Tables (customer pages) ---------- */
.table-responsive {
    border-radius: var(--r-md);
}

.user-dashboard .main-table,
.user-dashboard .card {
    border-radius: var(--r-lg);
}

/* ---------- "Near me" location button ---------- */
.near-me-field {
    position: relative;
}

.near-me-field .form-control,
.near-me-field input[name="location"] {
    padding-right: 48px !important;
    text-overflow: ellipsis;
}

.near-me-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-primary);
    font-size: 15px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.near-me-btn i {
    color: inherit;
}

.near-me-btn:hover {
    color: #fff;
    background-image: var(--grad);
}

.near-me-btn.is-loading i {
    animation: nearMePulse 0.9s ease-in-out infinite;
}

@keyframes nearMePulse {
    50% {
        opacity: 0.25;
        transform: scale(1.25);
    }
}

.near-me-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--grad-soft);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: var(--r-md);
}

.near-me-notice i {
    margin-right: 6px;
    color: var(--color-primary);
}

.near-me-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.near-me-radius {
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    background-color: #fff;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--r-pill);
}

/* Details page: tighter top spacing now that the header no longer double-counts */
.product-single.pt-100 {
    padding-top: 56px !important;
}

@media (max-width: 991.98px) {
    .product-single.pt-100 {
        padding-top: 28px !important;
    }
}

/* Details gallery (desktop): photo fills the column, thumbnails sit below instead of covering it */
@media (min-width: 992px) {
    .product-single .product-single-gallery {
        padding-bottom: 0;
    }

    .product-single .product-single-slider {
        max-width: 100%;
    }

    .product-single .product-single-gallery .slider-btn {
        left: 14px;
        top: 42%;
        z-index: 3;
    }

    .product-single .product-single-gallery .slider-btn.slider-btn-next {
        right: 14px;
        left: auto;
    }

    .product-single .slider-thumbnails {
        position: relative;
        left: auto;
        max-width: 100%;
        margin-top: 12px;
        transform: none;
    }
}

/* "Featured" label shown on promoted listings (cards and details gallery) */
.label-featured {
    position: absolute;
    top: 52px;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 8px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff;
    background-image: linear-gradient(135deg, #f59e0b 0%, #e8590c 100%);
    border-radius: 0 999px 999px 0;
    box-shadow: 0 4px 10px rgba(232, 89, 12, 0.35);
}

.label-featured i {
    margin: 0;
    font-size: 9px;
    color: #fff;
}

/* Details gallery: purpose + featured labels stacked with even spacing */
.label-stack {
    position: absolute;
    top: 16px;
    left: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.label-stack .label-featured {
    position: static;
    padding: 4px 12px 4px 10px;
    font-size: 11px;
}

.label-purpose {
    padding: 6px 16px 6px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background-image: linear-gradient(135deg, var(--color-primary, #0A2C6D) 0%, #1aa99a 150%);
    border-radius: 0 999px 999px 0;
}

/* ---------- Listing card: tidy, well-ordered text block ---------- */
.product-default:not(.product-inline) .product-details {
    padding: 16px 18px 18px;
}

.product-default:not(.product-inline) .product-details > .d-flex {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px !important;
}

.product-default:not(.product-inline) .author {
    min-width: 0;
    flex: 1 1 auto;
}

.product-default:not(.product-inline) .author a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.product-default:not(.product-inline) .author img {
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    object-fit: cover;
    border-radius: 50%;
}

.product-default:not(.product-inline) .author span {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #6b7080;
}

.product-default:not(.product-inline) .product-category {
    flex: 0 0 auto;
    padding: 3px 10px;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--r-pill);
}

.product-default:not(.product-inline) .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.product-default:not(.product-inline) .product-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #7c8393;
}

.product-default:not(.product-inline) .product-location i {
    flex: 0 0 auto;
    margin: 0;
    color: var(--color-primary);
}

.product-default:not(.product-inline) .product-price {
    margin: 0 0 14px;
}

.product-default:not(.product-inline) .product-price .new-price {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--color-primary);
}

.product-default:not(.product-inline) .product-info {
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(17, 16, 33, 0.08);
}

.product-default:not(.product-inline) .product-info li {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    white-space: nowrap;
    color: #6b7080;
}

.product-default:not(.product-inline) .product-info li i {
    margin: 0;
    font-size: 14px;
    color: var(--color-primary);
}

/* Homepage search card: gradient outline that matches the Search button */
.tab-content.form-wrapper {
    border: 2px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--color-primary) 0%, var(--grad-end) 100%) border-box !important;
}

/* ---------- Section headings: sized to the page, not 48px everywhere ---------- */
.section-title .title,
.section-title h2 {
    font-size: clamp(24px, 1.2vw + 19px, 34px);
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.section-title.title-inline {
    gap: 12px 20px;
}

@media (max-width: 767.98px) {
    .section-title.mb-40,
    .section-title.mb-30 {
        margin-bottom: 22px !important;
    }
}

/* ---------- Page banner / breadcrumb: on-brand overlay, readable trail ---------- */
.page-title-area {
    padding: 64px 0 56px !important;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.page-title-area::before {
    background: linear-gradient(135deg, rgba(10, 44, 109, 0.92) 0%, rgba(10, 44, 109, 0.78) 55%, rgba(26, 169, 154, 0.7) 100%) !important;
    opacity: 1 !important;
}

.page-title-area h1 {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.2vw + 18px, 44px);
    line-height: 1.2;
    color: #fff;
}

.page-title-area .crumb-trail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 18px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.page-title-area .crumb-trail li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
}

.page-title-area .crumb-trail a {
    color: #fff;
    font-weight: 500;
}

.page-title-area .crumb-trail a i {
    margin-right: 6px;
    color: #fff;
}

.page-title-area .crumb-trail a:hover {
    color: #7ff5e3;
}

.page-title-area .crumb-trail .crumb-sep i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.page-title-area .crumb-trail .active {
    font-weight: 600;
    color: #7ff5e3 !important;
}

@media (max-width: 767.98px) {
    .page-title-area {
        padding: 44px 0 40px !important;
    }

    .page-title-area .crumb-trail {
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ---------- Vendor / agent directory cards ---------- */
.agent-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 16, 33, 0.07);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agent-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(17, 16, 33, 0.12);
}

.agent-box .agent-img {
    position: relative;
    overflow: hidden;
}

.agent-box .agent-img .lazy-container {
    border-radius: 0 !important;
}

.agent-box .agent-img figure {
    margin: 0;
}

.agent-box .lazy-container.ratio::before {
    padding-bottom: 72% !important;
}

.agent-box .agent-img img {
    border-radius: 0;
    object-fit: cover;
}

.agent-box .agent-ratings {
    position: absolute;
    top: 14px;
    right: 0;
    bottom: auto;
    left: 0;
    height: auto;
    padding: 0;
    background: none;
}

.agent-box .agent-ratings .label {
    position: static;
    margin: 0 0 0 auto;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-image: var(--grad);
    border-radius: var(--r-pill) 0 0 var(--r-pill) !important;
}

.agent-box .agent-details {
    flex: 1 1 auto;
    padding: 18px 18px 22px;
    text-align: center;
    background: #fff !important;
}

.agent-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.agent-stats span {
    padding: 3px 10px;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-primary) !important;
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--r-pill);
}

.agent-box .agent-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.agent-box .agent-info {
    margin: 0 0 16px;
}

.agent-box .agent-info li {
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.agent-box .agent-info li a {
    color: #6b7080;
}

.agent-box .agent-info li i {
    margin-right: 6px;
    color: var(--color-primary);
}

.agent-box .btn-text {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--r-pill);
    transition: all 0.2s ease;
}

.agent-box .btn-text:hover {
    color: #fff;
    background-image: var(--grad);
    border-color: transparent;
}

.agent-box .agent-title a {
    color: #111021 !important;
}

.agent-box .agent-title a:hover {
    color: var(--color-primary) !important;
}

.agent-grid .col-lg-9 > .row > [class*="col-"] {
    display: flex;
}

.agent-grid .col-lg-9 > .row > [class*="col-"] > .agent-box {
    flex: 1 1 auto;
    width: 100%;
}

.agent-box .agent-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-box .btn-text {
    margin-top: auto;
}

/* ---------- Vendor / agent profile header ---------- */
.agent-single .agent-single-box {
    margin: 0 0 28px !important;
    padding: 24px !important;
    background: #fff;
    border: 1px solid rgba(17, 16, 33, 0.07);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.agent-single .agent-single-box > .agent-img {
    width: 200px !important;
    max-width: 100%;
    margin: 0 auto 20px !important;
}

.agent-single .agent-single-box > .agent-img .lazy-container {
    border-radius: var(--r-lg);
    box-shadow: 0 10px 26px rgba(17, 16, 33, 0.14);
}

.agent-single .agent-single-box > .agent-details {
    width: 100% !important;
    margin-bottom: 0 !important;
    text-align: center;
}

.agent-single .agent-single-box .agent-details .label {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12.5px;
    color: #fff;
    background-image: var(--grad);
    border-radius: var(--r-pill) !important;
}

.agent-single .agent-single-box .agent-title {
    margin: 0 0 14px !important;
    font-size: clamp(22px, 1.4vw + 16px, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.agent-single .agent-single-box .agent-info {
    max-width: 460px;
    margin: 0 auto 18px !important;
    text-align: left;
}

.agent-single .agent-single-box .agent-info li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px dashed rgba(17, 16, 33, 0.1);
}

.agent-single .agent-single-box .agent-info li:last-child {
    border-bottom: 0;
}

.agent-single .agent-single-box .agent-info li > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 600;
    color: #111021;
}

.agent-single .agent-single-box .agent-info li i {
    margin-right: 6px;
    color: var(--color-primary);
}

@media (min-width: 992px) {
    .agent-single .agent-single-box {
        display: flex;
        flex-wrap: nowrap;
        align-items: center !important;
        gap: 32px;
    }

    .agent-single .agent-single-box > .agent-img {
        flex: 0 0 200px;
        margin: 0 !important;
    }

    .agent-single .agent-single-box > .agent-details {
        flex: 1 1 auto;
        width: auto !important;
        text-align: left;
    }

    .agent-single .agent-single-box .agent-info {
        margin-left: 0 !important;
    }
}

.agent-single .agent-single-box .agent-info li a {
    color: #111021;
}

.agent-single .agent-single-box .agent-info li a:hover {
    color: var(--color-primary);
}

.agent-single .agent-single-box .agent-info li {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
}

.agent-single .agent-single-box .agent-info li > div:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.agent-single .agent-single-box .agent-info li > div:last-child,
.agent-single .agent-single-box .agent-info li > div:last-child * {
    white-space: normal !important;
}

.agent-single .agent-single-box .agent-info li > div {
    width: auto !important;
}

.agent-single .agent-single-box .agent-info li > div:last-child {
    flex: 1 1 0;
}

/* the theme forces white links on .agent-box; win that specificity for the white card body */
.agent-box:not(.agent-column) .agent-info li a {
    color: #6b7080;
}

.agent-box:not(.agent-column) .agent-info li a:hover {
    color: var(--color-primary);
}

.agent-box:not(.agent-column) a.btn-text {
    color: var(--color-primary);
}

.agent-box:not(.agent-column) a.btn-text:hover {
    color: #fff;
}

.agent-box:not(.agent-column) .agent-info li {
    padding-inline: 4px;
}

.agent-box:not(.agent-column) .agent-info li a {
    display: inline-block;
    max-width: calc(100% - 26px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.agent-single .agent-single-box > .agent-img,
.agent-single .agent-single-box > .agent-details {
    padding-right: 0 !important;
    padding-left: 0 !important;
}
