:root {
  --rn-bg: rgba(255, 244, 224, .72);
  --rn-border: rgba(217, 140, 30, .32);
  --rn-shadow: 0 8px 24px rgba(120, 76, 8, .10);
  --rn-inset: inset 0 1px 0 rgba(255, 255, 255, .7);
  --rn-title: #7a4a05;
  --rn-text: #5b4a2e;
  --rn-chip-bg: rgba(217, 140, 30, .14);
  --rn-chip-text: #8a5200;
  --rn-ico-bg: linear-gradient(135deg, #ffd48a, #f5a43a);
  --rn-ico-fg: #5a3500;
}

html[data-bs-theme="dark"],
html[data-theme="dark"] {
  --rn-bg: rgba(52, 40, 22, .62);
  --rn-border: rgba(255, 190, 90, .26);
  --rn-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --rn-inset: inset 0 1px 0 rgba(255, 255, 255, .08);
  --rn-title: #ffd9a0;
  --rn-text: #e8d6b8;
  --rn-chip-bg: rgba(255, 190, 90, .16);
  --rn-chip-text: #ffd9a0;
  --rn-ico-bg: linear-gradient(135deg, #8a5a1c, #c98a2e);
  --rn-ico-fg: #fff3de;
}

.rest-notice-wrap {
  margin-top: .5rem;
  margin-bottom: .25rem;
}

.rest-notice {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  border-radius: 1.25rem;
  background: var(--rn-bg);
  border: 1px solid var(--rn-border);
  box-shadow: var(--rn-shadow), var(--rn-inset);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rest-notice { background: #fff4e0; }
  html[data-bs-theme="dark"] .rest-notice,
  html[data-theme="dark"] .rest-notice { background: #342816; }
}

.rest-notice__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--rn-ico-bg);
  color: var(--rn-ico-fg);
  font-size: 1.1rem;
}

.rest-notice__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.rest-notice__title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rn-title);
}

.rest-notice__text {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--rn-text);
  overflow-wrap: anywhere;
}

.rest-notice__resume {
  flex: 0 0 auto;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--rn-chip-bg);
  color: var(--rn-chip-text);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .rest-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "ico title chip"
      "ico text text";
    align-items: center;
    column-gap: .7rem;
    row-gap: .1rem;
    padding: .65rem .85rem;
    border-radius: 1.1rem;
  }
  .rest-notice__body { display: contents; }
  .rest-notice__ico {
    grid-area: ico;
    align-self: start;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .rest-notice__title { grid-area: title; }
  .rest-notice__text { grid-area: text; font-size: .8rem; }
  .rest-notice__resume {
    grid-area: chip;
    padding: .2rem .6rem;
    font-size: .72rem;
    white-space: normal;
    text-align: right;
  }
}

html[data-shop-rest] #submit:disabled,
html[data-shop-rest] #prSubmit:disabled,
html[data-shop-rest] [data-bp-sticky-forward="submit"]:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: saturate(.6);
}
