/* PassageMail Email Provisioning — Checkout Styles */

.pmep-email-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
}

.pmep-section-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.pmep-section-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

/* Username + domain row */
.pmep-email-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

.pmep-username-wrap {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}

.pmep-username-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.pmep-username-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    font-family: monospace;
    background: transparent;
    min-width: 100px;
}

.pmep-domain-suffix {
    padding: 10px 12px 10px 0;
    font-size: 14px;
    font-family: monospace;
    color: #6b7280;
    white-space: nowrap;
    user-select: none;
}

.pmep-check-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pmep-check-btn:hover {
    background: #2563eb;
}

.pmep-check-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* Availability result */
.pmep-result {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.pmep-result.available {
    color: #16a34a;
    font-weight: 500;
}

.pmep-result.unavailable {
    color: #dc2626;
    font-weight: 500;
}

.pmep-result.checking {
    color: #6b7280;
    font-style: italic;
}

.pmep-result.error {
    color: #dc2626;
}

/* Password section */
.pmep-password-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.pmep-field {
    margin-bottom: 12px;
}

.pmep-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.pmep-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pmep-field input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Password requirements */
.pmep-requirements {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.pmep-req {
    font-size: 12px;
    color: #dc2626;
    line-height: 1.8;
    transition: color 0.2s;
}

.pmep-req.met {
    color: #16a34a;
}
