:root {
  --tebba-purple: #64216f;
  --tebba-purple-dark: #44204c;
  --tebba-purple-soft: #f7f1f8;
  --tebba-border: #e8dce9;
  --tebba-text: #3f2a42;
  --tebba-muted: #7c717e;
  --tebba-green: #2ca56b;
}

/* Výrazné tlačítko v informační části patičky e-shopu. */
footer a[href*="extension/module/tebba_withdrawal"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 20px !important;
  border: 1px solid #64216f !important;
  border-radius: 999px !important;
  background: #64216f !important;
  box-shadow: 0 8px 20px rgba(100, 33, 111, .22);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

footer a[href*="extension/module/tebba_withdrawal"]:hover,
footer a[href*="extension/module/tebba_withdrawal"]:focus {
  border-color: #4c1556 !important;
  background: #4c1556 !important;
  box-shadow: 0 10px 24px rgba(100, 33, 111, .30);
  color: #fff !important;
  transform: translateY(-1px);
}

.tebba-withdrawal-page {
  color: var(--tebba-text);
  padding-bottom: 64px;
}

.tebba-withdrawal-page #content {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.tebba-withdrawal-card {
  max-width: 880px;
  margin: 18px auto 40px;
  padding: 52px 64px 58px;
  background: #fff;
  border: 1px solid rgba(100, 33, 111, .10);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(63, 42, 66, .10);
}

.tebba-withdrawal-header {
  margin-bottom: 42px;
  text-align: center;
}

.tebba-withdrawal-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--tebba-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.tebba-withdrawal-card h1 {
  margin: 0 0 16px;
  color: var(--tebba-purple-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
}

.tebba-withdrawal-lead {
  max-width: 650px;
  margin: 0 auto 10px;
  color: var(--tebba-muted);
  font-size: 17px;
  line-height: 1.65;
}

.tebba-withdrawal-note {
  margin: 16px 0 0;
  color: var(--tebba-muted);
  font-size: 14px;
}

.tebba-withdrawal-note strong { color: var(--tebba-purple); }

.tebba-withdrawal-card fieldset {
  min-width: 0;
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.tebba-withdrawal-card legend {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--tebba-border);
  color: var(--tebba-purple-dark);
  font-size: 19px;
  font-weight: 700;
}

.tebba-withdrawal-card legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--tebba-purple-soft);
  color: var(--tebba-purple);
  font-size: 14px;
}

.tebba-withdrawal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tebba-field-full { grid-column: 1 / -1; }

.tebba-field label,
.tebba-label {
  display: block;
  margin: 0 0 8px;
  color: var(--tebba-text);
  font-size: 14px;
  font-weight: 700;
}

.tebba-field label small { color: var(--tebba-muted); font-weight: 400; }
.tebba-field em,
.tebba-label em { color: var(--tebba-purple); font-style: normal; }

.tebba-field input[type='text'],
.tebba-field input[type='email'],
.tebba-field input[type='date'],
.tebba-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--tebba-border);
  border-radius: 12px;
  background: #fff;
  color: var(--tebba-text);
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.tebba-field textarea { resize: vertical; }

.tebba-field input:focus,
.tebba-field textarea:focus {
  border-color: var(--tebba-purple);
  box-shadow: 0 0 0 4px rgba(100, 33, 111, .09);
}

.tebba-field.has-error input,
.tebba-field.has-error textarea { border-color: #b64646; }

.tebba-error {
  display: block;
  margin-top: 7px;
  color: #a93535;
  font-size: 13px;
}

.tebba-help {
  display: block;
  margin-top: 7px;
  color: var(--tebba-muted);
  font-size: 13px;
}

.tebba-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tebba-radio { margin: 0 !important; cursor: pointer; }
.tebba-radio input { position: absolute; opacity: 0; }
.tebba-radio > span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 15px;
  border: 1px solid var(--tebba-border);
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  transition: .2s;
}

.tebba-radio i {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #bba9bd;
  border-radius: 50%;
}

.tebba-radio input:checked + span {
  border-color: var(--tebba-purple);
  background: var(--tebba-purple-soft);
  color: var(--tebba-purple-dark);
}

.tebba-radio input:checked + span i { border-color: var(--tebba-purple); }
.tebba-radio input:checked + span i:after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tebba-purple);
  content: '';
}

.tebba-items-field { display: none; }
.tebba-items-field.is-visible { display: block; }

.tebba-withdrawal-declaration {
  margin: 8px 0 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--tebba-purple-soft);
}

.tebba-withdrawal-declaration p {
  margin: 0 0 7px;
  color: var(--tebba-purple-dark);
  font-weight: 700;
}

.tebba-withdrawal-declaration small {
  color: var(--tebba-muted);
  line-height: 1.5;
}

.tebba-withdrawal-submit {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #742783, #561561);
  box-shadow: 0 12px 26px rgba(100, 33, 111, .22);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.tebba-withdrawal-submit:hover,
.tebba-withdrawal-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(100, 33, 111, .28);
}

.tebba-withdrawal-alert {
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid #edcccc;
  border-radius: 12px;
  background: #fff5f5;
  color: #8f3030;
}

.tebba-withdrawal-alert-warning {
  margin-top: 24px;
  border-color: #ead69f;
  background: #fff9e8;
  color: #775a13;
}

.tebba-withdrawal-company {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tebba-withdrawal-success { text-align: center; }
.tebba-withdrawal-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  border: 2px solid var(--tebba-green);
  border-radius: 50%;
  color: var(--tebba-green);
  font-size: 38px;
  font-weight: 400;
}

.tebba-withdrawal-receipt {
  max-width: 580px;
  margin: 32px auto;
  overflow: hidden;
  border: 1px solid var(--tebba-border);
  border-radius: 16px;
  text-align: left;
}

.tebba-withdrawal-receipt > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tebba-border);
}

.tebba-withdrawal-receipt > div:last-child { border-bottom: 0; }
.tebba-withdrawal-receipt dt { color: var(--tebba-muted); font-weight: 600; }
.tebba-withdrawal-receipt dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.tebba-withdrawal-return {
  max-width: 580px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 16px;
  background: var(--tebba-purple-soft);
}

.tebba-withdrawal-return h2 {
  margin: 0 0 10px;
  color: var(--tebba-purple-dark);
  font-size: 17px;
}

.tebba-withdrawal-return p { margin: 0; line-height: 1.6; }
.tebba-withdrawal-back { color: var(--tebba-purple); font-weight: 700; }

@media (max-width: 767px) {
  footer a[href*="extension/module/tebba_withdrawal"] {
    width: 100%;
    max-width: 290px;
    min-height: 48px;
  }

  .tebba-withdrawal-page { padding-left: 14px; padding-right: 14px; padding-bottom: 36px; }
  .tebba-withdrawal-card { margin-top: 8px; padding: 34px 22px 38px; border-radius: 20px; }
  .tebba-withdrawal-card h1 { font-size: 32px; }
  .tebba-withdrawal-lead { font-size: 15px; }
  .tebba-withdrawal-header { margin-bottom: 34px; }
  .tebba-withdrawal-grid,
  .tebba-scope-options { grid-template-columns: 1fr; }
  .tebba-field-full { grid-column: auto; }
  .tebba-withdrawal-receipt > div { grid-template-columns: 1fr; gap: 3px; }
  .tebba-withdrawal-submit { font-size: 15px; }
}
