/* GrabOn Affiliate Buttons v4.0.5 - responsive front-end design */

.gpcx-promo-wrap{
  container-type:inline-size;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:clamp(14px,2.1vw,30px);
  padding:8px 12px;
  border:2px dashed #344154;
  margin:8px 0;
  overflow:visible;
  font-family:"Roboto Condensed","Arial Narrow",Arial,sans-serif;
}

.gpcx-promo-action{
  box-sizing:border-box;
  position:relative;
  flex:1 1 0;
  min-width:0;
  width:0;
  max-width:100%;
  min-height:56px;
  border:0;
  border-radius:15px;
  background:#4271b2;
  color:#fff;
  font-family:inherit;
  font-weight:700;
  line-height:1.2;
  padding:10px 16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:8px 8px 15px rgba(0,0,0,.28);
  overflow:hidden;
  isolation:isolate;
  text-decoration:none;
  transition:box-shadow .35s ease,transform .35s cubic-bezier(.22,1,.36,1),opacity .25s ease;
}

.gpcx-promo-action:hover{
  background:#5e95f0;
  transform:translateY(-1px);
  box-shadow:10px 11px 18px rgba(0,0,0,.30);
  color:#fff;
  text-decoration:none;
}

.gpcx-promo-action:focus-visible{
  outline:3px solid #1d5fa7;
  outline-offset:3px;
}

.gpcx-before-state{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gpcx-before-label{
  position:relative;
  display:inline-block;
  white-space:nowrap;
  max-width:100%;
  overflow:visible;
  text-overflow:ellipsis;
  text-shadow:0 1px 1px rgba(0,0,0,.18);
}

.gpcx-plan-word{
  position:relative;
  display:inline-block;
}

/* STARTER / STANDARD / PLUS underline:
   white, continuously animates from 0% to 100% and back to 0%. */
.gpcx-plan-word:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:0%;
  height:1px !important;
  min-height:1px !important;
  max-height:1px !important;
  border-radius:999px;
  background:#ffffff !important;
  transform:translateX(-50%);
  animation:gpcx-plan-word-underline 1.8s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events:none;
}

@keyframes gpcx-plan-word-underline{
  0%{width:0%;opacity:.35}
  45%{width:100%;opacity:1}
  55%{width:100%;opacity:1}
  100%{width:0%;opacity:.35}
}

.gpcx-single-plan .gpcx-promo-action{
  flex:1 1 100%;
  width:100%;
}

/* Tablet and mobile: three plans become three compact rows. */
@media(max-width:767px){
  .gpcx-promo-wrap{
    flex-direction:column;
    flex-wrap:nowrap;
    gap:8px;
    padding:6px 7px;
  }

  .gpcx-promo-action,
  .gpcx-single-plan .gpcx-promo-action{
    flex:0 0 auto;
    width:100%;
    min-height:54px;
    padding:8px 10px;
    border-radius:12px;
  }
}

@media(max-width:380px){
  .gpcx-promo-wrap{
    gap:7px;
    padding:6px 7px;
  }

  .gpcx-promo-action,
  .gpcx-single-plan .gpcx-promo-action{
    min-height:52px;
    padding:9px 10px;
  }

  /* Let long button text wrap instead of overflowing on very small phones. */
  .gpcx-before-label{
    white-space:normal;
    text-align:center;
  }
}

@media(prefers-reduced-motion:reduce){
  .gpcx-plan-word:after{
    animation:none;
    width:100%;
    height:1px !important;
    min-height:1px !important;
    max-height:1px !important;
    transform:translateX(-50%);
  }
}

/* Keep typography responsive inside narrow sidebars/containers. */
.gpcx-promo-action,
.gpcx-before-state{
  min-width:0;
}

/* =========================================
   Button title size — the only font-size rules for the button.
   !important + extra specificity so theme styles cannot shrink it.
   ========================================= */
html body .gpcx-promo-wrap a.gpcx-promo-action,
html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-state,
html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-label,
html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-plan-word{
  font-size:25px !important;
  line-height:1.2 !important;
}

/* Tablet portrait and mobile */
@media(max-width:767px){
  html body .gpcx-promo-wrap a.gpcx-promo-action,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-state,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-label,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-plan-word{
    font-size:22px !important;
  }
}

/* Small mobile */
@media(max-width:380px){
  html body .gpcx-promo-wrap a.gpcx-promo-action,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-state,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-before-label,
  html body .gpcx-promo-wrap a.gpcx-promo-action .gpcx-plan-word{
    font-size:19px !important;
  }
}
