.w-full {
	width: 100%;
}

.page-content {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 10px auto;
	justify-content: center;
}

h2 {
	font-size: 34px;
	font-weight: 600;
}

.checkout-form,
.cart-form,
#payment-container {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 66.66%;
	margin: 2.5rem 1rem;
}

.page-content input,
textarea {
	font-size: 17px;
	border: none;
	padding: 0;
	resize: none;
	background-color: inherit;
}

.page-content input:focus,
textarea:focus {
	border: none;
	box-shadow: none;
}

.page-content .input-field {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.page-content .input-radio {
	display: flex;
	flex-direction: row;
}

.page-content .input-wrap {
	border: solid 2px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.invalid {
	border: solid 2px rgba(167, 0, 0) !important;
}

.error-date {
	display: none;
}

.order-info {
	width: 33.33%;
	margin: 2.5rem 1rem;
	background-color: rgba(0, 0, 0, 0.04);
	padding: 2rem;
}

.cart-list-item {
	display: flex;
	flex-direction: column;
	border-bottom: solid 1px rgba(121, 122, 127, 0.3);
	padding: 0.5rem;
	gap: .5rem;
}

.cart-list-item:first-child,
.cart-list-item:nth-child(2) {
	background-color: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
	padding: 0.7rem;
}

.cart-list-item:last-of-type {
	border-bottom: none;
	margin-bottom: 2rem;
}

.order-info p,
.order-info span,
.order-info label,
.order-info a {
	font-size: 18px;
	color: #555;
	font-weight: 500;
}

.cart-list-value {
	color: rgb(51, 51, 51) !important;
}

#total-value p {
	font-size: 12.75px;
}

#button-place-order,
#proceed-button {
	background-color: #555;
	color: white;
	padding: .5rem;
	text-align: center;
	width: 100%;
	margin: 1.5rem 0;
	font-size: 18px;
	max-width: 200px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}


#button-place-order:hover,
#proceed-button:hover {
	background-color: #000;
	color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transform: scale(1.03);
}


#payment-form .checkout-container {
	width: 100%;
}

#payment-initiation h1 {
	font-size: 17px;
	color: rgb(160, 162, 165);
	font-weight: 400;
}

#payment-initiation select {
	border: solid 2px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	background-color: white;
}


.button-container {
    display: flex;
    justify-content: center; 
    gap: 1rem;
    margin-top: 1rem; 
}

/* Modal "product added to cart"*/


/* Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.cart-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 80%;
    animation: fadeInModal 0.3s ease-out;
}

/* Message Text */
.cart-modal-content p {
    font-size: 1.25rem;
    font-weight: bold;
    color: #155724;
    margin-bottom: 1.5rem;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Buttons */
.cart-modal-button {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    font-weight: bold;
}

/* Continue Shopping Button */
.continue-shopping {
    background-color: #218838;
    color: #ffffff;
    border: none;
}

.continue-shopping:hover {
    background-color: #1e7a34;
    transform: scale(1.05);
}

/* Go to Cart Button */
.go-to-cart {
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
}

.go-to-cart:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Animation for Modal */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}






/* Responsive Media Queries */



@media (min-width: 768px) {
	.page-content {
		flex-wrap: nowrap;
		/* Return to side-by-side layout */
		justify-content: center;
	}



	.checkout-form {
		width: 45%;
		margin-right: 1rem;
	}
}

@media (max-width: 1200px) {
	.page-content {
		padding: 0 10px;
	}

	.order-info {
		width: 80%;
	}


	h2 {
		font-size: 24px;
	}

	.page-content input,
	.page-content textarea {
		font-size: 14px;
		padding: 0.5rem;
	}

	#button-place-order,
	#proceed-button {
		font-size: 1rem;
		padding: 0.5rem;
	}


	.gap-8 {
		gap: 2rem;
		flex-direction: column;

	}
}

@media (max-width: 480px) {

	input,
	textarea {
		font-size: 0.875rem;
	}

	h2 {
		font-size: 1rem;
	}

	.order-info {
		padding: 1rem;
	}
}