/* The redeem page: only the arrangement. Headings, fields and buttons are the site's own (WooCommerce's classes,
   styled by the theme like the rest of the shop: David, 4 Dec 2026, "consistency to the rest of the website").
   The panel copies the theme's own form panels (My Account > Account details): light grey, 3px corners. */
/* the theme gives page content a wide max-width with !important: ours is narrower */
.sw-redeem.sw-redeem { max-width: 620px !important; margin: 10px auto 48px !important; }
.sw-redeem-panel { background: #eee; border-radius: 3px; padding: 30px 35px; }
.sw-redeem-panel > :first-child { margin-top: 0; }
.sw-redeem-panel form > :last-child, .sw-redeem-panel > :last-child { margin-bottom: 0; }
.sw-redeem-intro { margin-bottom: 22px; }
.sw-redeem-step { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 24px 0 10px; }
.sw-redeem-step span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
                       border-radius: 3px; background: #ff0066; color: #fff; font-size: 14px; font-weight: 700; }
.sw-redeem-note { opacity: 0.75; font-size: 0.9em; margin-bottom: 12px; }
.sw-redeem-form .form-row input.input-text { width: 100%; box-sizing: border-box; }
.sw-redeem-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sw-redeem-pair .form-row { width: auto !important; float: none !important; }
#sw-redeem-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
#sw-redeem-code::placeholder { letter-spacing: normal; text-transform: none; }
.sw-redeem-submit { width: 100%; margin-top: 8px; }
.sw-redeem-foot { text-align: center; font-size: 0.9em; margin-top: 14px; }
.sw-redeem .woocommerce-error { margin: 0 0 20px; }

/* afterwards */
.sw-redeem-success { text-align: center; }
.sw-redeem-eyebrow { font-weight: 700; color: #ff0066; margin-bottom: 4px; }
.sw-redeem-product { margin: 0 0 4px; }
.sw-redeem-lead { opacity: 0.75; margin-bottom: 20px; }
.sw-redeem-next { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(0, 0, 0, 0.1); text-align: left; }
.sw-redeem-next li { margin: 0 0 8px; padding-left: 18px; position: relative; }
.sw-redeem-next li::before { content: "\2013"; position: absolute; left: 0; color: #ff0066; }

/* the installer note above My Account > Downloads (SW_Shop_Installer_Banner) */
.sw-installer-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.sw-installer-banner h3 { margin: 0 0 6px; }
.sw-installer-banner p { margin: 0; }
.sw-installer-buttons { display: flex; gap: 16px; flex-shrink: 0; }
.sw-os { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sw-os .sw-os-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; white-space: nowrap; }
.sw-os .sw-os-button.disabled { opacity: .45; cursor: default; pointer-events: none; }
.sw-os-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }
.sw-os small { font-size: 12px; opacity: .7; text-align: center; max-width: 190px; line-height: 1.35; }

/* Connect the SHAPINGWAVES Installer (SW_Shop_Installer_Connect): Cancel as a plain link */
.sw-link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* the bots' field, out of sight */
.sw-redeem-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

@media (max-width: 600px) {
  .sw-redeem-panel { padding: 22px 18px; }
  .sw-redeem-pair { grid-template-columns: 1fr; }
  .sw-installer-banner { flex-direction: column; align-items: flex-start; }
  .sw-installer-buttons { flex-direction: column; align-self: stretch; }
  .sw-os .sw-os-button { align-self: stretch; }
}
