/**
 * WQL Quote Details Modal Styles
 */

/* Shortcode: link variant (e.g. in theme orders) — blue, underline */
.wql-quote-popup-link {
	background: none;
	border: none;
	color: #0073aa;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font: inherit;
}
.wql-quote-popup-link:hover {
	color: #005177;
}

/* My Quotes: Order ID links — theme blue, underline */
.wql-order-id-link {
	color: #005177;
	text-decoration: underline;
}
.wql-order-id-link:hover {
	color: #0073aa;
}

/* Modal Container */
.wql-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Modal Overlay */
.wql-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

/* Modal Content */
.wql-modal-content {
	position: relative;
	background: var(--white-color, #ffffff);
	border-radius: 8px;
	max-width: 700px;
	width: 90%;
	max-height: 85vh;
	overflow: hidden;
	z-index: 2;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: wqlModalSlideIn 0.3s ease-out;
}

@keyframes wqlModalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Modal Header */
.wql-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	border-bottom: 1px solid #e5e5e5;
	background: #f9f9f9;
}

.wql-modal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: var(--text_color-color, #58595b);
}

.wql-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: var(--text_color-color, #58595b);
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.wql-modal-close:hover {
    background-color: var(--primary-color, #2a1f4a);
	color: var(--white-color, #ffffff);
}

/* Modal Body */
.wql-modal-body {
	padding: 25px;
	max-height: calc(85vh - 80px);
	overflow-y: auto;
}

/* Loading State */
.wql-loading {
	text-align: center;
	padding: 40px 20px;
	font-size: 16px;
	color: var(--text_color-color, #58595b);
}

.wql-loading:before {
	content: '';
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	animation: wqlSpin 1s linear infinite;
	margin-right: 10px;
	vertical-align: middle;
}

@keyframes wqlSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Quote Details Content */
.wql-quote-details {
	font-size: 14px;
	line-height: 1.6;
}

.wql-detail-section {
	margin-bottom: 25px;
}

.wql-detail-section:last-child {
	margin-bottom: 0;
}

.wql-detail-section h4 {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--text_color-color, #58595b);
	border-bottom: 2px solid #3498db;
	padding-bottom: 8px;
}

/* Product Info Section */
.wql-product-info {
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
}

.wql-product-image {
	margin-bottom: 15px;
}

.wql-product-image img {
	max-width: 200px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wql-product-name {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: var(--text_color-color, #58595b);
}

/* Details Table */
.wql-details-table {
	width: 100%;
	border-collapse: collapse;
}

.wql-details-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.wql-details-table tr:last-child {
	border-bottom: none;
}

.wql-details-table td {
	padding: 12px 8px;
	vertical-align: top;
}

.wql-details-table td:first-child {
	width: 40%;
	color: var(--text_color-color, #58595b);
}

.wql-details-table td:last-child {
	width: 60%;
	color: var(--text_color-color, #58595b);
	font-weight: 500;
}

.wql-details-table .total-row td {
	padding-top: 15px;
	font-size: 16px;
	border-top: 2px solid #e5e5e5;
}

/* Status Badge */
.wql-quote-details .status {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wql-quote-details .status-pending {
	color: #fff3cd;
}

.wql-quote-details .status-active {
	color: #155724;
}

.wql-quote-details .status-rejected {
	color: #721c24;
}

.wql-quote-details .status-cancelled {
	color: #383d41;
}

/* Error Message */
.wql-quote-details-content .error {
	color: #d9534f;
	text-align: center;
	padding: 20px;
	background: #f8d7da;
	border-radius: 4px;
	border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
	.wql-modal-content {
		width: 95%;
		max-height: 90vh;
	}

	.wql-modal-header {
		padding: 15px 20px;
	}

	.wql-modal-header h2 {
		font-size: 20px;
	}

	.wql-modal-body {
		padding: 20px;
		max-height: calc(90vh - 70px);
	}

	.wql-product-name {
		font-size: 18px;
	}

	.wql-detail-section h4 {
		font-size: 16px;
	}

	.wql-details-table td {
		padding: 10px 5px;
		font-size: 14px;
	}

	.wql-details-table td:first-child {
		width: 45%;
	}

	.wql-details-table td:last-child {
		width: 55%;
	}
}

@media (max-width: 480px) {
	.wql-modal-content {
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.wql-modal-body {
		max-height: calc(100vh - 70px);
	}

	.wql-product-image img {
		max-width: 150px;
	}

	.wql-details-table td {
		display: block;
		width: 100% !important;
		padding: 8px 5px;
	}

	.wql-details-table td:first-child {
		padding-bottom: 4px;
		font-weight: 600;
	}

	.wql-details-table td:last-child {
		padding-top: 0;
	}

	.wql-details-table tr {
		padding: 8px 0;
	}
}
.search-quote{
	padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 250px;
}
.sort-quote{
	width: auto;
}
.ajax-opacity {
    opacity: 0.4;
    pointer-events: none; /* optional: block clicks */
}

/* My Order Section Header*/
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

/* Individual Order Item */
.sprink-order-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.sprink-order-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.order-title-section {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.order-title-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: var(--text_color-color, #58595b);
    font-weight: 600;
    line-height: 1.3;
}

.shipping-info {
    margin-bottom: 0;
}

.ship-to {
    color: var(--text_color-color, #58595b);
    font-size: 14px;
    line-height: 1.4;
}

/* Multiple shipping addresses styling */
.ship-to-multiple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ship-to-label {
    font-weight: 600;
    color: #4a3b6c;
    font-size: 14px;
}

.shipping-splits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.shipping-split-item {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #9b4d96;
    font-size: 12px;
    line-height: 1.4;
}

.shipping-split-item strong {
    color: #4a3b6c;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.ship-to-content {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text_color-color, #58595b);
}

.order-actions-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.wql-quotes-container .order-actions-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important;
    flex-shrink: 0;
    min-width: 160px;
    justify-content: flex-start !important;
}

.order-actions-right button {
    width: 195px;
}

.requote-button {
    padding: 6px 15px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.view-quote-button, .requote-button {
    background: #fff;
    color: #5a4b7c;
    border: 2px solid #5a4b7c;
}
.view-quote-button:hover {
    border: none;
}
.quote-requested-button, .requote-requested-button {
    background: #ffff;
    border: 2px solid #b5b5b5;
    color: #b5b5b5;
    padding: 6px 15px;
    font-weight: 600;
    pointer-events: none;
}

.view-order {
    background: none;
    color: #13aff0;
    text-decoration: underline;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.view-order:hover {
    color: #0e8bc3;
    text-decoration: underline;
}

/* Order Details Container */
.order-details-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-image-details {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.sprink-order-history.order-details-container .expired-label{
    color: #e74c3c !important;
}

.product-image-details img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text_color-color, #58595b);
}

/* Order Details Grid */
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 25px;
    flex: 1;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.info-item label {
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-item span {
    color: var(--text_color-color, #58595b);
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

/* Status Styling */
.status {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline;
}

.proof-status {
    color: #e74c3c !important;
    font-weight: 500;
}

.order-total {
    font-weight: 700;
    color: var(--text_color-color, #58595b);
    font-size: 16px;
}

/* Bottom Actions */
.order-actions-bottom {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.upload-design-btn {
    background: #5a4b7c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.upload-design-btn:hover {
    background: #4a3b6c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(90, 75, 124, 0.3);
}

.cancel-order-btn {
    background: transparent;
    color: var(--text_color-color, #58595b);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    text-decoration: underline;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.cancel-order-btn:hover {
    background: transparent;
    color: var(--text_color-color, #58595b);
    transform: translateY(-1px);
}

.cancel-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cancel-order-btn:disabled:hover {
    transform: none;
}

.cancel-order-btn.processing {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Auto-hide message styling */
.auto-hide-message {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(0);
    opacity: 1;
}

.auto-hide-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sprink-order-search {
        width: 100%;
        max-width: 100%;
    }

    .search-container {
        max-width: 100%;
        flex-direction: column;
        border-radius: 8px;
        height: auto;
    }

    .search-type-dropdown {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px 8px 0 0;
        min-width: 100%;
        height: 48px;
    }

    .search-input {
        border-radius: 0;
        height: 48px;
    }

    .search-button {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        border-radius: 0 0 8px 8px;
        min-width: 100%;
        height: 48px;
    }

    .order-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tab-button {
        margin-right: 25px;
        font-size: 15px;
    }
    .sprink-order-history {
        padding: 15px 0;
    }

    .search-container {
        flex-direction: column;
        max-width: 100%;
    }

    .search-type-dropdown {
        min-width: auto;
        border-radius: 6px 6px 0 0;
    }

    .search-input {
        border-radius: 0;
    }

    .search-button {
        border-radius: 0 0 6px 6px;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        min-width: 120px;
        padding: 14px 16px;
        font-size: 15px;
    }

    .order-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 10px 0;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .order-title-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .order-details-container {
        flex-direction: column;
        gap: 15px;
    }

    .product-image-details {
        align-self: center;
    }

    .order-actions-right {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
        min-width: auto;
    }

    .order-actions-top {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 20px;
    }

    .order-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .upload-design-btn,
    .cancel-order-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .sprink-order-item {
        padding: 20px 16px;
    }

    .order-header h3 {
        font-size: 1.1em;
    }
}
/* My Quote Section*/
.status-approved{
 color: #27ae60 !important;
}

/* Main modal wrapper */
.wql-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

/* Overlay */
.wql-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* Modal content (centered box) */
.wql-modal-content {
    position: relative;
    background: var(--white-color, #ffffff);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    margin: 5vh auto;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
}

/* Header */
.wql-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.wql-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

/* Close button */
.wql-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.wql-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Inputs inside modal */
.wql-modal-body input,
.wql-modal-body textarea,
.wql-modal-body select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid var(--light_border-color, #e5e6e7);
}

/* Buttons */
.wql-modal-body button {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .wql-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}


/* Full-page overlay */
#wql-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* semi-transparent white */
    z-index: 9999999; /* high z-index to appear on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader content wrapper */
.wql-loader-content {
    text-align: center;
}

/* Spinner */
.wql-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid var(--primary-color, #2a1f4a); /* primary color (change as needed) */
    border-radius: 50%;
    animation: wql-spin 1s linear infinite;
    margin: 0 auto 10px; /* center horizontally and spacing below */
}

/* Spinner animation */
@keyframes wql-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader text */
.wql-loader-text {
    font-size: 16px;
    color: var(--text_color-color, #58595b); /* text color */
    font-weight: 500;
}
.request-quote-quantity input{
    max-width: 100% !important;
}
.request-quote-form .gform-loader{
    display: none !important;
}