﻿* {
	box-sizing: border-box;
}
/* Style the top navigation bar */
.topnav {
	display: flex;
	flex-wrap: wrap;
	background-color:#f8f2e3;
	margin-bottom: 50px;
	margin-top: 30px;
	color: #000000;
}
/* Style the topnav links */
.topnav a {
	flex: 1 1 auto;
	min-width: 120px;
	display: block;
	color: #000000;
	text-align: center;
	padding: 14px 8px;
	text-decoration: none;
	font-family: "arial", Times, serif;
	font-size: x-large;
	transition: background-color 0.3s;
	/*border: medium #CC9900 solid;*/
}
/* Change color on hover */
.topnav a:hover {
	background-color: #ddd;
	color: black;
}
.topnav .icon {
  display: none;
}


.topnav .active {
 	background-color: #E5E5E5;

}

/* Create unequal columns that floats next to each other */
.column {
	float: left;
	padding: 10px;
}
/* Left and right column */
.column.side {
	width: 25%;
}
/* Middle column */
.column.middle {
	width: 50%; 
	padding:0px;
	background-color:#FFFFFF;
	padding:15px;
	}
	.colcust {
		float: left;

}
/* Clear floats after the columns */
.row:after {
	content: "";
	display: table;
	clear: both;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 960px) {
	.column.side, .column.middle, .colcust {
		width: 100%;
	}

	.column.middle {
		padding: 10px;
	}

	/* Adjust navigation font size for tablets */
	.topnav a {
		font-size: large;
		padding: 12px 6px;
	}
}

@media screen and (max-width: 600px) {
	.topnav {
		display: flex;
		flex-direction: column;
	}

	.topnav a:not(.active) {
		display: none;
	}

	.topnav a.icon {
		display: block;
		align-self: flex-end;
	}

	.topnav a {
		width: 100%;
		font-size: large;
		padding: 12px 8px;
		text-align: left;
	}

	.topnav a.active {
		background-color: #f8f2e3;
	}

	.topnav.responsive {
		display: flex;
		flex-direction: column;
	}

	.topnav.responsive .icon {
		align-self: flex-end;
	}

	.topnav.responsive a {
		display: block;
		width: 100%;
		text-align: left;
	}

	.form-Delivery input,
	.form-Delivery select,
	.form-Delivery textarea,
	.form-Delivery span,
	.FInput {
		width: 100%;
	}

	th {
		padding: 0px;
		font-size: x-small;
	}

	table, th, td {
		font-size: medium;
	}

	.sbutton {
		width: 90%;
		font-size: medium;
	}

	.nbutton {
		font-size: large;
		padding: 8px;
	}

	.bdel, .bpu {
		width: 48%;
		font-size: large;
	}

	.switch-button {
		width: 200px;
		font-size: large;
	}

	.switch-button:before {
		width: 100px;
	}

	.switch-button-checkbox:checked + .switch-button-label:before {
		transform: translateX(100px);
	}

	.switch-button-checkbox + .switch-button-label {
		font-size: large;
	}
}

.sbutton {
	display: block;
	width: 70%;
	border-radius: 25px;
	border-color: #B78900;
	background-color: #FDF1CC;
	margin: 10px auto 10px auto;
	height: 45px;
	font-family: 'arial';
	font-size: large;
	font-weight: bold;
}
.nbutton {
	display: block;
	border-radius: 50px;
	border: none;
	background: linear-gradient(135deg, #B78900 0%, #9a7300 100%);
	color: white;
	margin: 7px 7px 7px 7px;
	padding: 14px 32px;
	font-family: 'Raleway', 'arial', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	float: right;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(183, 137, 0, 0.3);
	transition: all 0.3s ease;
}
.nbutton:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(183, 137, 0, 0.4);
	background: linear-gradient(135deg, #d4a000 0%, #B78900 100%);
}
.nbutton:active {
	transform: translateY(0);
}
.bdel {
	display: block;
	background-color: #B78900; /*margin: 15px 15px 15px 0;*/;
	font-family: 'arial';
	font-size: xx-large;
	font-weight: bold;
	float: left;
	width: 30%;
	outline: none;
}
.bpu {
	display: block;
	border: 3px solid #B78900;
	background-color: #FFFFFF; /*margin: 15px 15px 15px 15px;*/;
	font-family: 'arial';
	font-size: xx-large;
	font-weight: bold;
	float: left;
	width: 30%;
	outline: none;
}
table, th, td {
	border: 3px solid #C89159;
	border-collapse: collapse;
	font-size: large;
}
th, td {
}
th {
	padding: 3px 0.5px 3px 0.5px;
	text-align: center;
	background-color: #C89159;
	font-family: David;
	text-align: center;
}
td {
	padding: 3px 0.5px 3px 0.5px;
	text-align: right;
}
.tab {
}
.TextBox {
	outline: none;
	padding: 8px;
	display: block;
	border-style:none;
	border-bottom-color: #B78900;
	border-bottom-style: solid;
}
input.Textbox {
	display: block;
	float: left;
	margin: 10px;
}
.qty {
	font-size: x-large;
text-align: center;
	font-family: David;
	border-style: none;
	outline: none;
		width: 100%;
}
.tbl {
	width: 100%;
	text-align: right;
	font-family: David;
	border-style: none;
	outline: none;
}
.lbl {
	display: block;
}
.subto {
	text-align: center;
	font-size: x-large;
	font-family: "arial";
}

.form-Delivery input,
.form-Delivery select,
.form-Delivery textarea,
.FInput {
	margin-top: 3px;
	padding: 15px;
	font-size: 16px;
	width: 100%;
	border-radius: 3px;
	border: 1px solid #dcdcdc;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.ste {
padding:2px;
	background:#F8F8F8;
	border:thin #DDDDDD solid;
	}

/*Style New switch */
.switch-button {
	background: rgba(250, 220, 126, 0.56);
	border-radius: 30px;
	overflow: hidden;
	width: 240px;
	text-align: center;
	font-size: x-large;
	letter-spacing: 1px;
	/*color: white#155FFF;*/ 
	position: relative;
	padding-right: 120px;
	position: relative;
}

	.switch-button:before {
		content: "Pick Up";
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		width: 120px;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 3;
		pointer-events: none;
		color:black;

	}

.switch-button-checkbox {
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 2;


}

	.switch-button-checkbox:checked + .switch-button-label:before {
		transform: translateX(120px);
		transition: transform 300ms linear;
		
	}

	.switch-button-checkbox + .switch-button-label {
		position: relative;
		padding: 15px 0;
		display: block;
		user-select: none;
		pointer-events: none;
		font-size: x-large;
		color:black;
	}

		.switch-button-checkbox + .switch-button-label:before {
			content: "";
			background: #b78900;
			height: 100%;
			width: 100%;
			position: absolute;
			left: 0;
			top: 0;
			border-radius: 30px;
			transform: translateX(0);
			transition: transform 300ms;
			color:black;
		}

		.switch-button-checkbox + .switch-button-label .switch-button-label-span {
			position: relative;
		}

/* Loading States */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #B78900;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	margin-top: 15px;
	font-size: large;
	color: #666;
	font-family: Arial, sans-serif;
}

.loading-container {
	text-align: center;
}

/* Button Loading State */
.btn-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.7;
}

.btn-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

/* Order Cards for My Orders page */
.order-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.order-number {
	font-weight: bold;
	font-size: large;
	color: #333;
}

.order-status {
	padding: 4px 12px;
	border-radius: 15px;
	font-size: small;
	font-weight: bold;
}

.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-approved {
	background: #d4edda;
	color: #155724;
}

.status-rejected {
	background: #f8d7da;
	color: #721c24;
}

.order-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	font-size: medium;
}

.order-detail-item {
	display: flex;
	flex-direction: column;
}

.order-detail-label {
	color: #888;
	font-size: small;
}

.order-detail-value {
	color: #333;
	font-weight: 500;
}

/* Profile Page Styles */
.profile-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.profile-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.profile-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #B78900;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: x-large;
	font-weight: bold;
}

.profile-name {
	font-size: x-large;
	font-weight: bold;
	color: #333;
}

.profile-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #d4edda;
	color: #155724;
	border-radius: 10px;
	font-size: small;
	margin-left: 8px;
}

.form-group {
	margin-bottom: 15px;
}

.form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #555;
}

/* Alert Messages */
.alert {
	padding: 12px 20px;
	border-radius: 5px;
	margin-bottom: 15px;
	font-size: medium;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-info {
	background: #cce5ff;
	color: #004085;
	border: 1px solid #b8daff;
}

/* Mobile responsive for new elements */
@media screen and (max-width: 600px) {
	.order-details {
		grid-template-columns: 1fr;
	}

	.order-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.profile-header {
		flex-direction: column;
		text-align: center;
	}

	.profile-section {
		padding: 15px;
	}
}

/* ============================================
   Payment Processing Loader Styles
   ============================================ */
.payment-processing-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.payment-loader {
	text-align: center;
	padding: 40px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	max-width: 400px;
	width: 90%;
}

.loader-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #CC9900;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.payment-loader h3 {
	color: #333;
	margin: 0 0 10px;
	font-size: 1.5rem;
}

.payment-loader p {
	color: #666;
	margin: 0 0 5px;
	font-size: 1rem;
}

.payment-loader .loader-note {
	color: #999;
	font-size: 0.85rem;
	margin-top: 15px;
	font-style: italic;
}

/* ============================================
   Order Confirmation Styles
   ============================================ */
.order-confirmation {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	font-family: Arial, sans-serif;
}

.confirmation-header {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 16px 16px 0 0;
	border-bottom: 3px solid #28a745;
}

.success-checkmark {
	width: 80px;
	height: 80px;
	background: #28a745;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
	0% { transform: scale(0); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.success-checkmark i {
	color: white;
	font-size: 40px;
}

.confirmation-header h2 {
	color: #28a745;
	margin: 0 0 8px;
	font-size: 1.8rem;
}

.confirmation-subtitle {
	color: #666;
	margin: 0;
	font-size: 1.1rem;
}

.confirmation-details {
	background: white;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-top: none;
}

.confirmation-section {
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

.confirmation-section:last-child {
	border-bottom: none;
}

.confirmation-section h4 {
	color: #333;
	margin: 0 0 15px;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.confirmation-section h4 i {
	color: #CC9900;
	width: 20px;
}

.confirmation-section p {
	margin: 8px 0;
	color: #555;
	font-size: 0.95rem;
}

.product-list {
	margin-top: 10px;
}

.product-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.product-item:last-child {
	border-bottom: none;
}

.product-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-name {
	font-weight: 600;
	color: #333;
	font-size: 1rem;
}

.product-quantity {
	color: #666;
	font-size: 0.9rem;
}

.product-total {
	font-weight: 700;
	color: #CC9900;
	font-size: 1.05rem;
}

.status-approved {
	color: #28a745;
	font-weight: bold;
	background: #e8f5e9;
	padding: 2px 8px;
	border-radius: 4px;
}

.order-totals {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
}

.total-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dashed #ddd;
}

.total-row:last-child {
	border-bottom: none;
}

.total-final {
	font-weight: bold;
	font-size: 1.1rem;
	color: #333;
	border-top: 2px solid #CC9900;
	margin-top: 10px;
	padding-top: 15px;
}

.confirmation-footer {
	text-align: center;
	padding: 25px 20px;
	background: #f8f9fa;
	border-radius: 0 0 16px 16px;
	border: 1px solid #e0e0e0;
	border-top: none;
}

.confirmation-footer p {
	margin: 5px 0;
	color: #666;
	font-size: 0.9rem;
}

.contact-info {
	margin-top: 10px !important;
}

.contact-info a {
	color: #CC9900;
	text-decoration: none;
	font-weight: bold;
}

.btn-new-order {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 30px;
	background: #CC9900;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: bold;
	transition: background 0.3s;
}

.btn-new-order:hover {
	background: #b38600;
	color: white;
}

/* ============================================
   Payment Error Styles
   ============================================ */
.payment-error {
	max-width: 450px;
	margin: 0 auto;
	padding: 40px 30px;
	text-align: center;
	background: white;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border-top: 4px solid #dc3545;
}

.error-icon {
	width: 70px;
	height: 70px;
	background: #fdecea;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.error-icon i {
	color: #dc3545;
	font-size: 35px;
}

.payment-error h3 {
	color: #dc3545;
	margin: 0 0 15px;
	font-size: 1.5rem;
}

.error-status {
	font-weight: bold;
	color: #333;
	margin-bottom: 10px !important;
}

.error-details {
	color: #666;
	font-size: 0.9rem;
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.retry-btn {
	background: #dc3545 !important;
	border: none;
}

.retry-btn:hover {
	background: #c82333 !important;
}

.retry-btn i {
	margin-right: 8px;
}