.profile-view-container {
    min-height: calc(100vh - 100px);
}

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


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

.profile-view-input-row {
    justify-content: unset;
}

.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: 20px;
    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);
}

/* Floating label container */
.floating-label {
    position: relative;
}

/* Style for the label */
.floating-label label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translate(0px, -50%);
    /* transform: translateY(-50%); */
    color: #888;
    transition: 0.2s ease all;
    pointer-events: none;
    font-size: 16px;
}

/* Style when input is focused or has content */
.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translate(-10px, -100%);
    font-size: 12px;
    color: var(--text-color);
}

/* Focus state for input */
.floating-label input:focus {
    /* border: 1px solid #ccc; */
}

/* Placeholder should be invisible to create the floating effect */
.address-input::placeholder {
    color: transparent;
}


/* 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;
}

.discount-uses-left,
.discount-valid-until {
    position: absolute;
    font-size: 12px;
    color: var(--text-color-dim);
}

.discount-uses-left {
    right: 3px;
    top: 3px;
}

.discount-valid-until {
    right: 3px;
    bottom: 3px;
}

.prof-horizontal {
    display: flex;
    width: 100%;
    gap: 20px;
}

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

    .profile-signature {
        display: none;
    }

    .profile-view-row, .profile-view-input-row, .profile-view-back {
        height: 40px;
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    .prof-horizontal {
        gap: 10px; 
    }
}