﻿/* Ensure images keep aspect ratio and never collapse */
.icon-sec img {
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
    object-fit: contain;
    min-width: 32px;
    min-height: 32px;
    display: block;
}

.icon-sec {
    width: 100% !important;
    border: 2px solid;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

.method-text {
    color: var(--Premium-Black);
}

/* Add styles for selected button */
.icon-sec.selected {
    background-color: var(--In-the-Navy-Blue) !important;
    border: none !important;
}

.icon-sec.selected img {
    filter: invert(100%) brightness(200%);
}

@media (max-width: 768px){
    .method-selection-text{
        font-size: 12px;
    }
}
/* Make text-prem-black white when button is selected */
.icon-sec.selected .method-text {
    color: #fff !important;
}

.method-title{
    font-size: 18px;
}

.method-text {
    width: 100%;
    padding-right: 10px;
}

.method-selection-text {
    width: 100%;
    white-space: normal;
    font-size: 15px;
}

.method-selection-text div {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.mfa-method-btn {
    width: 100%;
    text-align: left;
    display: flex;
}

/* Icon container alignment to top */
.mfa-method-btn > div:first-child {
    align-self: flex-start;
}

.disclaimer-section {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure links don't break layout */
.disclaimer-section a {
    display: inline-block;
    position: relative;
    z-index: 2; /* Make links appear above the button for click events */
    text-decoration: underline;
}

/* Center alignment styles */
#methodselectionpage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heading-container {
    text-align: center;
    width: 100%;
}

.buttons-container {
    margin: 0 auto;
}

.row-centered {
    display: flex;
    justify-content: center;
}

.policy-link-white {
    color: white !important;
}