/*
 * Two-piece oak shelf: a low rear support and a thin display base.
 * Decorative layers only. Keep the first-row sizing and object positions intact.
 * The existing oak artwork supplies the grain; no new bitmap is required.
 */
.coastal-workspace.shelf-window-widget .cabinet-display {
  background: none;
  border: 0;
  border-image: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

/* The rear support sits behind both objects, rather than framing the widget. */
.coastal-workspace.shelf-window-widget .cabinet-display::before {
  content: "";
  display: block;
  position: absolute;
  left: 9px;
  right: 9px;
  top: auto;
  bottom: 8px;
  height: 37px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid #b69a77;
  border-top: 2px solid #ebd4b4;
  border-bottom-color: #9a7956;
  border-radius: 2px 2px 1px 1px;
  background-color: #cbb090;
  background-image:
    linear-gradient(180deg, #ffefd829 0%, #8d623009 55%, #64422230 100%),
    url("/assets/oak-display-shelf.png");
  background-size: 100% 100%, auto 300px;
  background-position: center, center -240px;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 #fff5,
    inset 0 -2px 3px #7b573229,
    0 2px 1px #84644424,
    0 3px 6px #4b382012;
}

/* Do not restore the old cabinet side or top surround. */
.coastal-workspace.shelf-window-widget .cabinet-display::after {
  content: none;
  display: none;
}

.coastal-workspace.shelf-window-widget.cl-clock .clock-brand-line {
  z-index: 1;
  overflow: visible;
}

/* One original oak board includes the visible top plane and front thickness. */
.coastal-workspace.shelf-window-widget.cl-clock .clock-brand-line::before {
  content: none;
  display: none;
}

.coastal-workspace.shelf-window-widget.cl-clock .clock-brand-line::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto -9px -9px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: url("/assets/oak-display-shelf.png") center bottom / 100% auto no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 2px 1px #61482c14);
  clip-path: none;
  z-index: 0;
  pointer-events: none;
}

/* The year display, time and logo remain in front of the rear support. */
.coastal-workspace.shelf-window-widget .cabinet-display > .cl-clock-date {
  position: relative;
  z-index: 2;
}

@container (max-width: 315px) {
  .coastal-workspace.shelf-window-widget .cabinet-display::before {
    height: 31px;
    bottom: 7px;
    background-size: 100% 100%, auto 300px;
    background-position: center, center -247px;
  }

  .coastal-workspace.shelf-window-widget.cl-clock .clock-brand-line::after {
    inset: auto -9px -8px;
    height: 26px;
  }
}
