/**
 * Montonio for RCP Styles
 *
 * Styles for the payment method selection in the registration form
 */

.rcp-montonio-payment-methods {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rcp-montonio-payment-methods h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.rcp-montonio-section {
    margin-bottom: 30px;
}

.rcp-montonio-section:first-child {
    border-bottom: none;
    padding-bottom: 0;
}


.rcp-montonio-section h5 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
}

/* Add icons to section headings */
.rcp-montonio-section h5:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Card icon */
.rcp-montonio-section:first-of-type h5:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%23444" d="M64 32C28.7 32 0 60.7 0 96v32H576V96c0-35.3-28.7-64-64-64H64zM576 224H0V416c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V224zM112 352h64c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm112 16c0-8.8 7.2-16 16-16H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H240c-8.8 0-16-7.2-16-16z"/></svg>');
}

/* Bank icon */
.rcp-montonio-section:last-of-type h5:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%23444" d="M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320h64v64zm0-128H64V192h64v64zm128 128H192V320h64v64zm0-128H192V192h64v64zm128 128H320V320h64v64zm0-128H320V192h64v64zm128 128H448V320h64v64zm0-128H448V192h64v64z"/></svg>');
}

.rcp-montonio-banks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.rcp-montonio-bank {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    width: 120px;
    height: 60px;
    transition: all 0.2s ease;
    position: relative;
    background-color: #fff;
}

/* Card payment specific styling */
.rcp-montonio-card {
    width: 120px;
}

/* Hover state */
.rcp-montonio-bank:hover {
    border-color: #bbb;
    background-color: #f9f9f9;
}

/* Hide the radio button */
.rcp-montonio-bank input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rcp-montonio-bank img {
    max-width: 100px;
    max-height: 35px;
    transition: all 0.2s ease;
    object-fit: contain;
}

/* Selected state styling */
.rcp-montonio-bank input:checked + img {
    transform: scale(1.05);
}

/* Selected state for the whole label */
label.rcp-montonio-bank:has(input:checked),
.rcp-montonio-bank input:checked ~ .rcp-montonio-bank {
    border-color: #0073aa;
    border-width: 2px;
    background-color: #e6f3f9;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .rcp-montonio-banks {
        justify-content: center;
    }

    .rcp-montonio-bank {
        width: 110px;
        height: 55px;
    }
}

.rcp-montonio-country {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}
