.preloader-important {
	display: flex !important;
}

#menu-item-cart {
    margin-left: 5px !important;
}

#menu-item-cart i {
    color: #fff;
}

#menu-item-cart::marker {
    color: transparent;
}

#mspcount {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    border-radius: 5px !important;
    background: #231c29 !important;
    padding: 8px 3px 9px 3px !important;
    line-height: 0 !important;
}

#off-canvas #mspcount {
    left: 9px !important;
	position: relative !important;
    right: auto !important;
    background: #ed1c24 !important;
	float: left;
}

#off-canvas #menu-item-cart {
    margin-top: 5px !important;
}

#off-canvas #mspcount {
    margin-left: 10px !important;
}

.top-nav-container #utility-nav #menu-item-cart a {
    padding: 15px 15px 0px 11px;
}

#sample-loading-icon {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #ed1c24;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

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

#request_samples_page th {
    text-align: left;
}

#request_samples_page tr,
#request_samples_page table,
#request_samples_page tbody {
    background-color: transparent;
    border: none;
}

#request_samples_page button,
#request_samples_page h4,
#request_samples_page h3 {
    margin-top: 1.5rem;
}

#request_samples_page h4 {
    font-size: 1.2em;
}

#request_samples_page h3 {
    font-size: 1.4em;
}

#search-input {
    border: 1px solid !important;
    transition: all 2s ease;
}

#product-dropdown {
    height: 0rem;
    transition: all 0.75s ease;
}

#product-selector .sample-search {
	margin-bottom: 3.5rem;
}

#product-selector p {
	color: #4a4a4a;
}

a.search-error {
    color: #333333;
    background-color: #FFFF99;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

a.search-error:hover {
    background-color: #FFEB3B;
    color: #333333;
}

/* Button animations */
.sample-button {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sample-button.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button */
.sizes-wrapper .wp_cart_button_wrapper input,
.wp_cart_button_wrapper input,
.wp-cart-button-form {
    font-size: 0.8em;
    text-transform: uppercase;
    border: none;
    font-weight: bold;
    background-color: #adadad;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 10;
    overflow: hidden; /* Ensure child elements are contained */
    transition: background-color 0.5s ease; /* Smooth background color transition */
}

.wp-cart-button-form {
    margin: 5px 0px 5px 5px;
    padding: 5px 15px 5px 5px;
    display: block !important;
}

.sizes-wrapper .wp_cart_button_wrapper input,
.wp_cart_button_wrapper input {
    background-color: transparent;
}

.wp-cart-button-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #898989; /* Darker background color */
    z-index: -1; /* Place behind the text */
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.wp-cart-button-form.active {
    background-color: #898989;
}

.wp-cart-button-form.clicked::after {
    transform: translateX(0);
}

.wp-cart-button-form.active::after {
    transform: translateX(0);
}

/* Add Font Awesome icon before the button text */
.wp-cart-button-form::before {
    content: '\f067'; /* Unicode for fa-plus */
    font-family: 'FontAwesome';
    padding-right: 8px; /* Space between the icon and the text */
	position: absolute;
    bottom: 7px;
	font-size: 0.7em;
	right: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
    transform-origin: 25% 45%; /* Adjust the transform origin to the center */
}

/* Rotate the icon on hover */
.wp-cart-button-form:hover::before {
    transform: rotate(360deg);
}

#request_samples_page .sampleloading {
    border: 2px solid !important;
    border-color: #ed1c24 !important;
    transition: all 0.25s ease;
}

/* General table styles */
#request_samples_page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    text-align: left;
    border-radius: 5px;
}

#request_samples_page h2 {
    font-size: 1.3em;
    margin: 5px 0px 10px 0px;
    font-weight: 100;
}

.shopping_cart {
    padding: 0px !important;
}

.wspsc_cart_item_row {
    background-color: #f2f2f2 !important;
}

.request-step td input {
	margin:0px;
}

/* Header styles */
#request_samples_page th {
    padding: 15px 15px 10px 15px;
    font-weight: bold;
}

#step-1 {
	margin-top:2.5rem;
}

/* Row styles */
#request_samples_page tr {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
}

.wspsc_cart_item_row,
.request-step tr:nth-of-type(1),
.request-step tr:nth-of-type(2),
.wpspsc_checkout_form {
    border-bottom: 0px !important;
}

/* Cell styles */
#request_samples_page td {
    padding: 15px;
}

/* Image and product link styles */
.wp_cart_item_info {
    display: flex;
    align-items: center;
}

.wp_cart_item_thumbnail img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.wp_cart_item_name a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
	font-size: 1.3em;
}

.wp_cart_item_name a:hover {
    color: #0073e6;
}

/* Quantity input styles */
.wspsc_cart_qty_td input[type="number"] {
    width: 50px;
    padding: 5px;
    text-align: center;
}

/* Remove button styles */
.wspsc_remove_item_td input[type="image"] {
    width: 20px;
    height: auto;
}

/* Total row styles */
.wspsc_cart_total {
    font-weight: bold;
    text-align: right;
    background-color: #f2f2f2;
}

/* Checkout button styles */
.wspsc_checkout_form_standard input[type="image"] {
    display: block;
    margin: 20px auto;
}

/* Additional styling for responsiveness */
@media (max-width: 768px) {
    #request_samples_page th,
    #request_samples_page td {
        padding: 10px;
    }

    .wp_cart_item_thumbnail img {
        width: 40px;
        margin-right: 10px;
    }

    .wspsc_cart_qty_td input[type="number"] {
        width: 40px;
        padding: 4px;
    }
	
	.wp_cart_item_name a {
		font-size: 0.9em;
	}
}

/* Popup Overlay */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-popup-overlay.visible {
    display: block;
    opacity: 1;
}

/* Popup */
.custom-popup {
    position: fixed;
	text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #f8f6f1;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 400px; /* Adjust as needed */
	border-top: 10px solid #231c29;
}

.custom-popup.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.custom-popup p {
    margin: 15px 0 20px;
    color: #333;
}

.custom-popup button {
    padding: 10px 20px;
    background-color: #ed1c24;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
	width: 65%;
    margin: 10px 0px 10px 0px;
}

.custom-popup button:hover {
    opacity: 0.75;
}

.custom-popup-overlay.success p {
	font-size: 1.1em;
    font-weight: 700;
}

.custom-popup-overlay p {
	font-size: 1.3em;
    font-weight: 700;
}

/* Loading ellipses animation */
.loading-ellipses::after {
    content: '...';
    animation: ellipses 1.5s infinite;
}

@keyframes ellipses {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: ''; }
}

/* Slide-down fade-in animation for the sample button */
.sample-button {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sample-button.visible {
    opacity: 1;
    transform: translateY(0);
}