.swal2-container {
	z-index: 30000 !important;
}
.swal2-popup {
    width: 650px !important;
	max-width: 90vw !important;
    min-height: 300px !important;
    box-sizing: border-box;
    grid-template-columns: 1fr !important;
}
.swal2-html-container {
    min-height: 200px !important;
    overflow: visible !important;
}
.swal2-popup .filepond--root {
    display: block !important;         /* Tvinga blocknivå så den sträcker sig över hela sin container */
    position: static !important;     /* Viktigt för att barnens absoluta position ska hålla sig inom rooten */
    overflow: hidden !important;       /* Klipp barn som annars sticker utanför */
    width: 100% !important;
    min-width: 150px !important;
    margin: 0 !important;
    background: #fafbfc !important;
    border: 2px dashed #e50050 !important;
    border-radius: 8px !important;
    padding: 16px 0 !important;
    box-sizing: border-box !important;
    transition: background 0.2s;
    contain: none !important;
}
.swal2-popup .filepond--drop-label {
	font-weight: bold;
	font-size: 1.1em;
	color: #444;
}
.swal2-popup .filepond--label-action {
	color: #e50050 !important;
	cursor: pointer;
	text-decoration: underline !important;
}
.swal2-popup .filepond--list-scroller {
	min-height: 60px !important;
	max-height: 180px !important;
    -webkit-mask: none !important;
    mask: none !important;
    background: transparent !important; /* valfritt, men kan hjälpa */
}

/* Dölj swal2-loader som syns hela tiden */
.swal2-loader {
	display: none !important;
}

/* Dölj swal2-loader även när popupen är färdig */
.swal2-popup .swal2-loader {
	display: none !important;
}

/* Stäng-knapp styling */
.swal2-close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 30px !important;
	height: 30px !important;
	border: none !important;
	background: transparent !important;
	color: #666 !important;
	font-size: 20px !important;
	cursor: pointer !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.2s !important;
}

.swal2-close:hover {
	background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Dölj swal2-cancel eftersom vi har swal2-close */
.swal2-popup .swal2-actions .swal2-cancel {
	display: none !important;
}

/* Ändra ordningen på knapparna */
.swal2-popup .swal2-actions .swal2-confirm {
	order: 2 !important;
}

.swal2-popup .swal2-actions .swal2-deny {
	order: 1 !important;
}
.filepond_upload {
	position:relative;
}

/* Dölj hela FilePond UI */
.swal2-popup .filepond--root {
	display: none !important;
}

/* Filrutor som i jobb/index.php */
.filelist {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	min-height: 20px;
}

/* Progress-indikator */
.upload-progress {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	border: 2px solid #ddd;
	background-color: #f8f9fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.upload-progress::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	height: var(--progress, 0%);
	width: 100%;
	background-color: #00A4EC;
	transition: height 0.3s ease;
	opacity: 0.3;
}

.upload-progress-text {
	font-size: 12px;
	font-weight: bold;
	color: #666;
	z-index: 1;
}

.cv_file {
	width: 80px;
	height: 80px;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border: 2px solid #ddd;
	cursor: pointer;
	background-color: #f8f9fa;
}

.cv_file.white-icon {
	background-color: #f5f5f5;
}

.cv_file .feather {
	width: 24px;
	height: 24px;
	color: #666;
}

.cv_file .trash-file {
	position: absolute;
	top: 5px;
	right: 5px;
	color: #e50050;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	padding: 2px;
	cursor: pointer;
	width: 16px;
	height: 16px;
}

/* Styling för SweetAlert2 title */
.swal2-title {
    background-color: #EAF8FF;
	font-size: 1.2rem;
	text-align: left;
    padding: 14px;
	border-radius:14px;
	grid-row: 1 !important;
	order: 1 !important;
}

/* Styling för SweetAlert2 html container */
.swal2-html-container {
    grid-row: 999 !important;
	order: 999 !important;
	min-height: 200px !important;
	overflow: visible !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
.swal2-popup {
	border-radius:14px;
}


/* Placera action-buttons sist när det är en success-popup */
.swal2-icon-success .swal2-actions {
	order: 999 !important;
	grid-row: 999 !important;
}

/* Fixa layout för success-popup */
.swal2-icon-success .swal2-title {
	grid-column: 1 !important;
	grid-row: 1 !important;
	order: 1 !important;
}

.swal2-icon-success .swal2-icon {
	grid-column: 1 !important;
	grid-row: 2 !important;
	order: 2 !important;
}

.swal2-icon-success .swal2-html-container {
	grid-column: 1 !important;
	grid-row: 3 !important;
	order: 3 !important;
}

/* Styling för knappar med ikoner */
.swal2-confirm, .swal2-cancel {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
}

/* Vänsterställ text i mail-formuläret */
#mail-form {
	text-align: left !important;
}

/* Custom actions layout med profilbild */
.swal2-actions {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	margin: 0 !important;
	padding: var(--swal2-html-container-padding) !important;
	justify-content: space-between !important;
}





/* Placera knapparna i gruppen */
.swal2-actions .swal2-confirm,
.swal2-actions .swal2-deny,
.swal2-actions .swal2-cancel {
	margin: 0 !important;
}

#mail-form label {
	margin-bottom: 0px !important;
	margin-top: 14px !important;
	min-height:auto;
}
#mail-form label span {
	margin-bottom: 0px;
}
#mail-form div {
	margin-bottom: 8px !important;
}

/* Ta bort extra marginaler från sista elementet i formuläret */
#mail-form div:last-child {
	margin-bottom: 0 !important;
}

#mail-form input,
#mail-form textarea {
	text-align: left !important;
}

.swal2-confirm .feather, .swal2-cancel .feather {
	vertical-align: middle !important;
}
.swal2-styled {
	border-radius:30px;
}
.swal2-confirm {
	background-color:#00A4EC;
}