main {
    min-height: calc(100vh - var(--header-height));
}

.profile-content {
    width: calc(100% - 40px);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    max-width: 700px;
    text-decoration: none;
}

.profile-view-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
}

.profile-header-left-nav {
    cursor: pointer;
    font-size: 25px;
}

.profile-header-title {
    font-size: 26px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.profile-view-row,
.profile-view-back {
    position: relative;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e1e1e1;
    cursor: pointer;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    color: var(--text-color);
    text-decoration: none;
}

.profile-view-row-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}


.profile-view-back {
    width: 50px;
    margin-right: auto;
}

.profile-view-backbutton {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 11px;
    font-size: 25px;
}

.profile-view-row i {
    font-size: 25px;
}
.profile-signature {
    color: var(--text-color);
    margin-bottom: 20px;
    margin-top: auto;
}


/* Address Management Styles */

.address-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 20px;
}
/* Address Form Group Styles */
.address-form-group {
    width: 100%;
}

/* Base styles for the address input */
.address-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    background: var(--contrast-item-background);
    color: var(--text-color);
}

/* Row for grouped inputs (e.g., first and last name) */
.address-form-row {
    display: flex;
    gap: 16px;
}

/* When there are two inputs in a row */
.address-form-row .address-input {
    flex: 1;
}

/* Style for the label */
.address-form-group label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
    font-weight: bold;
}


@media (max-width: 1000px) {
    .profile-view-container {
        min-height: calc(100vh - 80px);
    }

    .profile-signature {
        display: none;
    }
}

.horizontal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}



.reg-checkbox-container,
.smooth-checkbox-container {
	display: flex;
	width: 100%;
	background-color: transparent;
	align-items: center;
	flex-direction: row;
	justify-content: space-between;
	border-radius: 8px;
	height: 40px;
	box-shadow: inset 0 0 0px 1px #ddd;
}
.reg-checkbox-container {
	cursor: pointer;
}

.reg-checkbox-container span,
.smooth-checkbox-container span {
	margin-left: 5px;
	color: #444;
	display: flex;
	align-items: center;
	gap: 4px;
	user-select: none;
}

.smooth-checkbox {
    position: relative;
    width: 55px;
    height: 28px;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgb(137, 137, 137);
    outline: none;
    border-radius: 20px;
    transition: background-color 0.3s;
    cursor: pointer;
    margin: 5px;
    padding: 0;
}
.smooth-checkbox.large {
	background-color: #df5749;
}
.smooth-checkbox.large {
	width: 60px;
	margin: 0;
}


.smooth-checkbox:checked {
    background-color: #6cb678;
    /* background-color: #4cd964; */
}

.smooth-checkbox::before {
	content: '';
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	top: 3px;
	left: 3px;
	background-color: #fff;
	transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
}

.smooth-checkbox:checked::before {
    transform: translateX(27px);
}
.smooth-checkbox.large:checked::before {
    transform: translateX(32px);
}

.smooth-checkbox::after {
    content: attr(data-off-text);
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.smooth-checkbox:checked::after {
    content: attr(data-on-text);
    left: 7px;
    right: auto;
}


.reg-checkbox {
    position: relative;
    width: 28px;
    height: 28px;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgb(137, 137, 137);
    outline: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    margin: 5px;
    padding: 0;
}

.reg-checkbox:checked {
    background-color: var(--blue-accent);
}

.reg-checkbox::before {
	content: "";
	position: absolute;
	width: 6px;
	height: 12px;
	left: 10px;
	top: 5px;
	border: solid white;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.2s ease;
}

.reg-checkbox:checked::before {
    transform: rotate(45deg) scale(1);
}

.profile-view-row.action_button {
    width: fit-content;
    padding: 0 1rem;
    background-color: #2c87ff;
    color: white;
    margin-left: auto;
}