/* LK24H_STORE_DETAIL_CUSTOMER_ACTIONS_OWNER_TOOLS_SHEET_R1 */

.hero-actions--customer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-actions--customer > .store-tools-trigger {
  border-color: rgba(148, 163, 184, .28);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

.hero-actions--customer > .store-tools-trigger i {
  background: linear-gradient(135deg, rgba(71,85,105,.13), rgba(248,250,252,.98));
  color: #475569;
}

.store-tools-sheet[hidden] {
  display: none !important;
}

.store-tools-sheet {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
}

.store-tools-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .18s ease;
}

.store-tools-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .24);
  transform: translateY(24px) scale(.985);
  opacity: 0;
  transition: transform .2s ease, opacity .18s ease;
  outline: none;
}

.store-tools-sheet.is-open .store-tools-sheet__backdrop {
  opacity: 1;
}

.store-tools-sheet.is-open .store-tools-sheet__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.store-tools-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.store-tools-sheet__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: rgba(255,255,255,.97);
}

.store-tools-sheet__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-tools-sheet__heading-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff1f1;
  color: #c62828;
  font-size: 14px;
}

.store-tools-sheet__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.store-tools-sheet__heading p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.store-tools-sheet__close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 15px;
}

.store-tools-sheet__close:active {
  transform: scale(.97);
}

.store-tools-sheet__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
}

.store-tools-group + .store-tools-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.store-tools-group h3 {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.store-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.store-tools-grid > .store-tool-item,
.store-tools-grid > a.store-tool-item,
.store-tools-grid > button.store-tool-item {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  color: #0f172a;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.store-tools-grid > .store-tool-item::before,
.store-tools-grid > a.store-tool-item::before,
.store-tools-grid > button.store-tool-item::before {
  display: none !important;
}

.store-tools-grid > .store-tool-item:hover,
.store-tools-grid > a.store-tool-item:hover,
.store-tools-grid > button.store-tool-item:hover {
  transform: none;
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
}

.store-tools-grid > .store-tool-item:active,
.store-tools-grid > a.store-tool-item:active,
.store-tools-grid > button.store-tool-item:active {
  transform: scale(.985);
}

.store-tools-grid > .store-tool-item i,
.store-tools-grid > a.store-tool-item i,
.store-tools-grid > button.store-tool-item i {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  box-shadow: none;
  font-size: 12px;
}

.store-tools-grid > .store-tool-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-tools-grid > .store-tool-item--primary,
.store-tools-grid > a.store-tool-item--primary,
.store-tools-grid > button.store-tool-item--primary {
  border-color: #ef4444;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

.store-tools-grid > .store-tool-item--primary:hover,
.store-tools-grid > a.store-tool-item--primary:hover,
.store-tools-grid > button.store-tool-item--primary:hover {
  border-color: #dc2626;
  background: linear-gradient(135deg, #c81e1e, #e53e3e);
}

.store-tools-grid > .store-tool-item--primary i,
.store-tools-grid > a.store-tool-item--primary i,
.store-tools-grid > button.store-tool-item--primary i {
  background: rgba(255,255,255,.17);
  color: #fff;
}

.store-tool-select {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
}

.store-tool-select__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 12px;
}

.store-tool-select__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-tool-select__label {
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.store-tool-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  outline: none;
}

.store-tool-select__chevron {
  color: #94a3b8;
  font-size: 10px;
}

.store-tools-next-plan {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.store-tools-next-plan > i {
  margin-top: 2px;
  color: #64748b;
}

.store-tools-sheet button:focus-visible,
.store-tools-sheet a:focus-visible,
.store-tools-sheet select:focus-visible,
.store-tools-trigger:focus-visible {
  outline: 3px solid rgba(239,68,68,.22);
  outline-offset: 2px;
}

@media (min-width: 860px) {
  .hero-actions--customer {
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  }

  .store-tools-sheet {
    align-items: center;
  }

  .store-tools-sheet__panel {
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .store-tools-sheet {
    padding: 0;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .store-tools-sheet__panel {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .store-tools-sheet__header {
    min-height: 62px;
    padding: 10px 12px;
  }

  .store-tools-sheet__body {
    padding: 10px 12px max(18px, env(safe-area-inset-bottom));
  }

  .store-tools-grid {
    gap: 7px;
  }

  .store-tools-grid > .store-tool-item,
  .store-tools-grid > a.store-tool-item,
  .store-tools-grid > button.store-tool-item {
    min-height: 43px;
    padding: 8px 9px;
    border-radius: 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 350px) {
  .store-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-tools-sheet__backdrop,
  .store-tools-sheet__panel,
  .store-tools-grid > .store-tool-item {
    transition: none !important;
  }
}
