
/* SWG Gutscheine – Light theme, modern cards */
.swg2-wrap{max-width:1100px;margin:24px auto;padding:0 14px}
.swg2-hero{background:linear-gradient(90deg,#f2f7ff,#f7fbff);border:1px solid #e5eefc;border-radius:20px;padding:28px;box-shadow:0 10px 30px rgba(17,24,39,.06);margin-bottom:18px}
.swg2-kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#6b7280;margin-bottom:8px}
.swg2-title{font-size:34px;line-height:1.1;margin:0 0 10px 0;color:#0f172a}
.swg2-sub{margin:0 0 14px 0;color:#475569;font-size:15px;max-width:70ch}
.swg2-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.swg2-pill{background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;font-size:13px;color:#111827;box-shadow:0 1px 2px rgba(0,0,0,.03)}

.swg2-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 10px}
@media(max-width:980px){.swg2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.swg2-grid{grid-template-columns:1fr}}

.swg2-card{position:relative;display:block;text-decoration:none;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(17,24,39,.06);transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease}
.swg2-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(17,24,39,.10);border-color:#dbeafe}
.swg2-badge{display:inline-flex;align-items:center;gap:6px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:7px 10px;margin-bottom:12px}
.swg2-card-title{font-size:18px;font-weight:800;color:#0f172a;margin:0 0 6px 0}
.swg2-card-sub{color:#64748b;font-size:13px;line-height:1.45;margin:0 0 14px 0;min-height:38px}
.swg2-card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.swg2-price{font-size:18px;font-weight:900;color:#0f172a}
.swg2-cta{color:#2563eb;font-weight:700;font-size:13px}

.swg2-back{margin:10px 0 14px}
.swg2-back a{color:#2563eb;text-decoration:none;font-weight:700}
.swg2-back a:hover{text-decoration:underline}

.swg2-product{display:grid;grid-template-columns:1.4fr .8fr;gap:16px;align-items:start}
@media(max-width:900px){.swg2-product{grid-template-columns:1fr}}
.swg2-product-left{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(17,24,39,.06)}
.swg2-summary{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(17,24,39,.06)}
.swg2-sum-title{font-size:13px;color:#64748b;margin-top:6px}
.swg2-price-big{font-size:34px;font-weight:900;color:#0f172a;margin:6px 0 12px}
.swg2-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;background:#2563eb;color:#fff;border:none;border-radius:14px;padding:12px 14px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 10px 22px rgba(37,99,235,.25)}
.swg2-btn:hover{filter:brightness(.97)}

.swg2-muted{color:#64748b;font-size:12.5px;margin-top:10px;line-height:1.4}
.swg2-note{background:#fff;border:1px dashed #cbd5e1;border-radius:14px;padding:14px;color:#334155}

.swg2-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:900px){.swg2-grid2{grid-template-columns:1fr}}
.swg2-full{grid-column:1/-1}
.swg2-card2{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(17,24,39,.06)}
.swg2-h3{margin:0 0 10px 0;font-size:16px;color:#0f172a}
.swg2-h4{margin:12px 0 8px 0;font-size:14px;color:#0f172a}
.swg2-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
@media(max-width:700px){.swg2-row2{grid-template-columns:1fr}}
.swg2-row2 input,.swg2-row2 select{width:100%;padding:11px 12px;border:1px solid #d1d5db;border-radius:14px;background:#fff}
.swg2-radio{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.swg2-radio input{margin-top:3px}
.swg2-sum{display:flex;flex-direction:column;gap:8px}
.swg2-sum-name{font-weight:800;color:#0f172a}
.swg2-sum-line{display:flex;justify-content:space-between;color:#334155}
.swg2-sum-total{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:900;color:#0f172a;margin-top:6px}
.swg2-sticky{position:sticky;top:16px;align-self:start}


/* Compact hero for product/checkout */
.swg2-hero--compact{padding:18px 20px;margin-bottom:16px}
.swg2-hero--compact .swg2-title{font-size:28px}
.swg2-hero--compact .swg2-sub{margin-bottom:0}

/* Make sure theme styles don't override form look too much */
.swg2-wrap label{font-weight:600;color:#0f172a}
.swg2-wrap input[type="text"], .swg2-wrap input[type="email"], .swg2-wrap select{
  font-size:14px; line-height:1.2;
}
.swg2-wrap .swg2-radio span{color:#0f172a}
.swg2-wrap .swg2-radio strong{color:#0f172a}


/* Premium options (shipping/payment) */
.swg2-options{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.swg2-option{display:flex;align-items:center;gap:12px;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;background:#fff;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease,transform .12s ease}
.swg2-option:hover{border-color:#dbeafe;box-shadow:0 10px 22px rgba(17,24,39,.08);transform:translateY(-1px)}
.swg2-option input{width:18px;height:18px}
.swg2-option-main{display:flex;flex-direction:column;gap:2px;flex:1}
.swg2-option-title{font-weight:900;color:#0f172a;font-size:14px}
.swg2-option-sub{color:#64748b;font-size:12.5px}
.swg2-option-price{font-weight:900;color:#0f172a;font-size:13px;white-space:nowrap}
.swg2-option.is-selected{border-color:#93c5fd;box-shadow:0 12px 26px rgba(37,99,235,.12);background:linear-gradient(180deg,#ffffff,#f7fbff)}
.swg2-option.is-selected .swg2-option-price{color:#2563eb}

/* Make summary feel like your cards */
.swg2-card2.swg2-sticky{border-color:#e5eefc}
.swg2-sum-total strong{font-size:20px}
.swg2-btn{font-size:15px;padding:13px 14px;border-radius:16px}

/* Tighter, cleaner inputs */
.swg2-row2 input,.swg2-row2 select{box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}


/* Thankyou / Status page */
.swg2-statusbar{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;box-shadow:0 8px 24px rgba(17,24,39,.06);margin:14px 0}
.swg2-statusleft{display:flex;flex-direction:column;gap:8px}
.swg2-statusmeta{display:flex;flex-wrap:wrap;gap:16px;color:#334155;font-size:13px}
.swg2-statusbadge{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 12px;font-weight:900;font-size:12px;border:1px solid #e5e7eb;background:#f8fafc;color:#0f172a;width:max-content}
.swg2-dot{width:10px;height:10px;border-radius:999px;background:#94a3b8;display:inline-block}
.swg2-statusbadge--paid{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.swg2-statusbadge--paid .swg2-dot{background:#22c55e}
.swg2-statusbadge--shipped{border-color:#bae6fd;background:#f0f9ff;color:#075985}
.swg2-statusbadge--shipped .swg2-dot{background:#0ea5e9}
.swg2-statusbadge--pending{border-color:#fde68a;background:#fffbeb;color:#92400e}
.swg2-statusbadge--pending .swg2-dot{background:#f59e0b}

.swg2-mini{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.swg2-mini-label{font-size:12px;color:#64748b}
.swg2-mini-value{font-size:18px;font-weight:900;color:#0f172a}

.swg2-alert{border-radius:18px;padding:14px 16px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 8px 24px rgba(17,24,39,.06);margin:14px 0}
.swg2-alert--info{border-color:#bae6fd;background:linear-gradient(180deg,#ffffff,#f0f9ff)}
.swg2-alert--error{border-color:#fecaca;background:linear-gradient(180deg,#ffffff,#fef2f2)}
.swg2-alert-title{font-weight:900;color:#0f172a;margin-bottom:4px}
.swg2-alert-sub{color:#475569;font-size:13.5px;line-height:1.45}

.swg2-summaryrows{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.swg2-srow{display:flex;justify-content:space-between;gap:14px;border:1px solid #eef2f7;background:#f8fafc;border-radius:14px;padding:10px 12px;color:#334155}
.swg2-srow span{color:#64748b;font-weight:700;font-size:12.5px}
.swg2-srow strong{color:#0f172a;font-weight:900;font-size:13.5px;text-align:right}

.swg2-codebox{margin-top:14px;border:1px solid #93c5fd;background:linear-gradient(180deg,#ffffff,#f2f7ff);border-radius:18px;padding:14px 16px}
.swg2-code-label{font-size:12px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.swg2-code{font-size:22px;font-weight:1000;color:#0f172a;letter-spacing:.08em;margin-top:6px}


/* Thank-you banner with subtle animation */
@keyframes swg2PopIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes swg2Pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.swg2-thanks{
  display:flex; gap:14px; align-items:center;
  background:linear-gradient(180deg,#ffffff,#f2f7ff);
  border:1px solid #c7d2fe;
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 10px 26px rgba(37,99,235,.10);
  margin:14px 0;
  animation: swg2PopIn .45s ease-out both;
}
.swg2-thanks-icon{
  width:44px;height:44px;border-radius:14px;
  background:#2563eb;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 20px rgba(37,99,235,.25);
  flex:0 0 auto;
}
.swg2-thanks.is-complete .swg2-thanks-icon{ background:#16a34a; box-shadow:0 10px 20px rgba(22,163,74,.20); }
.swg2-thanks.is-complete .swg2-thanks-icon svg{ animation: swg2Pulse 1.2s ease-in-out .2s 1; }
.swg2-thanks-icon svg{ width:22px;height:22px; }
.swg2-thanks-title{font-weight:1000;color:#0f172a;font-size:16px;margin-bottom:2px}
.swg2-thanks-sub{color:#475569;font-size:13.5px;line-height:1.45}







/* Progress visibility helpers */
.swg2-desktop-only{display:block;}
.swg2-mobile-only{display:none;}
@media (max-width: 768px){
  .swg2-desktop-only{display:none !important;}
  .swg2-mobile-only{display:block !important;}
}
/* Progress bar (order overview) */
.swg2-progress-top{
  max-width: 1100px;
  margin: 10px auto 18px;
  padding: 0 16px;
}
.swg2-progressbar{
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 18px 45px rgba(17,24,39,.08);
  backdrop-filter: blur(10px);
}

.swg2-progressrail{
  position:absolute;
  left: 36px;
  right: 36px;
  top: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,.35);
  overflow: hidden;
}
.swg2-progressfill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14,165,233,.75), rgba(34,197,94,.75));
  box-shadow: 0 8px 20px rgba(34,197,94,.15);
  transition: width 700ms cubic-bezier(.2,.9,.2,1);
}

.swg2-progressnode{
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 170px;
  text-align: center;
}
.swg2-progressdot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin: 0 auto 8px;
  background: #cbd5e1;
  border: 4px solid #fff;
  box-shadow: 0 10px 18px rgba(15,23,42,.10);
}
.swg2-progresslabel{
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
/* Cancelled state (order overview) */
.swg2-progress-cancelled{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 18px 45px rgba(17,24,39,.08);
  text-align: center;
}
.swg2-progress-cancelled-badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: rgb(185,28,28);
  font-weight: 900;
}
.swg2-progress-cancelled-title{
  font-size: 16px;
  font-weight: 900;
  color: rgb(185,28,28);
  margin-bottom: 6px;
}
.swg2-progress-cancelled-sub{
  font-size: 13px;
  color: #334155;
  font-weight: 700;
}

.swg2-progressnode.is-done .swg2-progressdot{ background:#22c55e; }
.swg2-progressnode.is-current .swg2-progressdot{ background:#0ea5e9; }

@media (max-width: 900px){
  .swg2-progressbar{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .swg2-progressnode{ flex: 0 0 190px; }
}



/* Mobile: show only a compact status box, hide the full stepper */
.swg2-progress-mobile{ display:none; }
@media (max-width: 768px){
  .swg2-progressbar{ display:none !important; }
  .swg2-progress-mobile{ display:block; margin: 0 0 12px 0; }
  .swg2-progress-mobile-inner{
    background: rgba(241,245,249,.9);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
    text-align:center;
  }
  .swg2-progress-mobile-kicker{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(100,116,139,.9);
    margin-bottom: 4px;
  }
  .swg2-progress-mobile-title{
    font-size: 16px;
    font-weight: 800;
    color: rgba(15,23,42,.9);
  }
}

/* --- SWG Cancellation UI --- */
.swg2-cardhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;}
.swg2-cardtitle{font-size:16px;font-weight:800;color:#0f172a;line-height:1.1;margin:0;}
.swg2-cardsub{color:#64748b;font-size:13px;line-height:1.35;margin-top:4px;}
.swg2-cardbody{display:flex;justify-content:flex-end;align-items:center;}
.swg2-cancelwrap{margin-top:14px;padding:16px 18px;}
.swg2-cancelwrap .swg2-btn{width:auto;min-width:260px;border-radius:999px;padding:12px 18px;font-size:14px;}
.swg2-cancelwrap .swg2-btn--ghost{border-radius:999px;}

.swg2-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;font-weight:700;cursor:pointer;}
.swg2-btn--danger{background:#ef4444;border-color:#ef4444;color:#fff;}
.swg2-btn--danger:hover{filter:brightness(.95);}
.swg2-btn--ghost{background:#fff;border-color:#e5e7eb;color:#111827;}

@media (max-width: 768px){
  .swg2-cardbody{justify-content:stretch;}
  .swg2-cancelwrap .swg2-btn{min-width:0;width:100%;}
}

.swg2-modal{position:fixed;inset:0;display:none;z-index:99999;}
.swg2-modal[aria-hidden="false"]{display:block;}
.swg2-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);}
.swg2-modal-card{position:relative;width:min(560px, calc(100vw - 24px));margin:10vh auto 0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 22px 60px rgba(15,23,42,.25);overflow:hidden;}
.swg2-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:#f9fafb;}
.swg2-modal-title{font-weight:800;color:#111827;}
.swg2-modal-x{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:#6b7280;}
.swg2-modal-body{padding:16px;}
.swg2-label{display:block;font-weight:700;margin-bottom:8px;color:#111827;}
.swg2-textarea{width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;font-size:14px;outline:none;}
.swg2-textarea:focus{border-color:#cbd5e1;box-shadow:0 0 0 3px rgba(148,163,184,.25);}
.swg2-help{margin-top:8px;color:#6b7280;font-size:13px;}
.swg2-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;}
.swg2-msg{margin-top:12px;padding:10px 12px;border-radius:12px;font-size:13px;}
.swg2-msg.is-ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;}
.swg2-msg.is-err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;}


/* Cancelled progress bar */
.swg2-progressbar--cancelled{
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 82px;
}
.swg2-progressbar--cancelled .swg2-progressrail{
  top: 26px;
}
.swg2-progressfill--cancelled{
  background: rgba(239,68,68,.85) !important;
  box-shadow: 0 8px 20px rgba(239,68,68,.20) !important;
}
.swg2-progress-cancelled-text{
  position: relative;
  z-index: 2;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 900;
  color: rgb(185,28,28);
}

.swg2-progressbar--refund{
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 82px;
}
.swg2-progressbar--refund .swg2-progressrail{
  top: 26px;
}
.swg2-progressfill--refund{
  background: rgba(245,158,11,.85) !important; /* amber */
  box-shadow: 0 8px 20px rgba(245,158,11,.20) !important;
}


/* Greeting (handwritten) option */
.swg2-check{display:flex;gap:10px;align-items:flex-start;cursor:pointer;user-select:none}
.swg2-check input[type="checkbox"]{width:18px;height:18px;margin-top:2px}
.swg2-greeting textarea{width:100%;min-height:110px;resize:vertical}

/* =========================
   Legal Checkboxes (Checkout)
   ========================= */
.swg-legal-checks{margin:12px 0 10px}
.swg-legal-checks .swg-legal-hint{margin:0 0 10px;color:#475569;font-size:12.5px}
.swg-legal-checks .swg-legal-item{display:flex;align-items:flex-start;gap:10px;cursor:pointer;user-select:none;margin:0 0 10px}
.swg-legal-checks .swg-legal-item:last-child{margin-bottom:0}
.swg-legal-checks .swg-legal-item--spaced{margin-bottom:12px}
.swg-legal-checks input[type="checkbox"]{
  width:18px;height:18px;margin-top:2px;flex:0 0 18px;
  accent-color:#0a66ff;
}
.swg-legal-checks span{font-size:13px;line-height:1.45;color:#0f172a}
.swg-legal-checks a{color:#0a66ff;text-decoration:underline;text-underline-offset:2px}
.swg-legal-checks a:hover{opacity:.9}


/* Stripe Payment Element */
#swg-stripe-payment-element{
  padding: 12px;
  border: 1px solid rgba(2,6,23,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}
#swg-stripe-payment-element .StripeElement{
  width: 100%;
}



/* =========================
   Stripe UX Overrides
   ========================= */

/* Stripe payment block directly under progress bar */
#swg-stripe-payment-element{
  margin-top: 14px;
  border: 2px solid #2563eb;
  background: rgba(37,99,235,.04);
}

@media (max-width: 768px){
  #swg-stripe-payment-element{ margin-top: 10px; }
}

/* Stripe: explicit styling for the plugin pay button (thank-you page) */
#swg-stripe-pay-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37,99,235,.25) !important;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
#swg-stripe-pay-btn:hover{
  filter: brightness(.97);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37,99,235,.30) !important;
}
#swg-stripe-pay-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(37,99,235,.22) !important;
}
#swg-stripe-pay-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

/* Gutschein-Detailseite: Zur Kasse Button in Blau */
.swg2-btn.swg-checkout-btn{
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.25);
}
.swg2-btn.swg-checkout-btn:hover{
  filter: brightness(.97);
  box-shadow: 0 14px 30px rgba(37,99,235,.30);
}


/* =========================
   Discounts / Sale Banner
   ========================= */
.swg2-sale-banner{
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.18);
  font-size: 14px;
}
.swg2-price-old{
  text-decoration: line-through;
  opacity: 0.55;
  margin-right: 8px;
  font-size: 0.95em;
}
.swg2-price-new{
  font-weight: 700;
}
.swg2-discount-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.25);
}
