/**
 * WPLekhok Store Frontend Styles
 */

:root {
	--store-primary: #059669;
	--store-primary-dark: #047857;
	--store-secondary: #10b981;
	--store-danger: #dc3545;
	--store-warning: #ffc107;
	--store-success: #28a745;
	--store-info: #17a2b8;
}

/* Common Button Styles */
.btn {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-size: 1rem;
}

.btn-primary {
	background: linear-gradient(135deg, var(--store-primary), var(--store-secondary));
	color: #fff;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(5, 150, 105, 0.4);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--store-primary);
	color: var(--store-primary);
}

.btn-outline:hover {
	background: var(--store-primary);
	color: #fff;
}

/* Add to Cart Button */
.wpl-add-to-cart {
	position: relative;
	overflow: hidden;
}

.wpl-add-to-cart.adding {
	pointer-events: none;
	opacity: 0.8;
}

.wpl-add-to-cart.added {
	background: var(--store-success) !important;
}

.wpl-add-to-cart .spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.wpl-add-to-cart.adding .spinner {
	display: inline-block;
}

.wpl-add-to-cart.adding .btn-text {
	opacity: 0;
}

/* Cart Icon Badge */
.wpl-cart-icon {
	position: relative;
}

.wpl-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--store-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

.wpl-cart-count:empty,
.wpl-cart-count[data-count="0"] {
	display: none;
}

/* Cart Table */
.wpl-cart-table {
	border-collapse: collapse;
}

.wpl-cart-table th,
.wpl-cart-table td {
	text-align: right;
	vertical-align: middle;
}

.wpl-cart-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background 0.2s;
}

.wpl-cart-table tbody tr:hover {
	background: #f9f9f9;
}

/* Quantity Controls */
.wpl-qty-control {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.wpl-qty-btn {
	width: 32px;
	height: 32px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpl-qty-btn:hover {
	background: var(--store-primary);
	color: #fff;
	border-color: var(--store-primary);
}

.wpl-qty-input {
	width: 50px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 6px;
	font-size: 14px;
	-moz-appearance: textfield;
}

.wpl-qty-input::-webkit-outer-spin-button,
.wpl-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Remove Item Button */
.wpl-remove-item {
	background: none;
	border: none;
	color: #dc3545;
	cursor: pointer;
	font-size: 24px;
	padding: 5px;
	opacity: 0.6;
	transition: all 0.2s;
}

.wpl-remove-item:hover {
	opacity: 1;
	transform: scale(1.2);
}

/* Delivery Area Radio Styling */
.wpl-delivery-area label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-bottom: 10px;
}

.wpl-delivery-area label:has(input:checked) {
	border-color: var(--store-primary);
	background: rgba(5, 150, 105, 0.05);
}

.wpl-delivery-area input[type="radio"] {
	width: 20px;
	height: 20px;
	accent-color: var(--store-primary);
}

/* Coupon Input */
.wpl-coupon input {
	border: 2px solid #e0e0e0;
	padding: 12px 15px;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s;
}

.wpl-coupon input:focus {
	border-color: var(--store-primary);
	outline: none;
}

.wpl-coupon input:disabled {
	background: #f8f8f8;
}

/* Checkout Form */
.wpl-checkout-form input,
.wpl-checkout-form textarea,
.wpl-checkout-form select {
	border: 2px solid #e0e0e0;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s;
	width: 100%;
}

.wpl-checkout-form input:focus,
.wpl-checkout-form textarea:focus,
.wpl-checkout-form select:focus {
	border-color: var(--store-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.wpl-checkout-form input.error,
.wpl-checkout-form textarea.error {
	border-color: var(--store-danger);
}

/* bKash Payment Button */
.wpl-bkash-btn {
	background: linear-gradient(135deg, #e91e8c, #d81b7a);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	padding: 18px 30px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s;
}

.wpl-bkash-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
}

.wpl-bkash-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* Toast Notification */
.wpl-toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #333;
	color: #fff;
	padding: 15px 25px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	z-index: 10000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	max-width: 350px;
}

.wpl-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.wpl-toast.success {
	background: var(--store-success);
}

.wpl-toast.error {
	background: var(--store-danger);
}

/* Page Title */
.page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 30px;
	color: #333;
}

/* Animation */
@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.wpl-cart-item {
	animation: fadeIn 0.3s ease;
}

/* Utility Classes for Common Inline Styles */
.wpl-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.wpl-form-grid.wpl-form-wide {
	grid-template-columns: 1fr;
}

.wpl-checkout-wrapper {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 30px;
}

.wpl-order-summary {
	background: #fff;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	height: fit-content;
	position: sticky;
	top: 100px;
}

.wpl-form-field {
	margin-bottom: 20px;
}

.wpl-form-field.form-row-wide {
	grid-column: span 2;
}

.wpl-form-field.form-row-first,
.wpl-form-field.form-row-last {
	grid-column: span 1;
}

.wpl-section-header {
	margin-top: 0;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.wpl-order-items {
	margin-bottom: 20px;
}

.wpl-order-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
}

.wpl-order-item:last-child {
	border-bottom: none;
}

.wpl-order-item-thumb {
	width: 40px;
	height: auto;
	border-radius: 4px;
}

.wpl-order-item-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpl-order-item-title {
	font-size: 14px;
}

.wpl-order-item-qty {
	color: #666;
	font-size: 12px;
}

.wpl-order-item-price {
	font-weight: 600;
}

.wpl-order-totals {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #eee;
}

.wpl-order-total-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dotted #eee;
}

.wpl-order-total-row:last-child {
	border-bottom: none;
	border-top: 2px solid var(--store-primary);
	padding-top: 12px;
	margin-top: 8px;
	font-weight: 700;
	font-size: 18px;
	color: var(--store-primary);
}

.wpl-payment-methods {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 2px solid #eee;
}

.wpl-payment-method {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-bottom: 10px;
}

.wpl-payment-method:has(input:checked) {
	border-color: var(--store-primary);
	background: rgba(5, 150, 105, 0.05);
}

.wpl-payment-method input[type="radio"] {
	width: 20px;
	height: 20px;
	accent-color: var(--store-primary);
}

.wpl-checkout-submit {
	width: 100%;
	padding: 18px;
	font-size: 1.1rem;
	font-weight: 700;
	margin-top: 20px;
}

.wpl-checkout-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ===================================
   Order Status Styles Import
   =================================== */

@import url('order-status.css');

/* Responsive */
@media (max-width: 768px) {
	.wpl-cart-table th:nth-child(3),
	.wpl-cart-table td:nth-child(3) {
		display: none;
	}
	
	.wpl-qty-control {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.page-title {
		font-size: 1.5rem;
	}

	.wpl-checkout-wrapper {
		grid-template-columns: 1fr;
	}

	.wpl-order-summary {
		position: static;
	}

	.wpl-form-grid {
		grid-template-columns: 1fr;
	}

	.wpl-form-field.form-row-wide,
	.wpl-form-field.form-row-first,
	.wpl-form-field.form-row-last {
		grid-column: span 1;
	}
}

/* Single Book Page Styles */
.book-layout {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 50px;
	align-items: start;
}

.book-cover-wrap {
	position: sticky;
	top: 100px;
}

.discount-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #dc3545;
	color: #fff;
	padding: 8px 15px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.9rem;
	z-index: 10;
}

.book-cover-container {
	background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.book-cover-image {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wpl-pdf-link {
	display: block;
	width: 100%;
	margin-top: 20px;
	text-align: center;
}

.wpl-pdf-link .dashicons {
	vertical-align: middle;
}

.book-title {
	font-size: 2.5rem;
	margin-bottom: 15px;
	color: #333;
}

.book-author {
	font-size: 1.2rem;
	color: var(--store-primary);
	margin-bottom: 25px;
}

.book-author-separator {
	color: #999;
}

.book-translator {
	color: #666;
}

.book-price {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}

.book-price-current {
	font-size: 2rem;
	font-weight: 700;
	color: var(--store-primary);
}

.book-price-old {
	font-size: 1.2rem;
	color: #999;
}

.book-savings-badge {
	background: #fef3cd;
	color: #856404;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.9rem;
}

.book-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	background: var(--store-secondary);
	background: rgba(16, 185, 129, 0.1);
	padding: 25px;
	border-radius: 15px;
	margin-bottom: 30px;
}

.book-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.book-info-icon {
	font-size: 24px;
	color: var(--store-primary);
}

.book-info-label {
	color: #999;
	display: block;
	font-size: 0.8rem;
}

.book-actions-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.book-actions .btn {
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
}

.book-unavailable {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 30px;
}

.book-description-title {
	margin-bottom: 15px;
}

.book-description-content {
	color: #555;
	line-height: 1.8;
}

@media (max-width: 900px) {
	.book-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.book-cover-wrap {
		position: static;
		max-width: 300px;
		margin: 0 auto;
	}
	.book-info-grid {
		grid-template-columns: 1fr;
	}
	.book-title {
		font-size: 1.8rem;
	}
}

/* Cart Page Styles */
.wpl-cart-empty {
	text-align: center;
	padding: 60px 20px;
}

.wpl-cart-empty-icon {
	font-size: 80px;
	color: #ddd;
	display: block;
	margin-bottom: 20px;
}

.wpl-cart-empty-text {
	color: #666;
	margin-bottom: 20px;
}

.wpl-cart-wrapper {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 30px;
}

.wpl-cart-items {
	width: 100%;
}

.wpl-cart-table {
	width: 100%;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	border-collapse: collapse;
}

.wpl-cart-table-header {
	background: rgba(16, 185, 129, 0.1);
	text-align: right;
}

.wpl-cart-table th {
	padding: 15px;
}

.wpl-cart-price-col,
.wpl-cart-qty-col,
.wpl-cart-total-col {
	width: 100px;
}

.wpl-cart-remove-col {
	width: 50px;
}

.wpl-cart-item td {
	padding: 15px;
}

.wpl-cart-item-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.wpl-cart-item-thumb {
	width: 60px;
	height: auto;
	border-radius: 4px;
}

.wpl-cart-summary {
	background: #fff;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	height: fit-content;
	position: sticky;
	top: 100px;
}

.wpl-delivery-area-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.wpl-delivery-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpl-delivery-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
}

.wpl-delivery-option.wpl-delivery-selected,
.wpl-delivery-option:has(input:checked) {
	border-color: var(--store-primary);
	background-color: rgba(5, 150, 105, 0.05);
}

.wpl-delivery-radio {
	accent-color: var(--store-primary);
}

.wpl-delivery-price {
	margin-left: auto;
	font-weight: 600;
}

.wpl-coupon-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.wpl-coupon-input-group {
	display: flex;
	gap: 10px;
}

.wpl-coupon-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.wpl-coupon-btn {
	padding: 10px 20px;
}

.wpl-coupon-message {
	margin-top: 5px;
	font-size: 14px;
}

.wpl-coupon-message.success {
	color: #28a745;
}

.wpl-coupon-message.error {
	color: #dc3545;
}

.wpl-checkout-btn {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 15px;
	text-align: center;
	font-size: 1.1rem;
}

.wpl-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.wpl-required {
	color: #dc3545;
}

.wpl-form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
}

.wpl-form-description {
	margin: 5px 0 0;
	font-size: 13px;
	color: #666;
}

.wpl-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.wpl-checkbox-input {
	width: 20px;
	height: 20px;
	accent-color: var(--store-primary);
}

.wpl-delivery-info {
	background: var(--store-secondary);
	background: rgba(16, 185, 129, 0.1);
	padding: 12px 15px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.wpl-change-link {
	float: right;
	font-size: 12px;
	color: var(--store-primary);
	text-decoration: none;
}

.wpl-change-link:hover {
	text-decoration: underline;
}

.wpl-coupon-discount {
	color: #28a745;
}

.wpl-total-amount {
	color: var(--store-primary);
	font-size: 1.3rem;
}

.wpl-payment-methods {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.wpl-payment-methods-title {
	margin: 0 0 15px;
	font-size: 1.1rem;
}

.wpl-payment-methods-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpl-payment-method {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.wpl-payment-method:hover {
	border-color: var(--store-primary);
	background-color: rgba(5, 150, 105, 0.05);
}

.wpl-payment-method:has(input:checked) {
	border-color: var(--store-primary);
	background-color: rgba(5, 150, 105, 0.05);
}

.wpl-payment-radio {
	width: 20px;
	height: 20px;
	accent-color: var(--store-primary);
}

.wpl-payment-bkash .wpl-payment-radio {
	accent-color: #e91e8c;
}

.wpl-payment-label {
	font-weight: 600;
	font-size: 16px;
}

.wpl-bkash-logo {
	height: 24px;
	width: auto;
}

.wpl-payment-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 15px;
	border-radius: 8px;
	text-align: center;
}

.wpl-checkout-error {
	margin-top: 15px;
	padding: 10px 15px;
	background: #f8d7da;
	color: #721c24;
	border-radius: 8px;
	display: none;
}

.wpl-checkout-error.show {
	display: block;
}

.btn-loading {
	display: none;
}

.btn.loading .btn-text {
	display: none;
}

.btn.loading .btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.btn .spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Shop Page Styles */
.wpl-shop-header {
	margin-bottom: 40px;
}

.wpl-shop-title {
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.wpl-shop-description {
	color: #666;
	font-size: 1.1rem;
}

.wpl-books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.wpl-book-card {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
}

.wpl-book-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.discount-badge-card {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #dc3545;
	color: #fff;
	padding: 5px 10px;
	border-radius: 15px;
	font-weight: 700;
	font-size: 0.8rem;
	z-index: 10;
}

.book-cover-link {
	display: block;
	background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
	padding: 20px;
	aspect-ratio: 3/4;
}

.book-cover-image-grid {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.book-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
}

.book-cover-placeholder .dashicons {
	font-size: 80px;
}

.book-title-grid {
	font-size: 1.1rem;
	margin-bottom: 8px;
	line-height: 1.4;
}

.book-title-link {
	color: #333;
	text-decoration: none;
}

.book-title-link:hover {
	color: var(--store-primary);
}

.book-author-grid {
	color: var(--store-primary);
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.book-price-grid {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 15px;
}

.book-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.book-price-current-grid {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--store-primary);
}

.book-price-old-grid {
	color: #999;
	font-size: 0.9rem;
}

.book-unavailable-grid {
	background: #f8d7da;
	color: #721c24;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
	font-size: 0.85rem;
}

.no-books {
	text-align: center;
	padding: 60px 20px;
}

.no-books-icon {
	font-size: 80px;
	color: #ddd;
	display: block;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.wpl-books-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 20px;
	}

	.book-info {
		padding: 15px;
	}

	.book-title-grid {
		font-size: 0.95rem;
	}

	.wpl-shop-title {
		font-size: 1.8rem;
	}
}

/* Order Success/Failed Page Styles - Memo Style */
.wpl-order-success-memo {
	max-width: 800px;
	margin: 0 auto;
}

.wpl-success-header-memo {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 15px;
	margin-bottom: 30px;
	color: #fff;
}

.wpl-success-icon-memo {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.wpl-success-title-memo {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #fff;
}

.wpl-success-subtitle-memo {
	font-size: 1rem;
	opacity: 0.95;
	color: #fff;
}

.wpl-order-memo-card {
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	padding: 25px;
	margin-bottom: 30px;
	border: 2px solid #e5e7eb;
}

.wpl-memo-header {
	text-align: center;
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: 10px;
	margin-bottom: 12px;
}

.wpl-memo-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 6px;
}

.wpl-memo-title i {
	margin-left: 6px;
}

.wpl-order-id-memo {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 3px;
}

.wpl-order-date-memo {
	font-size: 0.85rem;
	color: var(--color-text-secondary);
}

.wpl-order-date-memo i {
	margin-left: 6px;
}

.wpl-memo-section {
	margin: 10px 0;
	padding: 10px 0;
	border-bottom: 1px dashed #e5e7eb;
}

.wpl-memo-section:last-of-type {
	border-bottom: none;
}

.wpl-memo-section-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--color-primary);
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--color-primary);
	display: flex;
	align-items: center;
	gap: 6px;
}

.wpl-memo-info {
	font-size: 0.9rem;
}

.wpl-memo-info p {
	margin: 4px 0;
	color: var(--color-text);
}

.wpl-memo-info a {
	color: var(--color-primary);
	text-decoration: none;
}

.wpl-memo-info a:hover {
	text-decoration: underline;
}

.wpl-autograph-note-memo {
	background: #e3f2fd;
	padding: 10px;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
	color: #1976d2;
	margin-top: 10px;
}

.wpl-memo-items-table {
	width: 100%;
	font-size: 0.85rem;
	border-collapse: collapse;
	margin-top: 6px;
}

.wpl-memo-items-table th,
.wpl-memo-items-table td {
	padding: 6px 8px;
	text-align: left;
}

.wpl-memo-items-table th {
	background: var(--color-bg-secondary);
	border-bottom: 2px solid var(--color-primary);
	font-weight: 700;
	color: var(--color-text);
}

.wpl-memo-items-table td {
	border-bottom: 1px solid #e5e7eb;
}

.wpl-memo-qty {
	text-align: center;
	width: 80px;
}

.wpl-memo-price {
	text-align: right;
	width: 120px;
	font-weight: 600;
}

.wpl-memo-totals {
	margin-top: 8px;
	font-size: 0.9rem;
}

.wpl-memo-total-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px dotted #e5e7eb;
}

.wpl-memo-total-row:last-child {
	border-bottom: none;
}

.wpl-memo-discount {
	color: #28a745;
	font-weight: 600;
}

.wpl-memo-total {
	font-weight: 700;
	font-size: 1.1rem;
	border-top: 2px solid var(--color-primary);
	padding-top: 6px;
	margin-top: 4px;
	color: var(--color-primary);
}

.wpl-memo-status-section {
	margin-top: 10px;
	padding: 10px;
	background: var(--color-bg-secondary);
	border-radius: 8px;
	border: 2px solid #e5e7eb;
}

.wpl-memo-status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid #e5e7eb;
}

.wpl-memo-status-row:last-child {
	border-bottom: none;
}

.wpl-memo-status-label {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--color-text);
}

.wpl-memo-status-badge {
	padding: 5px 15px;
	border-radius: 15px;
	font-weight: 600;
	font-size: 0.8rem;
	color: #fff;
}

.wpl-memo-bkash {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 10px;
	margin-top: 8px;
	border-top: 1px solid #e5e7eb;
}

.wpl-memo-bkash-code {
	background: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text);
	border: 2px solid var(--color-primary);
	font-family: monospace;
}

.wpl-memo-footer {
	text-align: center;
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--color-text-secondary);
	padding-top: 10px;
	border-top: 1px dashed #e5e7eb;
}

.wpl-order-actions-memo {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 30px;
}

.wpl-order-actions-memo .btn {
	padding: 12px 30px;
	font-size: 1rem;
	font-weight: 600;
}

.wpl-order-actions-memo .btn i {
	margin-left: 6px;
}

@media (max-width: 768px) {
	.wpl-order-memo-card {
		padding: 20px;
	}
	
	.wpl-success-title-memo {
		font-size: 1.5rem;
	}
	
	.wpl-success-icon-memo {
		width: 60px;
		height: 60px;
	}
	
	.wpl-order-actions-memo {
		flex-direction: column;
	}
	
	.wpl-order-actions-memo .btn {
		width: 100%;
	}
}

/* Order Success/Failed Page Styles - Fully Redesigned */
.wpl-order-success-page {
	max-width: 1000px;
	margin: 0 auto;
}

.wpl-success-header {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 20px;
	margin-bottom: 40px;
	color: #fff;
}

.wpl-success-icon-large {
	width: 120px;
	height: 120px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	margin: 0 auto 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.wpl-success-title-large {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: #fff;
}

.wpl-success-subtitle {
	font-size: 1.25rem;
	margin-bottom: 25px;
	opacity: 0.95;
	color: #fff;
}

.wpl-order-number-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 12px 30px;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
}

.wpl-order-details-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 40px;
	margin-bottom: 40px;
	border: 1px solid #e5e7eb;
}

.wpl-order-card-header {
	text-align: center;
	padding-bottom: 30px;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 30px;
}

.wpl-order-card-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--store-primary);
	margin-bottom: 10px;
}

.wpl-order-card-title i {
	margin-left: 10px;
	color: var(--store-primary);
}

.wpl-order-date-text {
	color: #6b7280;
	font-size: 1rem;
}

.wpl-order-date-text i {
	margin-left: 8px;
}

.wpl-order-details-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 30px;
}

.wpl-order-info-box,
.wpl-order-items-box,
.wpl-order-summary-box,
.wpl-order-status-box {
	background: #f9fafb;
	border-radius: 15px;
	padding: 25px;
	border: 1px solid #e5e7eb;
}

.wpl-order-info-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--store-primary);
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--store-primary);
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpl-order-info-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.wpl-info-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px dashed #e5e7eb;
}

.wpl-info-item:last-child {
	border-bottom: none;
}

.wpl-info-label {
	font-weight: 600;
	color: #6b7280;
	min-width: 100px;
}

.wpl-info-value {
	color: #111827;
	text-align: left;
	flex: 1;
}

.wpl-info-value a {
	color: var(--store-primary);
	text-decoration: none;
}

.wpl-info-value a:hover {
	text-decoration: underline;
}

.wpl-autograph-badge {
	background: #e3f2fd;
	color: #1976d2;
	padding: 12px 20px;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
	margin-top: 10px;
}

.wpl-autograph-badge i {
	margin-left: 8px;
}

.wpl-order-items-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.wpl-order-item-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.wpl-item-name {
	flex: 1;
}

.wpl-item-details {
	display: flex;
	align-items: center;
	gap: 20px;
}

.wpl-item-qty {
	color: #6b7280;
	font-size: 0.9rem;
}

.wpl-item-total {
	font-weight: 700;
	color: var(--store-primary);
	font-size: 1.1rem;
}

.wpl-summary-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpl-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px dashed #e5e7eb;
	font-size: 1rem;
}

.wpl-summary-row:last-child {
	border-bottom: none;
}

.wpl-discount-row {
	color: #28a745;
	font-weight: 600;
}

.wpl-discount-row code {
	background: rgba(40, 167, 69, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-left: 8px;
}

.wpl-total-row {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--store-primary);
	padding-top: 15px;
	margin-top: 10px;
	border-top: 2px solid var(--store-primary);
}

.wpl-status-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.wpl-status-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.wpl-status-label {
	font-weight: 600;
	color: #111827;
}

.wpl-status-badge {
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
}

.wpl-bkash-item {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.wpl-bkash-code {
	background: #fff;
	padding: 8px 15px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	border: 2px solid var(--store-primary);
	font-family: monospace;
}

.wpl-order-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-large {
	padding: 15px 40px;
	font-size: 1.1rem;
	font-weight: 600;
}

.btn-large i {
	margin-left: 8px;
}

@media (max-width: 968px) {
	.wpl-order-details-grid {
		grid-template-columns: 1fr;
	}
	
	.wpl-success-title-large {
		font-size: 2rem;
	}
	
	.wpl-order-details-card {
		padding: 25px;
	}
}

@media (max-width: 768px) {
	.wpl-success-header {
		padding: 30px 15px;
	}
	
	.wpl-success-icon-large {
		width: 100px;
		height: 100px;
	}
	
	.wpl-success-title-large {
		font-size: 1.75rem;
	}
	
	.wpl-success-subtitle {
		font-size: 1rem;
	}
	
	.wpl-order-details-card {
		padding: 20px;
	}
	
	.wpl-order-actions {
		flex-direction: column;
	}
	
	.wpl-order-actions .btn {
		width: 100%;
	}
	
	.wpl-item-details {
		flex-direction: column;
		align-items: flex-end;
		gap: 5px;
	}
}

.wpl-order-success {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.wpl-order-memo {
	background: var(--store-secondary);
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	text-align: left;
	margin-bottom: 30px;
	border: 2px solid #e5e7eb;
}

.wpl-order-memo-header {
	text-align: center;
	border-bottom: 2px solid var(--store-primary);
	padding-bottom: 20px;
	margin-bottom: 25px;
}

.wpl-order-memo-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--store-primary);
	margin-bottom: 8px;
}

.wpl-order-memo-date {
	font-size: 14px;
	color: #6b7280;
}

.wpl-order-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px dashed #e5e7eb;
}

.wpl-order-section-title {
	font-weight: 700;
	font-size: 16px;
	color: var(--store-primary);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--store-primary);
}

.wpl-order-info-row {
	margin: 6px 0;
	font-size: 14px;
	color: #111827;
}

.wpl-autograph-notice {
	background: #e3f2fd;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	color: #1976d2;
	margin-top: 12px;
}

.wpl-order-items-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-top: 10px;
}

.wpl-order-table-header {
	background: rgba(16, 185, 129, 0.1);
}

.wpl-order-table-header th {
	padding: 10px;
	text-align: left;
	border-bottom: 2px solid var(--store-primary);
	font-weight: 700;
}

.wpl-order-qty-col {
	width: 60px;
	text-align: center;
}

.wpl-order-price-col {
	width: 100px;
	text-align: right;
}

.wpl-order-items-table tbody td {
	padding: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.wpl-order-price-cell {
	font-weight: 600;
}

.wpl-coupon-discount-row {
	color: #28a745;
}

.wpl-order-total-row {
	background: rgba(16, 185, 129, 0.1);
	font-weight: 700;
	font-size: 18px;
	color: var(--store-primary);
}

.wpl-order-total-amount {
	font-size: 18px;
}

.wpl-order-status-section {
	padding: 20px;
	background: rgba(16, 185, 129, 0.1);
	border-radius: 15px;
	border: 2px solid #e5e7eb;
}

.wpl-status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.wpl-status-row:last-child {
	border-bottom: none;
}

.wpl-status-label {
	font-weight: 700;
	font-size: 15px;
	color: #111827;
}

.wpl-status-badge {
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
}

.wpl-bkash-trx-row {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wpl-bkash-trx-code {
	background: #fff;
	padding: 5px 12px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
}

.wpl-order-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
}

.wpl-success-icon {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #28a745, #20c997);
	border-radius: 50%;
	margin: 0 auto 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpl-success-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #28a745;
	margin-bottom: 15px;
	text-align: center;
}

.wpl-success-message {
	font-size: 1.125rem;
	color: var(--color-text-secondary);
	margin-bottom: 30px;
	text-align: center;
}

@media (max-width: 768px) {
	.wpl-success-title {
		font-size: 1.75rem;
	}
	
	.wpl-success-icon {
		width: 80px;
		height: 80px;
	}
	
	.wpl-order-memo {
		padding: 20px;
	}
	
	.wpl-order-actions {
		flex-direction: column;
	}
	
	.wpl-order-actions .btn {
		width: 100%;
	}
}

/* Order Failed Page Styles */
.wpl-order-failed {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.wpl-failed-icon {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #dc3545, #c82333);
	border-radius: 50%;
	margin: 0 auto 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpl-failed-title {
	color: #dc3545;
	margin-bottom: 15px;
	font-size: 2rem;
}

.wpl-error-message-box {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
}

.wpl-error-message-box p {
	margin: 0;
	color: #721c24;
	font-size: 1rem;
}

.wpl-failed-description {
	color: #666;
	font-size: 1.1rem;
	margin-bottom: 30px;
}

.wpl-order-id-box {
	background: #fff;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	margin-bottom: 30px;
}

.wpl-order-id-box p {
	margin: 0;
	color: #666;
}

.wpl-help-box {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 30px;
	text-align: right;
}

.wpl-help-title {
	margin: 0 0 15px;
	color: #856404;
}

.wpl-help-list {
	margin: 0;
	padding: 0 20px 0 0;
	text-align: right;
	list-style-position: inside;
}

.wpl-help-list li {
	margin-bottom: 8px;
}

.wpl-retry-btn,
.wpl-cart-btn {
	padding: 15px 30px;
}

.wpl-support-text {
	margin-top: 40px;
	color: #666;
	font-size: 0.9rem;
}
