/* React ATC success modal — tokens from rs-theme */
.rs-atc {
  --rsatc-a: var(--rs-a, #da532c);
  --rsatc-ad: var(--rs-ad, #b8431f);
  --rsatc-t: var(--rs-t, #2a2a2a);
  --rsatc-line: var(--rs-b, #e6e8eb);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}

.rs-atc__panel {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--rsatc-line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  color: var(--rsatc-t);
  font: inherit;
}

.rs-atc__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rs-atc__close:hover {
  color: var(--rsatc-t);
  background: #f3f4f6;
}

.rs-atc__title {
  margin: 0 !important;
  padding: 16px 44px 14px 16px !important;
  border-bottom: 1px solid var(--rsatc-line);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center;
  color: var(--rsatc-t);
}

.rs-atc__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.rs-atc__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.rs-atc__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rs-atc__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--rsatc-t);
}

.rs-atc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.rs-atc__btn {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.rs-atc__btn--primary {
  border: 0;
  background: var(--rsatc-a);
  color: #fff;
}

.rs-atc__btn--primary:hover {
  background: var(--rsatc-ad);
}

.rs-atc__btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--rsatc-t);
}

.rs-atc__btn--secondary:hover {
  background: #f9fafb;
}

body.rs-atc-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .rs-atc__actions {
    grid-template-columns: 1fr;
  }
}
