/* Account action tiles. Only presentation: existing confirmation handlers stay in place. */
.live-account .live-account-settings {
  border-color: #e5ded8;
  background: #faf8f6;
}

.live-account .live-account-setting-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.live-account .live-account-setting-actions > .text-button,
.live-account > .live-account-partner ~ button.text-button {
  --action-bg: #fff;
  --action-hover: #f0f3f4;
  --action-border: #d5dce0;
  --action-ink: #31434d;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--action-border);
  border-radius: 12px;
  background: var(--action-bg);
  color: var(--action-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  text-decoration: none;
  transition: background-color 140ms ease-out, box-shadow 140ms ease-out, scale 140ms ease-out;
}

.live-account .live-account-setting-actions > .text-button:first-child {
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.live-account .live-account-setting-actions > .text-button:nth-child(2) {
  --action-bg: #fff2e5;
  --action-hover: #ffe7d3;
  --action-border: #e9bc9d;
  --action-ink: #813811;
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3m-4 5v2'/%3E%3C/svg%3E");
}

.live-account .live-account-setting-actions > .text-button[data-danger] {
  --action-bg: #fff0ee;
  --action-hover: #ffe2de;
  --action-border: #e9b3ad;
  --action-ink: #9e2424;
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18m-13 0V4h8v2m3 0-1 14H6L5 6m5 4v6m4-6v6'/%3E%3C/svg%3E");
  grid-column: 1 / -1;
  margin-top: 4px;
}

.live-account > .live-account-partner ~ button.text-button {
  --action-bg: #edf0f2;
  --action-hover: #e2e8eb;
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H5v14h5m4-7h7m-3-3 3 3-3 3'/%3E%3C/svg%3E");
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  text-align: center;
}

.live-account .live-account-setting-actions > .text-button::before,
.live-account > .live-account-partner ~ button.text-button::before {
  content: '';
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--action-icon) center / contain no-repeat;
  mask: var(--action-icon) center / contain no-repeat;
}

@media (hover: hover) {
  .live-account .live-account-setting-actions > .text-button:not(:disabled):hover,
  .live-account > .live-account-partner ~ button.text-button:not(:disabled):hover {
    background: var(--action-hover);
    box-shadow: 0 2px 5px #38281a12;
  }
}

.live-account .live-account-setting-actions > .text-button:focus-visible,
.live-account > .live-account-partner ~ button.text-button:focus-visible,
.live-account-settings .live-account-form .account-delete-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.live-account .live-account-setting-actions > .text-button:not(:disabled):active,
.live-account > .live-account-partner ~ button.text-button:not(:disabled):active {
  background: var(--action-hover);
}

/* The delete-request step has two explanatory paragraphs; the code step has a destructive confirm button. */
.live-account-settings:has(> .live-account-form > p:first-child + p:not([role='alert'])),
.live-account-settings:has(.account-delete-button) {
  position: relative;
  isolation: isolate;
  border-color: #e4aaa4;
  background: #fff5f3;
}

.live-account-settings > .live-account-form > p:first-child:has(+ p:not([role='alert'])) {
  padding: 10px 12px;
  border-inline-start: 3px solid #b63333;
  border-radius: 4px 8px 8px 4px;
  background: #ffe6e2;
  color: #832020;
}

.live-account-settings .live-account-form .account-delete-button {
  border: 1px solid #9e2424;
  background: #9e2424;
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .live-account .live-account-setting-actions > .text-button:not(:disabled):active,
  .live-account > .live-account-partner ~ button.text-button:not(:disabled):active { scale: 0.96; }

  .live-account-settings:has(> .live-account-form > p:first-child + p:not([role='alert']))::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(ellipse at 12% 25%, #ec605d80 0%, #ec605d30 38%, transparent 68%);
    transform-origin: 12% 25%;
    animation: mobilius-delete-wave 380ms ease-out both;
    pointer-events: none;
  }

  @keyframes mobilius-delete-wave {
    0% { opacity: 0.9; transform: scale(0.18); }
    38% { opacity: 0.7; }
    100% { opacity: 0; transform: scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-account .live-account-setting-actions > .text-button,
  .live-account > .live-account-partner ~ button.text-button { transition: none; }
}

@media (max-width: 420px) {
  .live-account .live-account-setting-actions { grid-template-columns: minmax(0, 1fr); }
}
