/* Reveal the existing full-page ALFA star field behind the provider section. */
#business-original,
#business-original > .wrapper,
#business-original #payments-gateway{background:transparent}
#business-original #payments-gateway{
 --gateway-bg:#040a0f;
 --gateway-panel:#0a171c;
 --gateway-line:rgba(151,193,191,.18);
 --gateway-muted:#8ba5ad;
 --gateway-cyan:#a9e5d6;
 --gateway-green:#91d9c2;
 border-bottom-color:rgba(151,193,191,.12);
}
#payments-gateway .alfa-gateway__container{width:100%!important;max-width:1440px;margin:0 auto;padding-left:5.4%;padding-right:5.4%}
#payments-gateway .alfa-gateway__provider-option{
 background:rgba(6,17,23,.72);
 border-color:rgba(151,193,191,.18);
}
#payments-gateway .alfa-gateway__provider-option.is-active{
 background:rgba(36,70,71,.26);
 border-color:rgba(151,217,201,.55);
 box-shadow:inset 0 -2px #a9e5d6;
}
#payments-gateway .alfa-gateway__provider-option:hover{border-color:rgba(151,217,201,.55)}
#payments-gateway .alfa-gateway__details{
 background:linear-gradient(145deg,rgba(12,30,35,.86),rgba(5,15,20,.88));
 border-color:rgba(151,193,191,.18);
 box-shadow:0 24px 65px #0003;
}
#payments-gateway .alfa-gateway__provider-continue:not(:disabled){
 background:linear-gradient(115deg,#c4eddf,#9edccb);
 box-shadow:0 8px 28px #91d9c20c;
 color:#12372e;
}
#payments-gateway .alfa-gateway__provider-continue:not(:disabled):hover{box-shadow:0 8px 28px #91d9c21c}
#payments-gateway .alfa-gateway__matrix-wrap{scrollbar-color:#a9e5d6 #0a171c}
#payments-gateway .matrix__head{background:rgba(151,217,201,.035)}
#payments-gateway .alfa-gateway__provider-flow i{background:linear-gradient(90deg,#274143,#a9e5d6,#274143)}
@media(max-width:600px){#payments-gateway .alfa-gateway__container{padding-left:24px;padding-right:24px}}
@media(max-width:359px){#payments-gateway .alfa-gateway__container{padding-left:20px;padding-right:20px}}
@media(max-width:1200px){
 #payments-gateway .alfa-gateway__provider-option{grid-template-columns:48px minmax(0,1fr);row-gap:8px}
 #payments-gateway .provider-option__mark{grid-row:1 / 3}
 #payments-gateway .alfa-gateway__provider-option > i{grid-column:2;justify-self:start;max-width:none}
 #payments-gateway .alfa-gateway__provider-option strong,
 #payments-gateway .alfa-gateway__provider-option small{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.4}
}

/* Keep all provider names readable before the cards become a single column. */
@media (max-width:900px){
 #payments-gateway .alfa-gateway__provider-list{grid-template-columns:1fr}
}
#payments-gateway [data-provider="plisio"] > i{white-space:normal;max-width:150px;line-height:1.35}
/* The dialog scrolls vertically; long titles cannot move the close button off screen. */
#gateway-dialog{box-sizing:border-box;overflow-x:hidden;overflow-y:auto;max-height:calc(100vh - 32px)}
#gateway-dialog .gateway-dialog__surface{box-sizing:border-box;width:100%;min-width:0;margin:0}
#gateway-dialog .gateway-dialog__head > div{min-width:0}
#gateway-dialog .gateway-dialog__head h2{overflow-wrap:anywhere}
@media (max-width:600px){
 #gateway-dialog .gateway-dialog__surface{padding:24px 20px}
 #gateway-dialog .gateway-dialog__head{gap:12px}
 #gateway-dialog .gateway-dialog__head h2{font-size:28px}
 #gateway-dialog .gateway-dialog__route{padding:20px 16px}
 #gateway-dialog .gateway-dialog__route > div{gap:12px}
 #gateway-dialog dl div{gap:16px}
 #gateway-dialog .gateway-dialog__head button{flex-basis:32px}
}
@media (max-width:600px){
 #gateway-dialog .gateway-dialog__head{position:relative;display:block}
 #gateway-dialog .gateway-dialog__head > div{width:100%}
 #gateway-dialog .gateway-dialog__head > div > span{display:block;padding-right:42px;line-height:1.6}
 #gateway-dialog .gateway-dialog__head button{position:absolute;right:0;top:-5px}
 #gateway-dialog .gateway-dialog__head h2{overflow-wrap:normal}
}
@media (max-width:359px){#gateway-dialog .gateway-dialog__head h2{font-size:26px}}
