/* PayWay Checkout Styles */
#payway-channel-selection {
    border: none;
    padding: 0;
    margin: 0;
}

#payway-channel-selection legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.payway-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payway-channel-option {
    margin: 0;
    cursor: pointer;
}

.payway-channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.payway-channel-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.payway-channel-icon {
    width: auto;
    height: 24px;
    max-width: 42px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex: 0 0 auto;
}

/* New PayPal logo is wider and includes its own card frame; give it a touch more room. */
.payway-channel-icon[src*="paypal.svg"] {
    height: 26px;
    max-width: 48px;
}

.payway-channel-option:hover .payway-channel-content {
    border-color: #64748b;
    background-color: #fbfcff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.payway-channel-option input[type="radio"]:checked + .payway-channel-content {
    border-color: #0f172a;
    background-color: #f8fafc;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1), 0 8px 16px rgba(15, 23, 42, 0.12);
}

.payway-channel-name {
    line-height: 1;
}

/* WPA UI preference: icon-only payment method display */
.payway-channel-name {
    display: none;
}

.payway-channel-content {
    justify-content: center;
    min-width: 64px;
}

.payway-selected-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.payway-selected-label {
    display: none;
}

.payway-channel-content-static {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}
