/* CSS for My Account Payment Icons */

/* The main container for the payment icons, initially hidden */
.payment-icons-container {
    padding: 20px 0;
    /* This container itself doesn't need flex, its child .payment-icon-group will handle it */
}

/* The actual flex container for the icons */
.payment-icon-group {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    align-items: center;
    flex-wrap: wrap; /* Allow icons to wrap to the next line if needed */
    gap: 15px; /* Space between icons */
}

.payment-icon {
    width: 80px; /* Slightly larger default size */
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent; /* For selected state */
    border-radius: 5px;
    padding: 5px;
}

.payment-icon:hover {
    transform: scale(1.1); /* Cozy interactive effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.payment-icon.selected {
    transform: scale(1.2); /* Pop up with zoom if selected, adjusted for new base size */
    border-color: #007bff; /* Highlight selected icon */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* When an icon is selected, other icons can be slightly de-emphasized if needed */
.payment-icon-group.selected .payment-icon:not(.selected) {
    opacity: 0.7;
    filter: grayscale(50%);
}

/* Styles for the payment form that appears/hides */
.payment-form-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: none; /* Hidden by default */
    text-align: center;
}

.payment-form-container.active {
    display: block; /* Show when active */
}

/* Basic styling for form elements within the container (adjust as needed) */
.payment-form-container input[type="text"],
.payment-form-container input[type="email"],
.payment-form-container input[type="password"],
.payment-form-container select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment-form-container button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.payment-form-container button:hover {
    background-color: #218838;
}
