/*
 * HivePress Providers - fallback styling.
 *
 * Most `.hp-provider*` elements are also given the matching core
 * `.hp-vendor*` class (see the includes/templates, includes/blocks and
 * templates/provider/* files), so they inherit HivePress's own compiled
 * CSS automatically and this file only needs to cover the handful of
 * cases where that isn't practical (e.g. the top-level entity icon).
 */

/* Distinguish the Provider post-type icon in wp-admin from Vendor's. */
#adminmenu .menu-icon-hp_provider div.wp-menu-image::before {
	content: "\f313"; /* dashicons-star-filled */
}

/* Verified badge tooltip color parity (in case a theme overrides only
   the .hp-vendor__verified-badge color directly instead of the shared
   .hp-icon rules). */
.hp-provider__verified-badge {
	color: #2ea2cc;
}

/* The provider block's "Send Message" action is deliberately a plain
   text link rather than the icon-styled circular button Vendor uses
   (.hp-vendor__action), so it needs its own baseline styling instead
   of inheriting the theme's Vendor action-button CSS. */
.hp-provider__action--message {
	display: inline-block;
	padding: 5px 0;
	border-bottom: 1px solid var(--white);
}

.hp-provider__action--message:hover {
	border-bottom: 1px solid var(--prim);
}

/* Card footer: "Send Message" always sits on the right-hand side,
   whatever else (e.g. a contact name) is on the left. */
.hp-provider__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.hp-provider__footer .hp-provider__actions {
	margin-left: auto;
	float: none;
	text-align: right;
}

/* ==========================================================================
   Moved from the child theme (summary, attributes box, forms, search bar).
   Uses the theme colours where they exist, with fallbacks.
   ========================================================================== */
.hp-provider__summary .hp-row > [class*="hp-col-"] {
  min-width: 0;
}
.hp-provider__attribute {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hp-provider__summary .hp-row > .hp-col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
}
.hp-block.hp-provider__attributes.hp-provider__attributes--prim.widget.hp-widget {
    border: 1px solid rgba(7, 36, 86, 0.075);
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
    background-color: var(--white, #fff);
    padding: 1rem 1.5rem;
    word-wrap: break-word;
}
.hp-provider--view-page .hp-provider__attributes--prim {
    border: 1px solid rgba(7, 36, 86, 0.075);
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
    background-color: var(--white, #fff);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 120%;
    word-wrap: break-word;
}
.hp-provider--view-page .hp-provider__attributes--prim .hp-provider__attribute:not(:last-child) {
    border-bottom: 1px solid rgba(7, 36, 86, 0.075);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
body .hp-providers__messages .hp-form__message {background-color: var(--cream, #fdfbf7);}
.hp-form--provider-search {
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
    background-color: var(--white, #fff);
    padding: 0.625rem;
    align-items: center;
}
.hp-form.hp-form--provider-search input[type='search'].hp-field,
.hp-form.hp-form--provider-search input[aria-label="Search"].hp-field {
	    height: 3rem;
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: var(--text, #1a1a1a);
    padding: 12px 14px;
    outline: none;
    background: var(--white, #fff);
	border:0;
}
.hp-form--provider-submit .select2-container--default .select2-selection--single {	border: 1.5px solid var(--border, #e2e8f0);}
.hp-form--provider-submit .select2-container--default .select2-selection--single {
    height: 3rem !important;
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: var(--text, #1a1a1a);
    padding: 0;
    outline: none;
    box-sizing: border-box;
}
.hp-form--provider-submit .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(3rem - 15px);
    color: var(--text, #1a1a1a);
    padding: 14px 32px 14px 12px;
	    display: flex;
    align-items: center;
}
.hp-form--provider-submit .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3rem;
    right: 10px;
	top: 0 !important;
}
form.hp-form.hp-form--provider-request-submit .hp-form__fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
form.hp-form.hp-form--provider-request-submit .hp-form__field {
    min-width: 32%;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}
form.hp-form.hp-form--provider-request-submit .hp-form__field.hp-form__field--checkbox {
    min-width: 100%;
}
@media only screen and (max-width: 47.99em) {
form.hp-form.hp-form--provider-request-submit .hp-form__field {
        min-width: 49%;
    }
}
@media only screen and (max-width: 576px) {
form.hp-form.hp-form--provider-request-submit .hp-form__field {
        min-width: 100%;
    }
}
@media only screen and (max-width: 47.99em) {
.hp-form--provider-search {
        align-items: stretch;
    }
.hp-form--provider-search .hp-form__field:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(7, 36, 86, 0.075);
    }
.hp-form--provider-search .hp-form__field:not(:last-child),
.hp-form--provider-search .hp-form__fields:not(:last-child) {
        margin: 0;
    }
.hp-form--provider-search .hp-form__fields:not(:last-child) {
        margin-bottom: 0.625rem;
    }
}
.hp-provider__role-badge.hp-meta {
    color: var(--navy, #0d3b66);
    font-size: 14px;
    background: rgba(14, 35, 64, 0.07);
    padding: 7px 10px;
    border-radius: 20px;
    font-weight: 500;
    text-align: center;
    width:100%;
    text-transform: none;
}
