.tg-card {
  display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem;min-width:0;
  color:#321b23;font:1rem/1.6 var(--body,system-ui);
}
.tg-card .tg-intro,.tg-card .tg-status {margin:0;color:#605553;overflow-wrap:anywhere;}
.tg-card .tg-status:empty {display:none;}
.tg-card .tg-buy {color:#542c3d;text-decoration:underline;text-underline-offset:.22em;font-weight:650;}
.tg-card .tg-label {display:grid;gap:.32rem;font-size:.92rem;font-weight:650;}
.tg-card .tg-input {
  display:block;box-sizing:border-box;min-width:0;width:100%;
  min-height:48px;padding:.56rem .8rem;resize:vertical;
  background:#fffdf9;color:#321b23;border:1px solid #a99083;border-radius:.65rem;
  font:400 max(16px,1rem)/1.6 var(--body,system-ui);
}
.tg-preview {
  display:block;width:min(100%,26rem);height:auto;margin:.2rem auto;
  border-radius:.42rem;box-shadow:0 2px 6px #321b2326,0 6px 20px #321b2317;
}
.tg-actions {display:flex;flex-wrap:wrap;gap:.5rem;}
.tg-card .tg-action {
  display:flex;align-items:center;justify-content:center;
  flex:1 1 10rem;min-width:0;min-height:48px;padding:.55rem .72rem;
  color:#542c3d;background:#fffdf9;border:1px solid #a99083;border-radius:.65rem;
  font:650 .95rem/1.5 var(--body,system-ui);text-align:center;white-space:normal;
  overflow-wrap:anywhere;text-decoration:none;cursor:pointer;
}
.tg-card button.tg-action:first-child {flex-basis:100%;}
.tg-card .tg-action:first-child {background:#542c3d;color:#fffdf9;border-color:#542c3d;}
.tg-card .tg-action:hover:not(:disabled) {background:#321b23;color:white;}
.tg-card .tg-action:disabled {opacity:.6;cursor:default;}
.tl-request {
  color: var(--ink, #2c2224);
  font-family: var(--body, system-ui);
  min-inline-size: 0;
}
.tl-choices, .tl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.tl-choices {
  margin-block-end: 1rem;
}
.tl-group {
  flex: 1 1 13rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.tl-caption {
  display: block;
  padding: 0;
  margin-block-end: .35rem;
  font-size: .94rem;
  font-weight: 600;
  color: var(--wine, #542c3d);
}
.tl-options {
  display: flex;
  gap: .18rem;
  padding: .18rem;
  border-radius: .65rem;
  background: var(--paper-dark, #ede5dc);
}
.tl-option {
  flex: 1;
  position: relative;
  cursor: pointer;
  min-inline-size: 0;
}
.tl-option input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.tl-option span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 44px;
  font-size: .94rem;
  border: 1px solid transparent;
  border-radius: .49rem;
  padding: .22rem .35rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.tl-option input:checked + span {
  background: #fffdfa;
  border-color: #967783;
  box-shadow: 0 1px 3px #321b2317;
  color: var(--wine, #542c3d);
  font-weight: 700;
}
.tl-option input:focus-visible + span {
  outline: 3px solid #ad704b;
  outline-offset: 1px;
}
.tl-message {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 9rem;
  block-size: clamp(12rem, 30vh, 21rem);
  padding: .8rem;
  border: 1px solid #a6968d;
  border-radius: .65rem;
  background: #fffdfa;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: inherit;
  resize: vertical;
}
.tl-message[lang="ar"], .tl-option [lang="ar"] {
  font-family: Arabic Sans, Arial, sans-serif;
}
.tl-message[lang="en"], .tl-option [lang="en"] {
  font-family: system-ui, Arabic Sans, sans-serif;
}
.tl-actions {
  gap: .55rem;
  margin-block: 1rem .65rem;
}
.tl-button {
  display: grid;
  place-items: center;
  flex: 1 1 9.5rem;
  min-inline-size: 0;
  min-height: 48px;
  padding: .6rem .45rem;
  border: 1px solid var(--wine, #542c3d);
  border-radius: .65rem;
  color: var(--wine, #542c3d);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.tl-primary {
  color: white;
  background: var(--wine, #542c3d);
}
.tl-button:hover {
  color: white;
  background: var(--deep-wine, #321b23);
}
.tl-button:disabled, .tl-button[aria-disabled=true] {
  opacity: .55;
  cursor: default;
}
.tl-help, .tl-status {
  color: var(--muted, #605553);
  font-size: .94rem;
}
.tl-status:not(:empty) {
  margin-block-start: .45rem;
  color: var(--wine, #542c3d);
  font-weight: 600;
}
@media (forced-colors: active) {
  .tl-option input:checked + span { border-color: Highlight; outline: 2px solid Highlight; }
}
