.storefront-support-footer {
  max-inline-size: 79rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem 5rem;
  color: #18362d;
}

.storefront-support-footer h2 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}

.storefront-support-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.storefront-support-footer a[href^="mailto:"] {
  text-decoration: none;
}

.merchant-campaign-countdown {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .55rem;
  margin-block-end: .45rem;
  padding: .2rem .55rem;
  border: 1px solid #c5d6c3;
  border-radius: .4rem;
  background: #f1f7eb;
  color: #184939;
  font-size: .82rem;
  line-height: 1.6;
}

.merchant-campaign-countdown [role="timer"] {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.storefront-support-footer a,
.storefront-support-answer + a {
  color: #176052;
  overflow-wrap: anywhere;
  text-underline-offset: .2em;
}

.storefront-support-launcher,
.storefront-support-dialog {
  --support-end: max(1.25rem, env(safe-area-inset-right));
  --support-bottom: max(1.25rem, env(safe-area-inset-bottom));
  --support-surface: #f7faf7;
  --support-ink: #153631;
}

.storefront-support-launcher:dir(rtl),
.storefront-support-dialog:dir(rtl) {
  --support-end: max(1.25rem, env(safe-area-inset-left));
}

.storefront-support-launcher,
.storefront-support-submit {
  min-block-size: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid #155648;
  border-radius: .75rem;
  background: #155648;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.storefront-support-launcher {
  position: fixed;
  z-index: 20;
  inset-inline-end: var(--support-end);
  inset-block-end: var(--support-bottom);
  display: flex;
  align-items: center;
  gap: .54rem;
  min-block-size: 3.125rem;
  padding-inline: .85rem 1.1rem;
  border-color: #216e5d;
  border-radius: 999px;
  background: linear-gradient(130deg, #0c493d, #176e5a);
  box-shadow: 0 6px 22px #0d3d3650;
}

.storefront-support-launcher:hover {
  background: #0c493d;
}

.storefront-support-launcher .icon {
  inline-size: 1.38rem;
  block-size: 1.38rem;
}

.storefront-support-dialog {
  position: fixed;
  inset: auto;
  inset-inline-end: var(--support-end);
  inset-block-end: var(--support-bottom);
  inline-size: min(27rem, calc(100% - 2.5rem));
  max-inline-size: none;
  max-block-size: calc(100% - 2.5rem);
  max-block-size: calc(100dvh - 2.5rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfddd5;
  border-radius: 1.35rem;
  background: var(--support-surface);
  color: var(--support-ink);
  box-shadow: 0 18px 70px #122f3540, 0 4px 15px #122f3517;
}

.storefront-support-dialog[open] {
  display: flex;
  flex-direction: column;
}

.storefront-support-dialog::backdrop {
  background: #10272126;
  backdrop-filter: none;
}

.storefront-support-bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  flex: none;
  gap: .75rem;
  padding: 1.25rem 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #103c33, #176657);
  color: #fff;
}

.storefront-support-bar::after {
  position: absolute;
  z-index: -1;
  inset-block-start: -8rem;
  inset-inline-end: -4rem;
  inline-size: 14rem;
  block-size: 14rem;
  border: 1px solid #d4f3dc40;
  border-radius: 50%;
  box-shadow: 0 0 0 1.2rem #d4f3dc17, 0 0 0 2.4rem #d4f3dc0c;
  pointer-events: none;
  content: '';
}

.storefront-support-mark {
  flex: none;
  inline-size: 2.875rem;
  block-size: 2.875rem;
  padding: .2rem;
  border-radius: .85rem;
  background: #f5faf5;
  object-fit: contain;
}

.storefront-support-identity {
  flex: 1;
  min-inline-size: 0;
}

.storefront-support-caption {
  margin: 0 0 .24rem;
  color: #c8e3d1;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .14em;
}

.storefront-support-bar h2 {
  margin: 0;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.storefront-support-close {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e1f2e443;
  border-radius: 50%;
  background: #ffffff1a;
  color: white;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.storefront-support-close:hover {
  background: #ffffff33;
}

.storefront-support-body {
  display: grid;
  min-block-size: 0;
  gap: 1rem;
  padding: 1.1rem 1rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.storefront-support-section-title {
  margin: 0 0 .6rem;
  color: var(--support-ink);
  font-size: .9rem;
  font-weight: 750;
}

.storefront-support-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .5rem;
}

.storefront-support-topic,
.storefront-support-human {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-inline-size: 0;
  padding: .6rem;
  color: var(--support-ink);
  border: 1px solid #dbe6de;
  border-radius: .8rem;
  background: white;
  text-decoration: none;
}

.storefront-support-topic {
  min-block-size: 4.05rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

.storefront-support-topic:hover {
  background: #f1f8f3;
  border-color: #87ae98;
}

.storefront-support-topic-icon {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 1.85rem;
  block-size: 1.85rem;
  border-radius: .52rem;
  background: #e3f2e9;
  color: #16674f;
}

.storefront-support-topic:nth-child(2) .storefront-support-topic-icon {
  background: #edf0f9;
  color: #405a8a;
}
.storefront-support-topic:nth-child(3) .storefront-support-topic-icon {
  background: #fbf0e1;
  color: #8b5227;
}
.storefront-support-topic:nth-child(4) .storefront-support-topic-icon {
  background: #efebf7;
  color: #674893;
}

.storefront-support-topic .icon,
.storefront-support-actions .icon {
  flex: none;
  inline-size: 1.02rem;
  block-size: 1.02rem;
}

.storefront-support-topic-label,
.storefront-support-human-address {
  flex: 1;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.storefront-support-topic > .icon,
.storefront-support-actions a > .icon:last-child {
  color: #59786a;
}

.storefront-support-topic > .icon:dir(rtl),
.storefront-support-actions a > .icon:last-child:dir(rtl) {
  transform: scaleX(-1);
}

.storefront-support-actions {
  display: grid;
  gap: .45rem;
  padding-block-start: .85rem;
  border-block-start: 1px solid #dbe6de;
}

.storefront-support-human {
  gap: .7rem;
  min-block-size: 2.75rem;
  padding: .7rem .8rem;
  border-color: #cbe1d2;
  background: #eaf5ed;
}

.storefront-support-human:hover {
  border-color: #77a78f;
  background: #dff0e5;
}

.storefront-support-human-address {
  font-size: .91rem;
}

.storefront-support-form {
  display: grid;
  gap: .45rem;
}

.storefront-support-question-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem .75rem;
}

.storefront-support-question-heading label {
  font-size: 1rem;
  font-weight: 750;
}

.storefront-support-automatic {
  color: #425b51;
  font-size: .78rem;
}

.storefront-support-form textarea {
  inline-size: 100%;
  min-block-size: 4rem;
  resize: vertical;
  border: 1px solid #809e91;
  border-radius: .6rem;
  padding: .6rem .7rem;
  background: white;
  color: inherit;
  font: inherit;
}

.storefront-support-privacy {
  margin: 0;
  color: #425b51;
  font-size: .82rem;
}

.storefront-support-submit {
  justify-self: start;
}

.storefront-support-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.storefront-support-answer {
  margin: 0;
  padding: .65rem .75rem;
  border-radius: .5rem;
  background: #e6f2ea;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.storefront-support-dialog [hidden],
.storefront-support-footer [hidden],
.storefront-inquiry-inbox [hidden],
.storefront-inquiry-contact [hidden] {
  display: none;
}

.storefront-support-dialog :focus-visible,
.storefront-support-launcher:focus-visible,
.storefront-support-footer :focus-visible {
  outline: 3px solid #aa7524;
  outline-offset: 2px;
}

.storefront-support-close:focus-visible {
  outline-color: #f5c77e;
}

.storefront-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.storefront-inquiry-inbox .storefront-inquiry-actions {
  margin-block-end: .9rem;
}

.storefront-inquiry-inbox [aria-pressed=true] {
  border-color: #176052;
  background: #edf6ef;
  color: #153631;
}

.storefront-inquiry-content:not(:empty) {
  margin-block-start: .55rem;
}

.storefront-inquiry-form,
.storefront-inquiry-field,
.storefront-inquiry-list {
  display: grid;
  gap: .5rem;
}

.storefront-inquiry-form > .btn {
  justify-self: start;
}

.storefront-inquiry-field input,
.storefront-inquiry-field textarea {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  padding: .55rem .7rem;
  border: 1px solid #809e91;
  border-radius: .55rem;
  background: white;
  color: #153631;
  font: inherit;
}

.storefront-inquiry-field textarea {
  resize: vertical;
}

.storefront-inquiry-item {
  display: grid;
  min-inline-size: 0;
  gap: .35rem;
  padding: .75rem;
  border: 1px solid #dbe6de;
  border-radius: .65rem;
  background: white;
}

.storefront-inquiry-item .storefront-inquiry-form {
  margin-block-start: .5rem;
}

.storefront-inquiry-meta,
.storefront-inquiry-item small {
  color: #425b51;
}

.storefront-inquiry-text,
.storefront-inquiry-status {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.storefront-inquiry-status:empty {
  display: none;
}

.storefront-inquiry-mail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #dce8e0;
  border-radius: .65rem;
}

.storefront-inquiry-mail-list:empty {
  display: none;
}

.storefront-inquiry-mail-list > li + li {
  border-block-start: 1px solid #e4ede6;
}

.storefront-inquiry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: .25rem .9rem;
  inline-size: 100%;
  min-block-size: 42px;
  padding: .5rem .85rem;
  border: 0;
  border-radius: .55rem;
  background: #fff;
  color: #4f665d;
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.storefront-inquiry-row[data-read="false"] {
  background: #f5f9f4;
  color: #18201b;
  font-weight: 740;
}

.storefront-inquiry-row:hover {
  background: #eaf4ec;
}

.storefront-inquiry-row:focus-visible {
  outline: 2px solid #176052;
  outline-offset: -2px;
}

.storefront-inquiry-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-inquiry-row-status,
.storefront-inquiry-row-time {
  font-size: .78rem;
  white-space: nowrap;
}

.storefront-inquiry-row-status {
  justify-self: start;
  padding: .08rem .45rem;
  border-radius: 1rem;
  background: #edf2ed;
}

.storefront-inquiry-row[data-read="false"] .storefront-inquiry-row-status {
  background: #dcece0;
}

.storefront-inquiry-row-time {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.storefront-inquiry-mail-list + .storefront-inquiry-status:not(:empty),
.storefront-inquiry-mail-list ~ .btn {
  margin-block-start: .6rem;
}

.storefront-inquiry-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-block-end: .75rem;
}

.storefront-inquiry-detail-header h2 {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 580px) {
  .storefront-inquiry-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .storefront-inquiry-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 35rem) {
  .storefront-support-launcher,
  .storefront-support-dialog {
    --support-end: max(.65rem, env(safe-area-inset-right));
    --support-bottom: max(.65rem, env(safe-area-inset-bottom));
  }
  .storefront-support-launcher:dir(rtl),
  .storefront-support-dialog:dir(rtl) {
    --support-end: max(.65rem, env(safe-area-inset-left));
  }
  .storefront-support-dialog {
    inline-size: calc(100% - var(--support-end) - .65rem);
    max-block-size: calc(100dvh - var(--support-bottom) - .65rem);
  }
}

@media (max-width: 22.5rem) {
  .storefront-support-topic {
    padding-inline: .45rem;
  }
  .storefront-support-topic > .icon {
    display: none;
  }
}
