.payment-gateway-wrapper ul {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.payment-gateway-wrapper ul li {
    width: 100px;
    cursor: pointer;
    box-sizing: border-box;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.payment-gateway-wrapper ul li {
    margin: 5px;
}

.payment-gateway-wrapper ul li.selected:after,
.payment-gateway-wrapper ul li.selected:before {
    visibility: visible;
    opacity: 1;
}

.payment-gateway-wrapper ul li:before {
    border: 2px solid var(--main-color-one);
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: '';
    visibility: hidden;
    opacity: 0;
    transition: all 300ms;
}

.payment-gateway-wrapper ul li:after {
    position: absolute;
    right: 0;
    top: 0;
    width: 15px;
    height: 15px;
    background-color: var(--main-color-one);
    content: "\f00c";
    font-weight: 900;
    color: #fff;
    font-family: "Line Awesome Free";
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    padding-top: 2px;
    padding-left: 2px;
    visibility: hidden;
    opacity: 0;
    transition: all 300ms;
}

/* ICICI option: readable horizontal logo and label inside a responsive card. */
.payment-gateway-wrapper ul li.icici-payment-option {
    width: 210px;
    max-width: 210px;
    min-width: 0;
    height: auto;
    min-height: 72px;
    margin: 8px 0;
    padding: 10px 12px;
    gap: 8px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 39, 75, .06);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.payment-gateway-wrapper ul li.icici-payment-option:hover {
    border-color: #c8a646;
    box-shadow: 0 4px 14px rgba(24, 39, 75, .11);
}
.payment-gateway-wrapper ul li.icici-payment-option.selected {
    border-color: #c8a646;
    background: #fffdf7;
    box-shadow: 0 0 0 2px rgba(200, 166, 70, .16);
}
.payment-gateway-wrapper ul li.icici-payment-option:before { display: none; }
.payment-gateway-wrapper ul li.icici-payment-option:after {
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    padding: 3px 0 0;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: #c8a646;
}
.payment-gateway-wrapper ul li.icici-payment-option .img-select {
    display: flex;
    flex: 0 0 100px;
    width: 100px;
    height: 44px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.payment-gateway-wrapper ul li.icici-payment-option .img-select img {
    display: block;
    max-width: 100%;
    max-height: 42px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.icici-payment-option__name {
    display: block;
    flex: 0 0 auto;
    padding-right: 14px;
    color: #263445;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}
@media (max-width: 575px) {
    .payment-gateway-wrapper ul li.icici-payment-option {
        width: min(100%, 210px);
        max-width: 210px;
        min-height: 68px;
        padding: 9px 10px;
        gap: 7px;
    }
    .payment-gateway-wrapper ul li.icici-payment-option .img-select {
        flex-basis: 94px;
        width: 94px;
        height: 42px;
    }
    .icici-payment-option__name { font-size: 13px; }
}


.payment-gateway-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 20px 0
}

.payment-gateway-wrapper ul li {
    max-width: 100px;
    cursor: pointer;
    box-sizing: border-box;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

.payment-gateway-wrapper ul li.selected:after,
.payment-gateway-wrapper ul li.selected:before {
    visibility: visible;
    opacity: 1
}

.payment-gateway-wrapper ul li:before {
    border: 2px solid #ffc107;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    content: '';
    visibility: hidden;
    opacity: 0;
    transition: all .3s
}

.payment-gateway-wrapper ul li:after {
    position: absolute;
    right: 0;
    top: 0;
    width: 15px;
    height: 15px;
    background-color: var(--main-color-two);
    content: "\f00c";
    font-weight: 900;
    color: #fff;
    font-family: "Line Awesome Free";
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    padding-top: 2px;
    padding-left: 2px;
    visibility: hidden;
    opacity: 0;
    transition: all .3s
}

.payment-gateway-wrapper ul li {
    min-width: 80px;
    margin: 5px
}

/* Keep the ICICI option compact after generic payment tile rules. */
.payment-gateway-wrapper ul li.icici-payment-option {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    overflow: hidden !important;
}
.payment-gateway-wrapper ul li.icici-payment-option .img-select {
    display: flex !important;
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 42px !important;
    min-width: 100px !important;
    overflow: visible !important;
}
.payment-gateway-wrapper ul li.icici-payment-option .img-select img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 42px !important;
    object-fit: contain !important;
}
.payment-gateway-wrapper ul li.icici-payment-option .icici-payment-option__fallback {
    width: 100%;
    height: 100%;
}
.payment-gateway-wrapper ul li.icici-payment-option .icici-payment-option__name {
    flex: 0 0 auto !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
}
