/**
 * Portal Functionality Main CSS
 */

/**
 * Portal Functionality Frontend Styles
 */

/**
 * Authentication Styles
 */

/* Authentication options */
.pf-auth-options {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.pf-auth-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 250px;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
}

.pf-auth-option:hover {
    border-color:var(--theme-link-hover-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pf-auth-option img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.pf-auth-smartid img {
    max-height: 30px;
}

.pf-auth-eparaksts img {
    max-height: 30px;
}

/* GDPR Consent */
.pf-gdpr-consent {
    padding-inline: 15px;
    max-width: 550px;
    margin-inline: auto;
}

.pf-gdpr-consent label {
    font-size: 14px;
}

.pf-gdpr-consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.pf-gdpr-consent a {
    text-decoration: underline;
}

/* Order details */
.pf-order-details {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.pf-order-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.pf-order-details-table {
    width: 100%;
    border-collapse: collapse;
}

.pf-order-details-table th,
.pf-order-details-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e5e5e5;
}

.pf-order-details-table th {
    width: 40%;
    font-weight: 600;
    color: #333;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .pf-auth-options {
        flex-direction: column;
        align-items: center;
    }
    
    .pf-auth-option {
        max-width: 100%;
    }
}

/**
 * Smart-ID Authentication Modal Styles
 */
.pf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-modal {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.pf-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.pf-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin: 0;
}

.pf-modal-body {
    padding: 20px;
}

.pf-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pf-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ddd;
    background-color: #f7f7f7;
}

.pf-button-primary {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.pf-button-primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

.pf-button-cancel {
    background-color: #f7f7f7;
    border-color: #ddd;
    color: #333;
}

.pf-button-cancel:hover {
    background-color: #f0f0f0;
}

.pf-form-group {
    margin-bottom: 15px;
}

.pf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pf-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.pf-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.pf-verification-code {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.pf-verification-code h2 {
    font-size: 32px;
    margin: 10px 0;
    color: #2271b1;
}

.pf-status-message {
    text-align: center;
    margin: 20px 0;
}

.pf-loading {
    text-align: center;
    padding: 20px;
}

.pf-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/**
 * Authenticated User Styles
 */
.pf-authenticated-user {
    margin: 30px 0;
    padding: 0;
}

.pf-auth-greeting {
    background-color: #edf7ed;
    border-left: 4px solid #46b450;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.pf-auth-greeting h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2a662f;
    font-size: 20px;
}

.pf-auth-greeting p {
    margin-bottom: 0;
    color: #3c6e40;
}

.pf-auth-details {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 5px;
}

.pf-auth-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.pf-auth-details-table {
    width: 100%;
    border-collapse: collapse;
}

.pf-auth-details-table th,
.pf-auth-details-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e5e5e5;
}

.pf-auth-details-table th {
    width: 40%;
    font-weight: 600;
    background-color: #f5f5f5;
}

