/* 弹窗外壳：圆角与轻阴影（与 Pisell PC Modal 结构对齐） */
.pisell-res-booking-detail-modal-wrap {
  .pisell-lowcode-modal-content {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  }

  .pisell-lowcode-modal-header {
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
  }

  .pisell-lowcode-modal-title {
    width: 100%;
    padding-right: 36px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.88);
  }

  .pisell-lowcode-modal-body {
    padding: 0 20px 0;
  }

  /* 压过 ReservationFloorRoomCard.less 里 .pisell-lowcode-modal-body .pisell-res-floor-room-card 的大 margin */

  .pisell-res-booking-detail-modal__room-card-slot .pisell-res-floor-room-card {
    margin: 0;

    .rc {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }

}

.pisell-res-booking-detail-modal {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 6px;

  &__body {
    padding: 0 0 10px;
    display: flex;
    flex-direction: column;
  }

  /* RoomCard + 操作格 + 商品列表 */

  &__booking-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  /**
   * 内嵌 RoomCard 与平面图共用 ReservationFloorRoomCard.less；其中 .rc / .rc:hover 带卡片阴影。
   * 弹窗内为静态展示，去掉默认阴影与 hover 加深（需与 .pisell-res-floor-room-card 同节点以提高优先级）。
   */

  &__room-card-slot {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    &.pisell-res-floor-room-card {
      .rc {
        box-shadow: none;
      }

      .rc:hover {
        box-shadow: none;
        transform: none;
      }

      .rc.rc--floor-detail-open {
        box-shadow: inset 0 0 0 2px rgba(24, 144, 255, 0.92);
      }

      .rc.rc--floor-detail-open:hover {
        box-shadow: inset 0 0 0 2px rgba(24, 144, 255, 0.92);
        transform: none;
      }
    }
  }

  /* 2×2 独立按钮块：精细指针用 hover；触控以按压态为主，避免 hover 粘滞 */

  &__action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
    background: #f0f1f4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
  }

  &__action-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 10px 6px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: rgba(0, 0, 0, 0.78);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease,
    color 0.15s ease;

    /* 按压：鼠标与触控共用，内阴影 + 略缩表示按下 */

    // &:active {
    //   transform: scale(0.96);
    //   box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08),
    //   0 1px 1px rgba(0, 0, 0, 0.04);
    //   background: rgba(0, 0, 0, 0.08);
    //   border-color: rgba(0, 0, 0, 0.2);
    //   transition-duration: 0.05s;
    // }

    // &:focus-visible {
    //   outline: 2px solid rgba(24, 144, 255, 0.55);
    //   outline-offset: 2px;
    // }

    // @media (hover: hover) and (pointer: fine) {
    //   &:hover:not(:active) {
    //     border-color: rgba(0, 0, 0, 0.2);
    //     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    //     background: #fff;
    //     color: rgba(0, 0, 0, 0.88);
    //   }
    // }
  }

  &__action-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.48);
    transition: color 0.15s ease;
  }

  &__action-cell:active &__action-icon {
    color: rgba(0, 0, 0, 0.52);
  }

  &__action-label {
    flex: 0 1 auto;
    max-width: 100%;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.58);
    transition: color 0.15s ease;
  }

  &__action-cell:active &__action-label {
    color: rgba(0, 0, 0, 0.68);
  }

  @media (hover: hover) and (pointer: fine) {
    &__action-cell:hover:not(:active) &__action-icon {
      color: rgba(0, 0, 0, 0.62);
    }

    &__action-cell:hover:not(:active) &__action-label {
      color: rgba(0, 0, 0, 0.78);
    }
  }

  &__products-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 10px;
    background: #fff;
  }

  &__products-summary {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.75);
    //background: #f6f7f9;
    border-radius: 10px;
    //border: 1px solid rgba(0, 0, 0, 0.06);
  }

  &__products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  &__products-empty {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
  }

  &__product-card-slot {
    border-radius: 8px;
    overflow: hidden;

    .pisell-lowcode-product-card-wrap {
      margin-bottom: 0;
    }

    /* 收敛 ProductCard 内边距与标题/底部金额间距（仅本弹窗） */

    .pisell-lowcode-product-card .pisell-cardPro-content {
      padding: 6px 12px !important;
    }

    .pisell-lowcode-product-card-image::before {
      width: 4px;
    }

    .pisell-lowcode-product-title {
      font-size: 14px !important;
      line-height: 1.35 !important;
      font-weight: 600;
    }

    .pisell-lowcode-product-title-variant {
      font-size: 12px !important;
      line-height: 1.35 !important;
      margin-top: 1px !important;
    }

    .pisell-lowcode-packages-product-footer {
      font-size: 13px !important;
      line-height: 1.35 !important;
      margin-top: 2px !important;
    }

    .pisell-lowcode-packages-product-hide-divider-footer {
      margin-top: 4px !important;
    }
  }

  &__see-all {
    align-self: center;
    margin-top: 2px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    text-decoration: underline;
    text-underline-offset: 3px;

    &:hover {
      color: #0284c7;
    }
  }
}
