.woocommerce #payment .payment_methods.methods label[for="payment_method_wc_gopay_gateway"] {
position: relative;
overflow: hidden;
}
.woocommerce #payment .payment_methods.methods label[for="payment_method_wc_gopay_gateway"] img {
height: auto;
width: auto;
margin-left: auto;
float: right;
}
.payment_method_wc_gopay_gateway_selection {
border-bottom: 1px dashed;
padding: 12px;
display: flex;
flex-wrap: wrap;
position: relative;
overflow: hidden;
}
.wc-gopay-methods-list {
margin: 15px 0;
}
.wc-gopay-method {
border: 1px solid #e0e0e0;
border-radius: 4px;
margin-bottom: 8px;
padding: 12px;
transition: all 0.2s ease;
}
.wc-gopay-method:hover {
border-color: #b0b0b0;
background-color: #f9f9f9;
}
.wc-gopay-method.selected {
border-color: #2271b1;
background-color: #f0f7fc;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.wc-gopay-method-input {
display: flex;
align-items: center;
width: 100%;
}
.wc-gopay-method-input span {
flex: 1;
margin-left: 8px;
font-weight: 500;
}
.wc-gopay-method-image {
max-height: 30px;
width: max-content;
margin-left: 10px;
}
.wc-gopay-description {
margin-bottom: 15px;
}
.payment_wc_tokenize_container {
border-bottom: 1px dashed;
padding: 12px;
}
.payment_card_with_tokenize {
display: flex;
}
.card_selection_container {
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid #f1f5f9;
}
.payment_wc_store_token {
margin-top: 12px;
display: flex;
align-items: center;
gap: 7px;
}
.payment_wc_store_token label {
display: flex;
align-items: center;
font-size: 14px;
color: #374151;
cursor: pointer;
margin-bottom: 0;
} .gopay-card-list {
margin: 15px 0;
padding: 15px;
background: #fdfdfd;
border: 1px solid #e1e1e1;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.gopay-card-list__title {
font-weight: 600;
font-size: 15px;
margin-bottom: 12px;
color: #2c3338;
}
.gopay-card-options {
display: flex;
flex-direction: column;
gap: 8px;
}
.gopay-card-option {
position: relative;
display: flex;
align-items: center;
padding: 12px 16px;
border: 2px solid #eee;
border-radius: 10px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.gopay-card-option:hover {
border-color: #d1d1d1;
background: #fafafa;
transform: translateY(-1px);
}
.gopay-card-option input[type="radio"] {
width: 15px;
height: 15px;
cursor: pointer;
accent-color: initial;
} .gopay-card-option:has(input[type="radio"]:checked) {
border-color: #1a1a1a;
background: #f8f8f8;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.gopay-card-option__content {
margin-left: 10px;
display: flex;
align-items: center;
flex: 1;
gap: 12px;
min-width: 0;
}
.gopay-card-option__art {
height: 28px;
width: 40px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
background: #fff;
flex-shrink: 0;
}
.gopay-card-option__details {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
min-width: 0;
overflow: hidden;
}
.gopay-card-option__brand {
font-weight: 600;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.gopay-card-option__number {
color: #666;
font-family: monospace;
font-size: 14px;
letter-spacing: 0.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.gopay-card-option__expiry {
color: #888;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}.gopay-cards-table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
} .gopay-cards-table th,
.gopay-cards-table td {
padding: 8px;
}
.gopay-cards-table thead th {
border-bottom: 1px solid #ccc;
text-align: left;
} .gopay-cards-table th:nth-child(1),
.gopay-cards-table td:nth-child(1) {
width: 25%;
} .gopay-cards-table th:nth-child(2),
.gopay-cards-table td:nth-child(2) {
width: 40%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: 2px;
}
.gopay-cards-table th:nth-child(2) {
letter-spacing: normal;
} .gopay-cards-table th:nth-child(3),
.gopay-cards-table td:nth-child(3) {
width: 15%;
text-align: center;
white-space: nowrap;
} .gopay-cards-table th:nth-child(4),
.gopay-cards-table td:nth-child(4) {
width: 20%;
text-align: right;
}
.gopay-card-number {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.gopay-masked-pan {
flex: 0 0 auto;
}
.gopay-delete-confirm span {
font-size: 15px;
}
.gopay-delete-wrapper button {
padding: 0 7px;
}
.gopay-card-art {
max-height: 64px;
width: auto;
border-radius: 5px;
box-shadow: 0 1px 4px rgba(0,0,0,0.12);
vertical-align: middle;
}
.gopay-card-art--suspended {
opacity: 0.45;
filter: grayscale(80%);
}
.gopay-card-row--suspended td {
opacity: 0.7;
}
.gopay-suspended-badge {
display: inline-block;
margin-top: 5px;
padding: 2px 7px;
background: #fff3cd;
color: #856404;
border: 1px solid #ffc107;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.03em;
text-transform: uppercase;
cursor: help;
position: relative;
}
.gopay-suspended-badge::after {
content: attr(aria-label);
display: none;
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
width: 220px;
padding: 7px 10px;
background: #333;
color: #fff;
font-size: 12px;
font-weight: 400;
letter-spacing: normal;
text-transform: none;
border-radius: 5px;
line-height: 1.4;
z-index: 10;
pointer-events: none;
white-space: normal;
}
.gopay-suspended-badge:hover::after {
display: block;
}
@media (max-width: 768px) {
.gopay-cards-table {
border: 0;
}
.gopay-cards-table thead {
display: none;
}
.gopay-cards-table,
.gopay-cards-table tbody,
.gopay-cards-table tr {
display: block;
width: 100%;
}
.gopay-cards-table tbody td {
display: block;
width: 100%;
position: relative;
padding: 8px 0;
border: none;
text-align: right;
}
.gopay-cards-table tr {
margin-bottom: 20px;
padding: 0;
border: 1px solid #eee;
border-radius: 8px;
}
.gopay-cards-table tbody td::before {
content: attr(data-label);
position: absolute;
left: 0;
font-weight: 600;
color: #666;
text-align: left;
letter-spacing: normal;
}
.gopay-card-number {
justify-content: flex-end;
white-space: nowrap;
}
.gopay-delete-wrapper {
display: flex;
justify-content: flex-end;
}
.gopay-delete-confirm {
display: flex;
align-items: flex-end;
justify-content: flex-end;
gap: 10px;
}
.gopay-cards-table tbody td:nth-child(n) {
width: auto;
text-align: right;
margin: 15px;
}
}
@media (max-width: 400px) {
.gopay-masked-pan {
font-size: 0;
letter-spacing: 0;
}
.gopay-masked-pan::before {
content: attr(data-short);
font-size: 18px;
letter-spacing: 2px;
}
}