/* SharpSharp Training Quantity + Cart + Checkout */

/* ============================================
   Cart: Inline-Rabatte pro Produkt
   ============================================ */

.ss-cart-item-short-desc {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}

.ss-cart-item-short-desc p {
  margin: 0 0 2px;
}

.ss-cart-item-original-total {
  margin-top: 6px;
}

.ss-cart-item-original-total del {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.ss-cart-item-discounts {
  margin-top: 4px;
}

.ss-cart-item-discount {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.ss-cart-item-discount--earlybird {
  color: #1878ef !important;
}

.ss-cart-item-discount--group {
  color: #2e7d32 !important;
}

/* Fee-Zeilen im Warenkorb-Totals verstecken (werden inline gezeigt) */
.woocommerce-cart-form ~ .cart_totals .fee,
.cart_totals .fee {
  display: none !important;
}

/* ============================================
   Shared: Buttons
   ============================================ */

.ss-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.4;
}

.ss-btn-primary {
  background: #1878ef;
  color: #fff;
  border-color: #1878ef;
}

.ss-btn-primary:hover {
  background: #1260cc;
  border-color: #1260cc;
  color: #fff;
}

.ss-btn-secondary {
  background: #f0f4f8;
  color: #1878ef;
  border-color: #e0e8f0;
}

.ss-btn-secondary:hover {
  background: #e0ecf8;
  border-color: #1878ef;
}

.ss-btn-outline {
  background: transparent;
  color: #1878ef;
  border-color: #1878ef;
  padding: 8px 16px;
  font-size: 14px;
}

.ss-btn-outline:hover {
  background: #1878ef;
  color: #fff;
}

/* ============================================
   Cart Page
   ============================================ */

.ss-cart {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.ss-cart-items {
  margin-bottom: 24px;
}

.ss-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e8ecf0;
  position: relative;
}

.ss-cart-item:first-child {
  border-top: none;
}

.ss-cart-item-thumb {
  flex-shrink: 0;
  width: 120px;
}

.ss-cart-item-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ss-remove-item {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #444;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.ss-remove-item:hover {
  background: #fee;
  color: #c00;
}

.ss-cart-item-info {
  flex: 1;
  min-width: 0;
}

.ss-cart-item-name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.ss-cart-item-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.ss-cart-item-meta span + span::before {
  content: " \2022 ";
  margin: 0 4px;
}

.ss-cart-item-base-price {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.ss-cart-item-prices {
  margin-top: 8px;
}

.ss-cart-item-prices .ss-final-price,
.ss-cart-item-prices .ss-final-price .woocommerce-Price-amount {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #222 !important;
  text-decoration: none !important;
}

.ss-cart-item-prices .ss-price-vat-label {
  font-size: 12px;
  color: #888;
  margin-left: 4px;
}

.ss-price-vat-label {
  font-size: 12px;
  opacity: 0.7;
}

.ss-cart-item-quantity {
  flex-shrink: 0;
}

.ss-cart-item-subtotal {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  min-width: 100px;
  text-align: right;
}

.ss-cart-item-subtotal del.ss-original-price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
}

.ss-cart-item-subtotal del.ss-original-price .woocommerce-Price-amount {
  color: #999;
}

.ss-cart-item-subtotal ins.ss-discounted-price {
  display: block;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  color: #2e7d32;
}

.ss-cart-item-subtotal ins.ss-discounted-price .woocommerce-Price-amount {
  color: #2e7d32;
}

/* Cart Actions */
.ss-cart-actions {
  text-align: right;
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf0;
  margin-bottom: 24px;
}

.ss-update-cart {
  font-size: 14px;
  padding: 8px 20px;
}

/* Cart Discounts */
.ss-cart-discounts {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f0f9f0;
  border-radius: 8px;
}

.ss-cart-discount-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.ss-discount-label {
  color: #2e7d32;
  font-weight: 600;
  font-size: 14px;
}

.ss-discount-amount {
  color: #2e7d32;
  font-weight: 700;
  font-size: 14px;
}

/* Cart Coupon */
.ss-cart-coupon {
  margin-bottom: 20px;
}

.ss-coupon-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.ss-coupon-input-row {
  display: flex;
  gap: 8px;
}

.ss-coupon-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
}

.ss-coupon-input-row input:focus {
  border-color: #1878ef;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 120, 239, 0.15);
}

.ss-applied-coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f4ff;
  border-radius: 6px;
  font-size: 14px;
}

.ss-coupon-code {
  font-weight: 600;
  color: #1878ef;
}

/* Cart Summary Table */
.ss-cart-summary {
  margin-bottom: 20px;
}

.ss-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.ss-summary-table th,
.ss-summary-table td {
  padding: 10px 0;
  font-size: 15px;
}

.ss-summary-table th {
  text-align: left;
  font-weight: 600;
  color: #444;
}

.ss-summary-table td {
  text-align: right;
}

.ss-net-subtotal th,
.ss-net-subtotal td {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
  font-weight: 600;
}

.ss-total-row th,
.ss-total-row td {
  border-top: 2px solid #222;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #222;
}

/* Cart Spinner Overlay */
.ss-cart-spinner {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}

.ss-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #1878ef;
  border-radius: 50%;
  animation: ss-spin 0.6s linear infinite;
}

@keyframes ss-spin {
  to { transform: rotate(360deg); }
}

/* Summary Flash */
.ss-summary-table.ss-flash {
  animation: ss-flash-bg 0.8s ease;
}

@keyframes ss-flash-bg {
  0%   { background: transparent; }
  20%  { background: rgba(24, 120, 239, 0.08); }
  100% { background: transparent; }
}

/* WooCommerce Notice auf Cart-Seite verstecken */
.woocommerce-cart .woocommerce-message {
  display: none !important;
}

/* Checkout Button */
.ss-cart-checkout-btn {
  text-align: center;
  padding-top: 8px;
  overflow: hidden;
}

.ss-cart-checkout-btn .ss-btn-primary {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 16px;
  font-size: 18px;
  box-sizing: border-box;
}

/* Hide default WC cart subtotal */
.woocommerce-checkout-review-order-table .cart-subtotal {
  display: none !important;
}

/* ============================================
   Checkout Page: 2-Spalten Layout
   ============================================ */

/* WooCommerce blockUI overlay: nur den Content überdecken, nicht den Header */
body.woocommerce-checkout .blockUI.blockOverlay,
body.woocommerce-cart .blockUI.blockOverlay {
  position: absolute !important;
  z-index: 99 !important;
}

.ss-checkout {
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

/* Gutenberg Constrained Layout auf WooCommerce-Seiten aufbrechen:
   Extendable Theme setzt content-size auf 42rem (~672px).
   Wir überschreiben die Variable im WooCommerce-Wrapper auf wide-size. */
/* Warenkorb + Kasse: Gutenberg content-size aufbrechen */
body.woocommerce-cart [data-block-name="woocommerce/page-content-wrapper"],
body.woocommerce-checkout [data-block-name="woocommerce/page-content-wrapper"] {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}

/* Kasse: Classic-Shortcode-Block und alle Parents auf Checkout-Seite aufbrechen */
[data-block-name="woocommerce/classic-shortcode"][data-shortcode="checkout"] {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

:has(> [data-block-name="woocommerce/classic-shortcode"][data-shortcode="checkout"]) {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}

/* Desktop: 2-Spalten Layout */
@media (min-width: 769px) {
  .ss-checkout-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
  }

  .ss-checkout-left {
    flex: 1;
    min-width: 0;
  }

  .ss-checkout-right {
    flex: 1;
    min-width: 0;
  }
}


/* ── Checkout Block Styling (alle Sektionen) ── */
.ss-checkout-block {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 0 28px 24px 28px;
  border: 1px solid #e8ecf0;
  margin-bottom: 24px;
}

.ss-checkout-block > h3,
.ss-checkout-block .ss-participants-section > h3 {
  font-size: 18px;
  font-weight: 800;
  color: #222;
  background: #eef3fb;
  margin: 0 -28px 20px -28px;
  padding: 14px 28px;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #1878ef;
}

/* Billing form field overrides */
.ss-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.ss-checkout-block .form-row {
  margin-bottom: 12px;
}

.ss-checkout .woocommerce-billing-fields__field-wrapper label,
.ss-checkout .form-row label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
  display: block;
  text-align: left;
}

.ss-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
.ss-checkout .woocommerce-billing-fields__field-wrapper select,
.ss-checkout .woocommerce-billing-fields__field-wrapper textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
}

.ss-checkout .woocommerce-billing-fields__field-wrapper input.input-text:focus,
.ss-checkout .woocommerce-billing-fields__field-wrapper select:focus,
.ss-checkout .woocommerce-billing-fields__field-wrapper textarea:focus {
  border-color: #1878ef;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 120, 239, 0.15);
}

/* ============================================
   Checkout: Order Review (rechte Spalte)
   ============================================ */

.ss-order-review {
  display: flex;
  flex-direction: column;
}

/* Produkt-Zeile: Name + Details links, Originalpreis rechts */
.ss-review-product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e4e8;
}

.ss-review-product-info {
  flex: 1;
}

.ss-review-product-name {
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.ss-review-product-qty {
  color: #1878ef;
  font-weight: 700;
  white-space: nowrap;
}

.ss-review-product-details {
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.5;
  margin-top: 4px;
}

.ss-review-product-price {
  text-align: right;
  flex-shrink: 0;
}

.ss-review-product-price del {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

/* Preisaufstellung (Div-basiert) */
.ss-review-rows {
  margin-top: 4px;
}

.ss-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
}

.ss-row-label {
  flex: 1;
  font-size: 14px;
  color: #666;
  text-align: left;
}

.ss-row-value {
  text-align: right;
  font-size: 14px;
  color: #444;
  flex-shrink: 0;
  min-width: 120px;
}

/* Separator-Linien */
.ss-review-separator {
  border-top: 1px solid #e0e0e0;
  margin: 4px 0;
}

.ss-review-separator--thick {
  border-top-width: 2px;
  border-color: #222;
}

/* Early Bird */
.ss-review-earlybird .ss-row-label,
.ss-review-earlybird .ss-row-value {
  color: #1878ef;
  font-weight: 600;
}

/* Gruppenrabatt */
.ss-review-group .ss-row-label,
.ss-review-group .ss-row-value {
  color: #2e7d32;
  font-weight: 600;
}

/* Zwischensumme */
.ss-review-subtotal .ss-row-label,
.ss-review-subtotal .ss-row-value {
  font-weight: 600;
  color: #222;
}

/* Zwischensumme (netto) */
.ss-review-net .ss-row-label,
.ss-review-net .ss-row-value {
  font-weight: 600;
  color: #222;
}

/* Gesamtsumme */
.ss-review-total .ss-row-label,
.ss-review-total .ss-row-value {
  font-size: 18px;
  font-weight: 800;
  color: #222;
}

.ss-review-total {
  margin-bottom: 24px;
}

/* Gutschein × Entfernen-Button */
.ss-remove-coupon {
  color: #991b1b;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 4px;
  line-height: 1;
}

.ss-remove-coupon:hover {
  color: #dc2626;
}

/* Gutschein-Code Eingabe */
.ss-coupon-row {
  display: block;
  padding: 8px 0;
}

.ss-checkout-coupon-inline {
  margin: 0;
}

.ss-coupon-toggle a {
  color: #1878ef;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ss-coupon-toggle a:hover {
  text-decoration: underline;
}

.ss-coupon-form-checkout {
  margin-top: 10px;
}

.ss-coupon-form-checkout .ss-coupon-input-row {
  display: flex;
  gap: 8px;
}

.ss-coupon-form-checkout .ss-coupon-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
}

.ss-coupon-form-checkout .ss-coupon-input-row input:focus {
  border-color: #1878ef;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 120, 239, 0.15);
}

/* Zurück-Link über dem Checkout-Formular */
.ss-back-to-cart-link {
  display: inline-block;
  color: #1878ef;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}

.ss-back-to-cart-link:hover {
  text-decoration: underline;
}

/* Payment Section */
.ss-payment-section,
#payment {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e0e4e8;
}

/* "Zahlungsart auswählen" Überschrift verstecken */
#payment .wc-gzd-payment-heading,
#payment > h3,
#payment > h4 {
  display: none !important;
}

.ss-payment-section .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.ss-payment-section .wc_payment_method {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f4;
}

.ss-payment-section .wc_payment_method label {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ss-payment-section #place_order {
  width: 100%;
  background: #1878ef;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ss-payment-section #place_order:hover {
  background: #1260cc;
}

/* Germanized wraps the button in .wc-gzd-place-order */
.wc-gzd-place-order #place_order,
#place_order {
  width: 100%;
  background: #1878ef;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.wc-gzd-place-order #place_order:hover,
#place_order:hover {
  background: #1260cc;
}

/* ============================================
   Participant Fields
   ============================================ */

/* ss-participants-section h3 now inherits from .ss-checkout-block h3 */

.ss-participant-group {
  margin-bottom: 28px;
}

.ss-participant-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1878ef;
  margin: 0 0 4px 0;
  padding: 0;
}

.ss-participant-heading-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  padding: 0;
  margin: 0 0 16px 0;
}

.ss-participant-heading-desc p {
  margin: 0 0 2px;
}

.ss-participant-heading + .ss-participant-entry {
  /* Wenn keine Kurzbeschreibung vorhanden */
}

.ss-participant-heading:last-child {
  border-radius: 8px;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.ss-participant-entry {
  padding: 16px;
  margin-bottom: 12px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  border-left: 4px solid #1878ef;
}

.ss-participant-label {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin: 0 0 8px 0;
}

.ss-copy-billing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  margin-bottom: 12px;
}

.ss-copy-billing-checkbox {
  accent-color: #1878ef;
}

.ss-participant-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ss-participant-fields .form-row {
  margin: 0;
}

.ss-participant-fields .form-row-first,
.ss-participant-fields .form-row-last {
  flex: 1;
  min-width: 140px;
}

.ss-participant-fields .form-row-wide {
  flex-basis: 100%;
}

.ss-participant-fields label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.ss-participant-fields input.input-text {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.ss-participant-fields input.input-text:focus {
  border-color: #1878ef;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 120, 239, 0.15);
}

/* ============================================
   Responsive: Mobile
   ============================================ */

/* Mobile: Zusammenfassung nach oben */
@media (max-width: 768px) {
  .ss-checkout {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .ss-checkout-columns {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Rechte Spalte (Zusammenfassung) nach oben */
  .ss-checkout-right {
    order: -1 !important;
    margin-bottom: 24px;
  }

  /* Mobile: Blocks etwas kompakter */
  .ss-checkout-block {
    padding: 0 16px 16px 16px;
    border-radius: 12px;
  }

  .ss-checkout-block > h3,
  .ss-checkout-block .ss-participants-section > h3 {
    margin: 0 -16px 16px -16px;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
  }

  /* Cart: kompakteres Layout */
  .ss-cart-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Mobile: Preis groß und fett */
  .ss-cart-item-prices .ss-final-price,
  .ss-cart-item-prices .ss-final-price .woocommerce-Price-amount,
  .ss-cart-item-prices .ss-final-price .woocommerce-Price-amount bdi {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #222 !important;
    text-decoration: none !important;
  }

  .ss-cart-item-info {
    flex: 1 1 60%;
  }

  .ss-cart-item-subtotal {
    min-width: auto;
  }

  /* Participant fields: volle Breite */
  .ss-participant-fields .form-row-first,
  .ss-participant-fields .form-row-last {
    flex-basis: 100%;
  }
}

/* ============================================
   Thank You / Order Received Page
   ============================================ */

.ss-thankyou {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

.ss-thankyou-note {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
}

.ss-thankyou-header {
  text-align: center;
  margin-bottom: 32px;
}

.ss-thankyou-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  margin: 0 0 8px;
}

.ss-order-number {
  font-size: 15px;
  color: #666;
}

.ss-thankyou-section {
  margin-bottom: 32px;
}

.ss-thankyou-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1878ef;
}

/* Training Cards */
.ss-thankyou-training {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid #1878ef;
}

.ss-thankyou-training-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ss-thankyou-training-info {
  flex: 1;
}

.ss-thankyou-training-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

.ss-thankyou-training-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 6px;
}

.ss-thankyou-training-desc p {
  margin: 0 0 2px;
}

.ss-thankyou-training-qty {
  font-size: 14px;
  color: #666;
}

.ss-thankyou-training-price {
  text-align: right;
  flex-shrink: 0;
}

.ss-thankyou-training-price del {
  display: block;
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.ss-thankyou-training-price ins {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #2e7d32;
  text-decoration: none;
}

.ss-thankyou-training-price .ss-price-suffix {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.ss-thankyou-training-discounts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e4e8;
}

.ss-thankyou-discount {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 4px;
}

.ss-thankyou-discount--earlybird {
  color: #1878ef;
}

/* Participants List */
.ss-thankyou-participants {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e4e8;
}

.ss-thankyou-participants h5 {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin: 0 0 10px;
}

.ss-thankyou-participants ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ss-thankyou-participants li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f2f4;
}

.ss-thankyou-participants li:last-child {
  border-bottom: none;
}

.ss-participant-name {
  font-weight: 600;
  color: #222;
}

.ss-participant-email {
  color: #666;
}

/* Coupons */
.ss-thankyou-coupon {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f0f4ff;
  border-radius: 8px;
  margin-bottom: 8px;
}

.ss-thankyou-coupon .ss-coupon-code {
  font-weight: 600;
  color: #1878ef;
}

.ss-thankyou-coupon .ss-coupon-discount {
  font-weight: 600;
  color: #2e7d32;
}

/* Pricing Table (Thank-you page) */
.ss-thankyou-pricing {
  display: flex;
  justify-content: flex-end;
}

.ss-pricing-table {
  border-collapse: collapse;
  text-align: right;
}

.ss-pricing-table td {
  padding: 4px 0 4px 24px;
  font-size: 15px;
  color: #444;
  text-align: right;
  white-space: nowrap;
}

.ss-pricing-table td:first-child {
  text-align: left;
  padding-left: 0;
  color: #666;
}

.ss-pricing-original td {
  padding-bottom: 12px;
}

.ss-pricing-original del {
  color: #999;
  font-size: 14px;
}

.ss-pricing-subtotal td {
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  padding-bottom: 12px;
  font-weight: 600;
  color: #222;
}

.ss-pricing-total td {
  border-top: 2px solid #222;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #222;
}

/* Billing, Payment, Notes: linksbündig */
.ss-thankyou-billing,
.ss-thankyou-payment,
.ss-thankyou-notes {
  text-align: left;
}

/* Billing Address */
.ss-thankyou-billing address {
  font-style: normal;
  line-height: 1.6;
  color: #444;
}

.ss-billing-email,
.ss-billing-phone {
  margin: 6px 0 0;
  color: #666;
}

/* Payment */
.ss-thankyou-payment p {
  font-size: 15px;
  color: #444;
}

/* Notes */
.ss-thankyou-notes p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
}

/* Bank Details */
.ss-thankyou-bank p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

/* Responsive */
@media (max-width: 600px) {
  .ss-thankyou-training-header {
    flex-direction: column;
  }

  .ss-thankyou-training-price {
    text-align: left;
    margin-top: 10px;
  }

  .ss-thankyou-participants li {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .ss-cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-cart-item-subtotal {
    text-align: left;
  }

  .ss-coupon-input-row {
    flex-direction: column;
  }

  .ss-coupon-input-row .ss-btn-outline {
    width: 100%;
  }
}

/* ============================================
   Cart Page: Mobile Padding + Button Fix
   ============================================ */

@media (max-width: 782px) {
  /* Overflow auf Warenkorb-Seite verhindern */
  body.woocommerce-cart {
    overflow-x: hidden;
  }

  /* Padding links/rechts auf Mobile */
  .ss-cart {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  /* Alle Kinder auf max-width begrenzen */
  .ss-cart > * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* "Weiter zur Kasse" Button - innerhalb des Paddings halten */
  .ss-cart-checkout-btn {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .ss-cart-checkout-btn .ss-btn {
    display: block;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}
