body {
  font-family: var(--main-font-family);
  background-color: var(--bg-sandy);
}

.row[role='main'] {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.card.mb-3.profile-info {
  display: none !important;
}

.weblinks-depth-1.weblinks.list-group {
  display: none;
}

.card.nav-profile .card-header {
  display: none;
}

.list-group.nav-profile {
  display: flex;
  flex-direction: column;

  gap: 15px;

  width: 338px;
}

.col-md-12 {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.col-lg-8 {
  width: 100%;
}

.col-lg-4 {
  width: 100%;
  margin-bottom: 60px;
}

.breadcrumb {
  display: none;
}

.page-heading {
  padding-top: 0px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.ctn_infoProvider {
  margin-bottom: 30px;

  display: flex;
  align-items: center;
  padding-left: 10px;

  min-height: 39px;
  max-height: 39px;
  border-radius: 3px;
  border: 1px solid var(--blue-grey);

  font-size: 14px;
  font-weight: 400;

  color: var(--typo-marian-blue);
}

.page-header h2 {
  margin: 0px 0px 0px 0px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 5px;

  display: flex;
  align-items: center;

  font-size: var(--h3-bold-text-font-size);
  font-weight: var(--h3-bold-text-font-weight);
}

.page-header span {
  margin-left: 0px;

  color: var(--typo-marian-blue);
}

.fa.fa-exclamation-circle::before {
  color: var(--status-blue);
  background: white;
  border: 1px solid white;
  border-radius: 200px;
}

.alert.alert-info.clearfix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 43px;
  min-height: 43px;
  padding: 0px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  gap: 10px;

  border: none;

  margin-bottom: 30px;

  background-color: var(--status-blue);
}

.alert.alert-info.clearfix .xrm-attribute-value-encoded.xrm-attribute-value {
  font-size: var(--helper-text-font-size);
  font-weight: var(--helper-text-font-weight);
  color: white;
}

.alert.alert-info.clearfix .float-end {
  box-sizing: unset;
  margin-left: auto;
}

.btn.btn-info.btn-sm[title='Confirm Email'] {
  transition: none;
  background: none;

  border: none;

  font-size: var(--btn-text-font-size);
  font-weight: var(--btn-text-font-weight);

  padding: 0px;
}

.btn.btn-info.btn-sm[title='Confirm Email']:hover {
  transition: none;
  background: none;

  border: none;
}

/* .btn.btn-info.btn-sm[title="Confirm Email"]::after {
    content: "✕";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer; 
    font-size: 14px;
  } */

.btn.btn-info.btn-sm[title='Confirm Email'] .fa.fa-envelope {
  display: none;
}

div[id='ProfileFormView'] fieldset legend,
h2.profile-page-heading {
  display: none;
}

.section-title {
  display: block !important;
}

div[id='ProfileFormView'] {
  border: none;
}

.crmEntityFormView .cell {
  padding: 0px;
  padding-bottom: 15px;
  padding-right: 15px;
}

.crmEntityFormView .cell:nth-child(2n) {
  padding-left: 15px;
  padding-right: 0px;
}

.section-title h3 {
  margin: 0px;
  margin-bottom: 15px;

  font-size: var(--h3-semi-text-font-size);
  font-weight: var(--h3-semi-text-font-weight);
  color: var(--portalThemeOnColor17);
}

.tab-column fieldset {
  margin: 0px;
}

.tab-column > div {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 15px;
}

.tab.clearfix {
  margin: 0px;
  background-color: var(--bg-sandy);
}

.field-label {
  margin-bottom: 10px;

  font-size: var(--helper-small-text-font-size);
  font-weight: var(--helper-small-text-font-weight);

  color: var(--typo-marian-blue);
}

.crmEntityFormView .cell div.table-info.required label:after {
  font-size: var(--helper-small-text-font-size);
  font-weight: var(--helper-small-text-font-weight);
}

.text.form-control {
  display: flex;
  flex-direction: row;
  align-items: center;

  height: 50px;

  gap: 10px;
  padding: 13.5px 20px 13.5px 20px;
  border-radius: 20px;
  background-color: transparent;
  overflow: hidden;
  border: none;

  font-size: var(--body-text-font-size);
  font-weight: var(--body-text-font-weight);

  color: var(--typo-marian-blue);
}

.text.form-control::placeholder,
.text.form-control::-webkit-input-placeholder {
  color: var(--secondary-grey) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text.form-control:hover {
  border-color: transparent;
  outline: none;
}

.text.form-control:focus {
  border-color: transparent;
  outline: none;
  box-shadow: none !important;
}

.form-control.form-select.picklist {
  display: flex;
  flex-direction: row;
  align-items: center;

  height: 50px;

  gap: 10px;
  padding: 13.5px 20px 13.5px 20px;
  border-radius: 20px;
  background-color: transparent;
  overflow: hidden;
  border: 1px solid var(--portalThemeOnColor18);

  font-size: var(--body-text-font-size);
  font-weight: var(--body-text-font-weight);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3IDdMMTAgMTRMMyA3IiBzdHJva2U9IiMwMDM0NjYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg==');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  background-size: 20px 20px;
  /* щоб не накладалося на текст */
  border: 1px solid #ccc;

  color: var(--brand-marian-blue);
}

.form-control.form-select.picklist:hover {
  border-color: transparent;
  outline: none;
}

.form-control.form-select.picklist:focus {
  border-color: transparent !important;
  outline: none;
}

.form-control.form-select.picklist option {
  width: 100%;
  padding: 12px 24px;
  border: none;
  background: var(--brand-white);
  text-align: left;
  font: var(--medium-font-cell);
  color: var(--typo-marian-blue);
  border-bottom: 1px solid var(--secondary-pink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.validators {
  height: 18px !important;
}

/* .text.form-control:placeholder-shown {
    border-color: var(--portalThemeOnColor18);
}

.text.form-control:not(:placeholder-shown) {
    border-color: var(--portalThemeOnColor17);
} */

div[id='ContentContainer_MainContent_MainContent_ContentBottom_MarketingOptionsPanel'] {
  margin: 0px;
  margin-bottom: 30px;
}

div[id='ContentContainer_MainContent_MainContent_ContentBottom_MarketingOptionsPanel'] fieldset {
  max-height: 95px;
  min-height: 95px;
}

div[id='ContentContainer_MainContent_MainContent_ContentBottom_MarketingOptionsPanel'] legend {
  display: block;
  margin-bottom: 15px;
  border: none;
}

div[id='ContentContainer_MainContent_MainContent_ContentBottom_MarketingOptionsPanel']
  .profile-page-heading
  .xrm-attribute-value {
  font-size: var(--h3-semi-text-font-size);
  font-weight: var(--h3-semi-text-font-weight);

  color: var(--typo-marian-blue);
}

.form-check .xrm-attribute-value {
  font-size: var(--helper-small-text-font-size);
  font-weight: var(--helper-small-text-font-weight);

  color: var(--portalThemeOnColor17);
}

small {
  display: none;
}

.form-check {
  padding: 0px;
}

.form-check label {
  display: flex;
  flex-direction: row;

  align-items: center;

  gap: 10px;
}

input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIxIiB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHJ4PSIxLjUiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjAuNSIgeT0iMSIgd2lkdGg9IjE5IiBoZWlnaHQ9IjE5IiByeD0iMS41IiBzdHJva2U9IiNGMERERTAiLz4KPC9zdmc+Cg==');
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  border: none;
}

input[type='checkbox']:checked {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIxIiB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHJ4PSIxLjUiIGZpbGw9IiNGNkU5RTAiLz4KPHJlY3QgeD0iMC41IiB5PSIxIiB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHJ4PSIxLjUiIHN0cm9rZT0iIzMwMzg4MCIvPgo8cGF0aCBkPSJNMy4xNjAxNiA5LjgwNzUyTDcuOTQ4MTYgMTQuNDU5OEwxNi44NDAyIDUuODE5ODIiIHN0cm9rZT0iI0ZENzExOSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K');
}

input[id='ContentContainer_MainContent_MainContent_ContentBottom_SubmitButton'] {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 14px 30px 14px 30px;
  border: none;
  border-radius: 30px;
  background-color: var(--brand-orange-sun);
  color: white;

  font-size: var(--btn-text-font-size);
  font-weight: var(--btn-text-font-weight);
}

input[id='ContentContainer_MainContent_MainContent_ContentBottom_SubmitButton']:hover {
  border: none;
  border-radius: 30px;
  background-color: var(--brand-marian-blue);
  color: white;
}

.actions {
  width: 238px;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.card.nav-profile {
  margin: 0px;

  background-color: var(--bg-sandy);
}

.list-group.nav-profile .list-group-item {
  height: 23px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;

  border: none;

  font-size: 16px;
  font-weight: 400;
  color: var(--typo-marian-blue);
  background-color: transparent;
}

.list-group.nav-profile .list-group-item:hover {
  border: none;
  background-color: transparent;
}

.clearfix.cell.checkbox-cell {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  height: 100px;
  justify-content: start;
  margin-top: 10px;
}

.clearfix.cell.checkbox-cell .table-info {
  padding-left: 10px !important;
}

.clearfix.cell.checkbox-cell label {
  padding: 0px;

  color: var(--typo-marian-blue);
  font-size: var(--helper-text-font-size);
  font-weight: var(--helper-text-font-weight);
}

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 990px;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1160px;
  }
}

div.card.nav-profile {
  display: none !important;
}

legend h3.profile-page-heading span,
legend.section-title h3 {
  letter-spacing: normal;
  font-weight: 700 !important;
}

/* Select */

.aghSelect__container {
  width: 100%;
  position: relative;
}

.aghSelect__button {
  width: 100%;
  height: 50px;
  padding: 0 12px 0 24px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  outline: none;
  cursor: pointer;
  font: var(--medium-font-cell);
  color: var(--typo-marian-blue);
  text-align: left;
}
.aghSelect__button[aria-expanded='true'] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.aghSelect__button[data-placeholder='true'] {
  color: var(--secondary-grey);
}
.aghSelect__chevron {
  color: var(--brand-marian-blue);
  flex-shrink: 0;
}

.aghSelect__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--brand-white);
  border: 1px solid var(--secondary-pink);
  border-top: none;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
}
.aghSelect__option {
  width: 100%;
  padding: 12px 24px;
  border: none;
  background: var(--brand-white);
  text-align: left;
  font: var(--medium-font-cell);
  color: var(--typo-marian-blue);
  border-bottom: 1px solid var(--secondary-pink);
  cursor: pointer;
  display: block;
}
.aghSelect__option:last-child {
  border-bottom: none;
}
.aghSelect__option:hover {
  background-color: var(--light-gray);
}
.aghSelect__option.is-selected {
  background-color: var(--secondary-sandy);
  font-weight: 700;
}
.aghSelect__nativeHidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.aghSelect__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.aghSelect__clear {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 18px;
  line-height: 1;
  color: var(--typo-marian-blue);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.aghSelect__clear:hover {
  color: var(--brand-orange-sun);
}
.aghSelect__button[data-placeholder='false'] .aghSelect__clear {
  display: inline-flex;
}

/* Custom Input */

.aghInput__container {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
}

/* лишаємо місце справа під X щоб не наїжджав на текст */
.aghInput__container > input {
  padding-right: 32px !important;
  text-decoration: none !important;
}

.aghInput__clear {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  margin: auto 0; /* ← вертикальне центрування */
  width: 24px;
  height: 24px;
  padding: 0; /* кільнути bootstrap */
  background: none;
  border: none;
  color: var(--typo-marian-blue);
  cursor: pointer;
  line-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.aghInput__clear:hover {
  color: var(--brand-orange-sun);
}
.aghInput__clear[data-visible='true'] {
  display: inline-flex;
}
.aghInput__clear svg {
  display: block;
} /* прибрати inline-baseline-зсув */

/* readonly інпут: ховаємо clear-кнопку і повертаємо right-padding до базового */
.aghInput__container > input[readonly] ~ .aghInput__clear {
  display: none !important;
}
.aghInput__container > input[readonly] {
  padding-right: 20px !important;
  cursor: default;
  text-decoration: none !important;
}

/* OOB Power Pages mailto-rewrite на email-полі: показуємо інпут, ховаємо mailto-обгортку */
.aghInput__container > input#emailaddress1 {
  display: flex !important;
}
.aghInput__container > .control:has(> a[href^='mailto:']) {
  display: none !important;
}

/* Field error (phone/fax format) */
.aghFieldError {
  display: block;
  margin-top: 6px;
  font-size: var(--helper-small-text-font-size);
  font-weight: var(--helper-small-text-font-weight);
  color: var(--status-red);
}
.aghFieldError[hidden] {
  display: none;
}

/* Banner */

.aghBanner {
  margin: 16px 0;
  padding: 30px 15px;
  min-height: 43px;
  max-height: 43px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aghBanner__message {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aghBanner__type {
  font: var(--body-bold-text, 700 14px/1 var(--main-font-family, sans-serif));
}
.aghBanner__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}
.aghBanner__icon {
  display: inline-flex;
  align-items: center;
}
.aghBanner[hidden] {
  display: none;
}

/* кольори згідно React-конфігу */
.aghBanner--Info {
  background: #6d98d6;
  color: #fff;
  border: 3px solid #fd7119;
}
.aghBanner--Warning {
  background: #ffdc83;
  color: var(--brand-marian-blue);
}

/* disabled-стан для submit (OOB native input[type=button]) */
input[type='button'][disabled],
input[type='button'].is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

input[type='button'].btn:disabled {
  background-color: #f0dde0;
  color: #a5a5a5;
}

/* Address section — divider between address group and email/phone/fax group */
#aghAddressSection .agh-addr-table {
  border-bottom: 1px solid #30388080;
  margin-bottom: 30px;
}

/* Street row spans both columns — drop the right-gutter padding so the input
   stretches across the full row width (matches React fullWidth style). */
.crmEntityFormView td.cell.agh-cell-fullwidth,
.crmEntityFormView td.cell[colspan='2'] {
  padding-right: 0 !important;
}

/* Type & State on Profile — display-only selects (no icons, pink bg).
   Type holds a single value ("Main"); State is populated by Google Places
   autocomplete via the Street field. */
.aghSelect__container.aghSelect--readonly .aghSelect__button, 
.aghInput__container input[type="email"] {
  pointer-events: none;
  background: var(--bg-pink) !important;
  cursor: default;
  color: var(--typo-marian-blue);
}
.aghSelect__container.aghSelect--readonly .aghSelect__actions {
  display: none !important;
}

/* Google Places Autocomplete dropdown (.pac-container is appended to body) */
.pac-target-input.dropdown-visible {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.pac-container {
  background: var(--brand-white);
  border: 1px solid var(--secondary-pink);
  border-top: none;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: none;
  margin-top: -1px;
  font-family: inherit;
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
}

.pac-item {
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid var(--secondary-pink);
  background: var(--brand-white);
  font: var(--medium-font-cell);
  color: var(--typo-marian-blue);
  transition: background-color 0.2s ease;
}

.pac-item:last-child {
  border-bottom: none;
}

.pac-item:hover {
  background-color: var(--light-gray);
}

.pac-item-selected,
.pac-item.pac-item-selected {
  background-color: var(--secondary-sandy);
  font-weight: 700;
}

.pac-item-query {
  font: var(--medium-font-cell);
  color: var(--typo-marian-blue);
}

.pac-matched {
  font-weight: 700;
  color: var(--typo-marian-blue);
}

.pac-logo:after {
  position: relative;
  right: 10px;
}

/* Photo */

.aghProfilePhoto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
}
.aghProfilePhoto__imgWrap {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--secondary-pink);
}
.aghProfilePhoto__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-pink);
  display: block;
}
.aghProfilePhoto__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
  text-align: center;
  padding: 4px;
}
.aghProfilePhoto__imgWrap:hover .aghProfilePhoto__overlay,
.aghProfilePhoto__imgWrap:focus-within .aghProfilePhoto__overlay {
  opacity: 1;
}
.aghProfilePhoto__hint {
  font-size: 12px;
  color: var(--secondary-grey);
}

a.btn-close[aria-label="Close"] {
  padding-top: 12px;
}
