 :root {
   --brand-red: #e90a9b;
   --text: #1f2328;
   --muted: #6b7280;
   --border: #d1d5db;
   --shadow: 0 30px 80px rgba(0, 0, 0, .35);
   --radius: 5px;
   --maxw: 780px;
   --pad: 34px;
 }



 /* ===== Side Tab Trigger ===== */
 .promo-tab {
   position: fixed;
   right: -2px;
   top: 50%;
   transform: translateY(-50%);
   z-index: 50;
   transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
 }

 .promo-tab.hiding {
   transform: translateY(-50%) translateX(100%);
   opacity: 0;
 }

 .promo-tab a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   height: 184px;
   width: 50px;
   text-transform: uppercase;
   background: #fff;
   color: #111;
   text-decoration: none;
   font-weight: 700;
   font-size: 18px;
   letter-spacing: .5px;
   writing-mode: vertical-rl;
   text-orientation: mixed;
   border-right: none;
   border-radius: 5px 0 0 5px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 4px 15px rgba(200, 16, 46, .25);
   filter: drop-shadow(rgb(28, 28, 28) 0px 0px 30px);
 }

 .promo-tab__close {
   position: absolute;
   bottom: -10px;
   left: -10px;
   width: 22px;
   height: 22px;
   background: #111;
   color: #fff;
   border-radius: 50%;
   font-size: 22px;
   line-height: 25px;
   text-align: center;
   cursor: pointer;
   z-index: 51;
   box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
 }

 .promo-tab__close:hover {
   background: var(--brand-red);
 }

 /* ===== Modal Overlay (JavaScript controlled) ===== */
 .modal {
   position: fixed;
   inset: 0;
   z-index: 100;
   display: none;
   opacity: 0;
   transition: opacity 0.3s ease-in-out;
 }

 .modal.show {
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 1;
 }

 .modal.hiding {
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
 }

 .modal__overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, .55);
   cursor: pointer;
 }

 /* ===== Dialog ===== */
 .modal__dialog {
   position: relative;
   width: min(var(--maxw), calc(100% - 28px));
   margin: 0;
   background: #fff;
   border-radius: var(--radius);
   box-shadow: var(--shadow);
   overflow: hidden;
   transform: scale(0.8);
   transition: transform 0.3s ease-in-out;
   z-index: 101;
 }

 .modal.show .modal__dialog {
   transform: scale(1);
 }

 .modal.hiding .modal__dialog {
   transform: scale(0.8);
 }

 /* Close button (black circle with white X) */
 .modal__close {
   position: absolute;
   cursor: pointer;
   right: 12px;
   top: 12px;
   width: 32px;
   height: 32px;
   border-radius: 999px;
   background: #111;
   color: #fff;
   text-decoration: none;
   display: grid;
   place-items: center;
   font-size: 18px;
   line-height: 1;
   z-index: 5;
   cursor: pointer;
   border: none;
   visibility: hidden;
 }

 .modal__grid {
   display: grid;
   grid-template-columns: 1.05fr 1fr;
   min-height: 585px;
 }

 .modal__left {
   padding: var(--pad);
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: 16px;
 }

 /* Logo-ish */
 #promo .brand {
   font-weight: 800;
   color: var(--brand-red);
   font-size: 38px;
   letter-spacing: -.5px;
   text-align: center;
   margin-bottom: 4px;
 }

 #promo .headline {
   text-align: center;
   margin: 0;
   line-height: 1.05;
 }

 #promo .headline .small {
   display: block;
   font-size: 26px;
   font-weight: 700;
   margin-bottom: 6px;
 }

 #promo .headline .big {
   display: block;
   font-size: 56px;
   font-weight: 900;
   letter-spacing: .5px;
 }

 #promo .headline .sub {
   display: block;
   font-size: 26px;
   font-weight: 500;
   margin-top: 6px;
 }

 #promo .input {
   height: 52px;
   border: 1.5px solid #111;
   border-radius: 3px;
   padding: 0 14px;
   font-size: 16px;
   outline: none;
   margin-bottom: 10px;
   transition: border-color 0.2s ease;
 }

 #promo .input--error {
   border-color: var(--brand-red);
 }

 #promo .input::placeholder {
   color: #9aa1aa;
 }

 #promo .btn,
 #promo a.btn {
   height: 54px;
   border: none;
   border-radius: 4px;
   background: var(--brand-red);
   color: #fff;
   font-size: 18px;
   font-weight: 800;
   letter-spacing: .3px;
   cursor: pointer;
   text-decoration: none;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
 }

 #promo .btn:disabled {
   opacity: 0.7;
   cursor: not-allowed;
 }

 #promo .no-thanks {
   text-align: center;
   color: #111;
   text-decoration: none;
   font-size: 14px;
   margin-top: 20px;
   cursor: pointer;
   display: block;
 }

 #promo .is-hidden {
   display: none;
 }

 .no-thanks:hover {
   text-decoration: underline;
 }

 /* ===== Form Container ===== */
 .form-container {
   min-height: 180px;
   position: relative;
 }

 .discount-form {
   display: grid;
   gap: 0;
 }

 .discount-form.is-hidden {
   display: none;
 }

 .form-error {
   color: var(--brand-red);
   font-size: 14px;
   text-align: center;
   /* min-height: 10px;
   margin-bottom: 5px; */
 }

 /* ===== Loader ===== */
 .form-loader {
   display: none;
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   align-items: center;
   justify-content: center;
   background: rgba(255, 255, 255, 0.9);
   z-index: 10;
 }

 .form-loader.is-active {
   display: flex;
 }

 .loader-icon {
   width: 48px;
   height: 48px;
   color: var(--brand-red);
   animation: loader-spin 1s linear infinite;
 }

 .loader-icon circle {
   stroke-dasharray: 80;
   stroke-dashoffset: 60;
 }

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

 /* ===== Success State ===== */
 .success-state {
   display: none;
   text-align: center;
 }

 .success-state.is-active {
   display: block;
 }

 .success-icon {
   font-size: 42px;
   margin-bottom: 8px;
 }

 .success-title {
   margin: 0 0 8px;
   color: #111;
   font-size: 26px;
 }

 .success-msg {
   margin: 0 0 16px;
   color: #666;
   font-size: 16px;
   font-weight: 500;
 }

 .shop-btn {
   display: inline-flex !important;
 }

 /* ===== Brand ===== */
 .brand--uppercase {
   text-transform: uppercase;
 }

 .brand-logo {
   width: 62%;
 }

 .modal__right {
   background-size: cover;
   background-position: center;
 }

 /* ===== Mobile ===== */
 @media (max-width: 840px) {
   .modal__dialog {
     width: calc(100% - 40px);
     max-height: 90vh;
     overflow-y: auto;
   }

   .modal__grid {
     grid-template-columns: 1fr;
     min-height: auto;
   }

   .modal__right {
     /* min-height: 240px; */
     min-height: 0;
     order: -1;
     /* image on top like your mobile screenshot feel */
   }

   .modal__left {
     padding: 26px 22px 24px;
   }

   .brand {
     font-size: 34px;
   }

   .headline .small {
     font-size: 22px;
   }

   .headline .big {
     font-size: 46px;
   }

   .headline .sub {
     font-size: 22px;
   }
 }

 /* Demo page content */
 .demo {
   color: #fff;
   text-align: center;
   padding: 20px;
   opacity: .9;
 }

 .demo a {
   color: #fff;
   font-weight: 700;
 }