.company-card.is-expanded {
  border: 3px solid var(--category-color, #35bcb4);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--category-color, #35bcb4) 24%, transparent);
}

.company-card.is-expanded:hover,
.company-card.is-expanded:focus {
  border-color: var(--category-color, #35bcb4);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--category-color, #35bcb4) 32%, transparent);
}

.company-card.is-expanded .card-cover {
  height: 170px;
}

/* Keep every uploaded logo inside a predictable framed area. */
.company-card.is-expanded .company-card-logo {
  top: 14px;
  left: 50%;
  width: min(68%, 260px);
  height: 108px;
  box-sizing: border-box;
  padding: 8px 10px;
  transform: translateX(-50%);
  border: 2px solid color-mix(in srgb, var(--category-color, #35bcb4) 52%, white);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(34, 85, 94, 0.12);
  overflow: hidden;
}

.company-card.is-expanded .company-card-logo img {
  position: absolute;
  inset: 8px 10px;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 16px);
  max-width: none;
  max-height: none;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
}

.company-card.is-expanded .expanded-badge {
  z-index: 4;
  top: auto;
  right: auto;
  bottom: 12px;
  left: 16px;
}

.company-card.is-expanded .favorite {
  z-index: 5;
}

.details-icon.has-logo,
.company-preview-head > span.has-logo {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.details-icon.has-logo img,
.company-preview-head > span.has-logo img {
  object-fit: contain;
  object-position: center;
}

.company-value-panel {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgba(53, 188, 180, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, #f3fffd 0%, #ffffff 58%, #f5f7ff 100%);
  box-shadow: 0 14px 34px rgba(40, 92, 100, 0.09);
}

.company-value-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.company-value-heading small,
.company-value-heading p,
.company-report-note {
  color: #708a92;
}

.company-value-heading h3 {
  margin: 4px 0;
  color: #104d6b;
}

.company-value-heading > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dbf6f1;
  color: #157a70;
  font-size: 12px;
  font-weight: 800;
}

.company-value-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-value-metrics > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(16, 77, 107, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
}

.company-value-metrics strong,
.company-value-metrics span,
.company-value-metrics small {
  display: block;
}

.company-value-metrics strong {
  color: #138f86;
  font-size: 25px;
  line-height: 1;
}

.company-value-metrics span {
  margin-top: 7px;
  color: #174f68;
  font-weight: 800;
}

.company-value-metrics small {
  margin-top: 3px;
  color: #8ba0a8;
}

.company-qr-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.company-qr-card img {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 10px;
}

.company-qr-card strong {
  color: #104d6b;
}

.company-qr-card p {
  margin: 5px 0 10px;
  color: #708a92;
}

.company-qr-card button,
.company-preview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: #35bcb4;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.company-report-note {
  margin: 13px 0 0;
  font-size: 13px;
}

.company-report-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(53, 188, 180, 0.25);
  border-radius: 16px;
  background: #f5fffd;
}

.company-report-toggle input {
  width: 22px !important;
  height: 22px;
  margin: 0;
}

.company-report-toggle span,
.company-report-toggle small,
.company-report-toggle strong {
  display: block;
}

.company-services-preview {
  white-space: pre-line;
}

.company-services-block > div {
  display: grid;
  gap: 8px;
}

.company-services-block p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(16, 77, 107, 0.16);
}

.company-services-block p:last-child {
  border-bottom: 0;
}

.company-services-block strong {
  flex: 0 0 auto;
  color: #138f86;
}

.company-booking-action {
  background: linear-gradient(135deg, #35bcb4, #2388d8) !important;
  color: #fff !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .company-card.is-expanded {
    box-shadow: 0 16px 42px rgba(53, 188, 180, 0.24);
  }

  .company-card.is-expanded .company-card-logo {
    border-color: rgba(53, 188, 180, 0.48);
  }
}

.advertising-badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 14px;
  display: flex;
  flex-direction: column;
  padding: 6px 9px;
  border: 1px solid rgba(119, 72, 12, 0.18);
  border-radius: 11px;
  background: rgba(255, 248, 229, 0.96);
  color: #765017;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 5px 16px rgba(101, 63, 16, 0.15);
}

.advertising-badge small {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 750;
}

.advertising-badge + .promo-badge {
  top: 55px;
}

.category-ad-meta {
  display: flex;
  flex-direction: column;
  margin: 7px 0 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: #fff8e8;
  color: #6f5c35;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.35;
}

.category-ad-meta small {
  margin-top: 2px;
  color: #855a1f;
  font-size: 7px;
}

@media (max-width: 560px) {
  .company-card.is-expanded .company-card-logo {
    width: min(68%, 250px);
    height: 104px;
  }

  .company-value-panel {
    padding: 16px;
  }

  .company-value-heading {
    display: block;
  }

  .company-value-heading > span {
    display: inline-block;
    margin-top: 8px;
  }

  .company-value-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-qr-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .company-qr-card img {
    width: 88px;
    height: 88px;
  }
}

.kd-priority-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.kd-priority-heading > small {
  color: #68818a;
  font-size: 11px;
  font-weight: 850;
}

.kd-priority-card,
.kd-priority-vacant {
  min-height: 238px;
  text-decoration: none;
}

.kd-priority-card.is-first {
  border-width: 2px;
  border-color: #d77b1f;
  box-shadow: 0 16px 38px rgba(165, 91, 19, 0.22);
}

.kd-priority-vacant {
  cursor: default;
  border-style: dashed;
  background: linear-gradient(145deg, #fbfcf8, #f3f0e5);
  box-shadow: none;
  opacity: 0.78;
}

.kd-priority-vacant:hover {
  transform: none;
  box-shadow: none;
}

.kd-slot-number {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #8a7451;
  font-size: 10px;
  font-weight: 900;
}

.kd-priority-card .featured-cover-badge {
  gap: 7px;
}

.kd-priority-card .featured-cover-badge b {
  color: #6c7c66;
}

.kd-priority-card .featured-cover-copy,
.kd-priority-vacant .featured-cover-copy {
  bottom: 50px;
}

.kd-ad-meta {
  position: absolute;
  z-index: 3;
  right: 48px;
  bottom: 12px;
  left: 16px;
  display: flex;
  flex-direction: column;
  color: #6d776b;
  font-size: 7px;
  line-height: 1.3;
}

.kd-ad-meta b {
  margin-top: 2px;
  color: #885c27;
  font-weight: 850;
}

.company-promotions {
  container-type: inline-size;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #d8e8e5;
  border-radius: 22px;
  background: linear-gradient(150deg, #ffffff, #f6fbfa);
}

.company-promotions-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.company-promotions-head small,
.promotion-advertiser > div small {
  color: #188e88;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
}

.company-promotions-head h3 {
  margin: 4px 0 6px;
  color: #173f50;
  font-size: 22px;
}

.company-promotions-head p {
  max-width: 620px;
  margin: 0;
  color: #637d86;
  font-size: 12px;
}

.company-promotions-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4d7;
  color: #8b671e;
  font-size: 9px;
  font-weight: 900;
}

.promotion-warning {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #efd399;
  border-radius: 13px;
  background: #fff8e8;
  color: #806224;
  font-size: 11px;
  font-weight: 800;
}

.promotion-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.promotion-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid #dce9e7;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.promotion-option.is-selected {
  border-color: #32b9b1;
  background: #edf9f7;
  box-shadow: 0 8px 22px rgba(32, 142, 136, 0.12);
}

.promotion-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.promotion-option input,
.promotion-offer input {
  accent-color: #23a7a0;
}

.promotion-option > input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.promotion-option span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.promotion-option strong,
.promotion-option b {
  color: #254f5d;
  font-size: 12px;
}

.promotion-option strong,
.promotion-option small {
  overflow-wrap: anywhere;
}

.promotion-option b {
  justify-self: end;
  white-space: nowrap;
}

.promotion-option small {
  margin-top: 4px;
  color: #788e95;
  font-size: 9px;
  line-height: 1.35;
}

.promotion-advertiser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 17px;
  background: #f0f7f6;
}

.promotion-advertiser > div,
.promotion-advertiser .wide {
  grid-column: 1 / -1;
}

.promotion-advertiser > div strong {
  display: block;
  margin-top: 3px;
  color: #315765;
}

.promotion-advertiser label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #66808a;
  font-size: 10px;
  font-weight: 800;
}

.promotion-advertiser input,
.promotion-advertiser select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid #d4e4e1;
  border-radius: 11px;
  background: #fff;
  color: #244c5b;
  padding: 0 11px;
}

.promotion-offer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  color: #5f7982;
  font-size: 10px;
  line-height: 1.45;
}

.promotion-offer input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.promotion-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dce9e7;
}

.promotion-checkout > span {
  display: flex;
  flex-direction: column;
}

.promotion-checkout small {
  color: #788f97;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.promotion-checkout strong {
  color: #173f50;
  font-size: 25px;
}

.promotion-checkout button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: #2787f5;
  color: #fff;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.promotion-checkout button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.promotion-history {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.promotion-history > strong {
  color: #315765;
  font-size: 12px;
}

.promotion-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 11px 12px;
  border: 1px solid #dce9e7;
  border-radius: 13px;
  background: #fff;
}

.promotion-history article > span {
  display: flex;
  flex-direction: column;
}

.promotion-history article > span:last-of-type {
  text-align: right;
}

.promotion-history b {
  color: #315765;
  font-size: 10px;
}

.promotion-history small,
.promotion-history code {
  color: #7c929a;
  font-size: 8px;
}

.promotion-history code,
.promotion-error {
  grid-column: 1 / -1;
}

.promotion-error {
  color: #a36a25 !important;
}

@media (max-width: 900px) {
  .kd-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .kd-priority-heading,
  .company-promotions-head,
  .promotion-checkout {
    align-items: stretch;
    flex-direction: column;
  }

  .kd-priority-grid,
  .promotion-advertiser {
    grid-template-columns: 1fr;
  }

  .company-promotions {
    padding: 16px;
  }

  .promotion-advertiser > div,
  .promotion-advertiser .wide {
    grid-column: 1;
  }

  .promotion-checkout button {
    width: 100%;
  }
}

@container (max-width: 1000px) {
  .promotion-options {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 620px) {
  .company-promotions-head,
  .promotion-checkout {
    align-items: stretch;
    flex-direction: column;
  }

  .company-promotions-head > span {
    align-self: flex-start;
  }

  .promotion-option {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
  }

  .promotion-option b {
    grid-column: 2;
    justify-self: start;
  }

  .promotion-advertiser {
    grid-template-columns: 1fr;
  }

  .promotion-advertiser > div,
  .promotion-advertiser .wide {
    grid-column: 1;
  }

  .promotion-checkout button {
    width: 100%;
  }
}

.company-catalog-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.company-catalog-picker > label {
  display: grid;
  gap: 7px;
}

.company-catalog-picker > label > span {
  color: #365d6b;
  font-size: 12px;
  font-weight: 900;
}

.company-catalog-picker input[type="search"] {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 2px solid #b9ddd8;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: #173f50;
  font: inherit;
}

.company-catalog-picker input[type="search"]:focus {
  border-color: #35bcb4;
  box-shadow: 0 0 0 4px rgba(53, 188, 180, 0.14);
}

.company-catalog-results {
  max-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d6e8e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 83, 91, 0.08);
  -webkit-overflow-scrolling: touch;
}

.company-catalog-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #e7f0ee;
  border-radius: 0;
  background: #fff;
  color: #173f50;
  text-align: left;
  cursor: pointer;
}

.company-catalog-option:last-child {
  border-bottom: 0;
}

.company-catalog-option:hover,
.company-catalog-option:focus-visible,
.company-catalog-option.is-selected {
  background: #eaf9f7;
  outline: 0;
}

.company-catalog-option strong {
  font-size: 15px;
  line-height: 1.25;
}

.company-catalog-option small,
.company-catalog-hint {
  color: #718b93;
  font-size: 12px;
  line-height: 1.35;
}

.company-catalog-empty {
  margin: 0;
  padding: 20px 15px;
  color: #718b93;
  text-align: center;
}

@media (max-width: 560px) {
  .company-catalog-results {
    max-height: 310px;
  }

  .company-catalog-picker input[type="search"] {
    min-height: 52px;
    font-size: 16px;
  }

  .company-catalog-option {
    padding: 14px;
  }
}

/* Parent account: keep every mobile panel inside the viewport. */
@media (max-width: 720px) {
  .member-backdrop {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .member-backdrop .account-dialog {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .member-backdrop .account-sidebar,
  .member-backdrop .account-content,
  .member-backdrop .account-sidebar nav,
  .member-backdrop .account-summary,
  .member-backdrop .account-summary button {
    min-width: 0;
    max-width: 100%;
  }

  .member-backdrop .account-sidebar {
    overflow: hidden;
  }

  .member-backdrop .account-sidebar nav {
    width: 100%;
    padding-bottom: 3px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .member-backdrop .account-content {
    width: 100%;
    overflow-x: hidden;
  }

  .member-backdrop .account-content > h2 {
    max-width: 100%;
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .member-backdrop .account-summary button {
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    padding: 17px 18px;
  }

  .member-backdrop .account-summary strong,
  .member-backdrop .account-summary span {
    width: 100%;
    text-align: left;
  }

  .member-backdrop .account-summary strong {
    font-size: 34px;
  }
}

/* kd-parent-account-mobile-v7 */
