:root {
    --pcs-primary-color: #0077CC; /* Professional Blue */
    --pcs-secondary-color: #E6F2FA; /* Light Blue */
    --pcs-success-bg-color: #D4EDDA; /* Light green for success messages */
    --pcs-success-text-color: #155724; /* Dark green for success text */
    --pcs-success-border-color: #C3E6CB; /* Green border for success messages */
    --pcs-accent-color: #005EA2; /* Darker Blue for accents */
    --pcs-text-color: #333333;
    --pcs-light-text-color: #555555;
    --pcs-border-color: #dee2e6;
    --pcs-background-color: #ffffff;
    --pcs-light-gray-bg: #f8f9fa;
    --pcs-success-color: #28a745;
    --pcs-danger-color: #dc3545;
    --pcs-border-radius: 8px; /* Slightly less rounded for a more professional feel */
    --pcs-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    --pcs-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Standalone safeguards
   These rules make the cart styles work correctly even if the global/site
   header CSS (resets, Tailwind, etc.) is not present.
   - We scope box-sizing and a header offset CSS variable to the cart container.
   - Pages embedding the full site can override --pcs-header-offset on
     a higher-level element (for example, <body style="--pcs-header-offset:140px">)
     to keep the original spacing when the header is present.
*/
.pcs-container, .pcs-container * {
    box-sizing: border-box;
}

/* Default header offset used by sticky elements (can be overridden by site) */
.pcs-container {
    --pcs-header-offset: 0px;
}
/* Customer Notes Box Styles */
.pcs-customer-notes-container {
    width: 100%;
    margin-top: 25px;
}
.pcs-customer-notes-box {
    position: relative;
    /* Make box initially 70% width and center it */
    width: 70%;
    margin: 0 auto;
    border: 2px solid var(--pcs-border-color);
    /* Increase corner rounding for a softer look */
    border-radius: 16px;
    padding: 20px;
    background-color: var(--pcs-background-color);
    box-shadow: var(--pcs-box-shadow);
}
.pcs-customer-notes-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pcs-background-color);
    padding: 0 10px;
    font-family: var(--pcs-font-family);
    font-size: 0.9em;
    color: var(--pcs-light-text-color);
}
.pcs-customer-notes-textarea {
    width: 100%;
    text-align: center; /* Center text horizontally */
    display: flex; /* Enable flexbox for vertical centering */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 0; /* Remove default padding */
    resize: none; /* Prevent resizing */
    overflow: auto; /* Add scrollbars if content overflows */
    height: 100px;
    border: none;
    resize: vertical;
    font-family: var(--pcs-font-family);
    font-size: 1em;
    color: var(--pcs-text-color);
    outline: none;
}

.pcs-container {
    font-family: var(--pcs-font-family);
    color: var(--pcs-text-color);
    max-width: 1100px;
    margin: 30px auto 80px auto; /* Increased bottom margin to push footer down */
    padding: 0;
    background-color: var(--pcs-background-color);
    border-radius: var(--pcs-border-radius); /* Added border-radius to main container */
}


.pcs-cart-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--pcs-primary-color);
    margin-bottom: 35px;
    font-weight: 600;
    padding: 20px; /* Added padding */
    background: linear-gradient(145deg, #f0f8ff, #e6f2fa); /* Subtle light blue gradient */
    border-radius: var(--pcs-border-radius);
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.1), /* Softer, slightly larger shadow */
                -7px -7px 15px rgba(255, 255, 255, 0.8), /* Brighter highlight */
                inset 3px 3px 6px rgba(0, 0, 0, 0.05), /* Subtle inner shadow */
                inset -3px -3px 6px rgba(255, 255, 255, 0.7); /* Subtle inner highlight */
    /* Optional: text-shadow: 1px 1px 2px rgba(0,0,0,0.1); */
}

/* Firebase Login Status Bar */
.pcs-login-status-bar {
    text-align: center;
    margin-bottom: 25px; /* Space below the status bar */
    padding: 15px 20px;
    border-radius: var(--pcs-border-radius);
    background-color: var(--pcs-light-gray-bg);
    border: 1px solid var(--pcs-border-color);
    color: var(--pcs-text-color);
    font-size: 0.95em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Subtle inner shadow */
}

.pcs-login-status-bar p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.pcs-login-status-bar strong {
    color: var(--pcs-primary-color); /* Highlight logged in/out status */
    font-weight: 600;
}

.pcs-cart-layout-flex-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Increased space between columns */
    align-items: flex-start; /* Align items to the top */
}

.pcs-cart-items-column {
    flex: 2.5; /* Takes up more space */
    min-width: 300px; /* Minimum width before wrapping, adjust as needed */
    display: flex; /* Use flex to manage internal content like actions */
    flex-direction: column;
    position: sticky; /* Make cart items column sticky */
    top: calc(var(--pcs-header-offset, 0px) + 20px); /* Use CSS var for header offset; default small gap when header missing */
    align-self: flex-start; /* Ensure sticky works within flex container */
}
.pcs-cart-items-column .pcs-cart-table {
    margin-bottom: 0; /* Remove bottom margin if actions are directly below */
}
.pcs-cart-items-column .pcs-cart-actions {
    margin-top: auto; /* Pushes actions to the bottom if items column has extra space */
    width: 100%; /* Ensure actions take full width of the column */
    border-top: none; /* Remove original top border if not needed here */
    border-bottom: none; /* Remove original bottom border if not needed here */
    padding-top: 25px; /* Add some space above actions */
}


.pcs-cart-summary-column {
    flex: 1; /* Takes up less space, e.g., 1/3 */
    min-width: 300px; /* Minimum width before wrapping, adjust as needed */
    position: sticky; /* Make summary sticky */
    top: calc(var(--pcs-header-offset, 0px) + 20px); /* Use CSS var for header offset; default small gap when header missing */
}
 .pcs-cart-summary-column .pcs-cart-collaterals {
    margin-top: 0; /* Reset margin if it was for spacing before flex */
}
.pcs-cart-summary-column .pcs-cart-totals {
    /* Existing styles are likely fine, ensure it fits well in the column */
}


/* Flash Message Popup Styles */
@keyframes pcs-flash-jump-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(30px);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateY(-10px);
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes pcs-flash-jump-out {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    20% {
        transform: translate(-50%, -50%) scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(30px);
    }
}

.pcs-flash-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Initial centering for non-animated state */
    background-color: var(--pcs-success-bg-color);
    color: var(--pcs-success-text-color);
    border: 1px solid var(--pcs-success-border-color);
    border-left-width: 5px;
    border-left-color: var(--pcs-success-color);
    padding: 20px 30px; /* Increased padding */
    border-radius: var(--pcs-border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* Enhanced shadow */
    z-index: 1050;
    display: none; /* Managed by JS */
    opacity: 0; /* Start transparent */
    max-width: 400px; /* Adjusted max-width */
    font-size: 1em; /* Adjusted font size */
    text-align: center;
}

.pcs-flash-popup.visible { /* Class to make it visible before animation */
    display: block;
}

.pcs-flash-popup.animate-in {
    display: block; /* Ensure it's visible for animation */
    animation: pcs-flash-jump-in 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.pcs-flash-popup.animate-out {
    animation: pcs-flash-jump-out 0.5s ease-out forwards;
}

.pcs-flash-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--pcs-success-text-color);
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.pcs-flash-popup-close:hover {
    opacity: 1;
}
.pcs-flash-popup-icon {
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block; /* For SVG sizing */
    width: 1.5em; /* Adjust container size for SVG */
    height: 1.5em;
}
.pcs-flash-popup-icon .pcs-animated-checkmark-svg {
    width: 100%; 
    height: 100%;
    stroke: var(--pcs-success-color);
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}
.pcs-flash-popup.animate-in .pcs-flash-popup-icon .pcs-animated-checkmark-svg {
    animation: pcs-checkmark-animation 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; /* Changed 0.5s to 1s */
    animation-delay: 0.6s; /* Start after the popup's 0.6s jump-in animation */
}
@keyframes pcs-checkmark-animation {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
.pcs-flash-popup #pcs-flash-message-text {
    display: inline-block; 
    text-align: left; 
    vertical-align: middle;
}
.pcs-flash-product-name {
    display: block;
    font-weight: 600; 
}
.pcs-flash-message-suffix {
    display: block;
}


/* Cart Table Styles */
.pcs-cart-form {
    width: 100%;
}

.pcs-cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* Adjusted spacing */
    margin-bottom: 30px;
    table-layout: fixed; /* Crucial for consistent column widths */
}

.pcs-cart-table thead th {
    text-align: left;
    padding: 12px 15px; /* Adjusted padding */
    color: var(--pcs-light-text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em; /* Slightly smaller */
    border-bottom: 2px solid var(--pcs-border-color);
    /* Ensure text doesn't overflow in headers */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Define explicit widths for table columns */
.pcs-cart-table .pcs-product-remove { width: 50px; } /* Small fixed width for remove button */
.pcs-cart-table .pcs-product-artwork { width: 150px; } /* Fixed width for artwork previews */
.pcs-cart-table .pcs-product-name { width: auto; } /* Auto width, will take remaining space */
.pcs-cart-table .pcs-product-subtotal { width: 120px; } /* Fixed width for subtotal */
.pcs-cart-table tbody tr.pcs-cart-item {
    background-color: var(--pcs-background-color);
    border-radius: var(--pcs-border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Softer shadow for items */
    transition: box-shadow 0.2s ease-in-out;
}

.pcs-cart-table tbody tr.pcs-cart-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Enhanced hover shadow */
}

.pcs-cart-table td {
    padding: 18px 15px; /* Adjusted padding */
    vertical-align: middle;
    border-bottom: none;
}
.pcs-cart-table tbody tr.pcs-cart-item td:first-child {
    border-top-left-radius: var(--pcs-border-radius);
    border-bottom-left-radius: var(--pcs-border-radius);
}
.pcs-cart-table tbody tr.pcs-cart-item td:last-child {
    border-top-right-radius: var(--pcs-border-radius);
    border-bottom-right-radius: var(--pcs-border-radius);
}


.pcs-product-thumbnail img {
    width: 70px; /* Slightly smaller */
    height: 70px;
    object-fit: cover;
    border-radius: 6px; /* Adjusted */
    border: 1px solid var(--pcs-border-color);
}

.pcs-product-name {
    font-weight: 600;
    color: var(--pcs-primary-color);
    word-break: break-word; /* Ensure long product names wrap */
}
.pcs-product-name a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}
.pcs-product-name a:hover {
    text-decoration: underline;
    color: var(--pcs-accent-color);
}

.pcs-item-config {
    font-size: 0.8em; /* Slightly smaller */
    color: var(--pcs-light-text-color);
    margin-top: 4px;
    word-break: break-word; /* Ensure long config details wrap */
    font-weight: 300;
}
.pcs-item-config dt {
    font-weight: 500; /* Slightly bolder */
    display: inline;
}
.pcs-item-config dd {
    display: inline;
    margin-left: 4px;
}
.pcs-item-config dt:after {
    content: ":";
}
.pcs-item-config dd:not(:last-child):after {
    content: "; "; /* Changed separator for clarity */
}
.pcs-item-config-wrapper {
    margin-top: 6px;
}
.pcs-item-config { /* General styling for both preview and full dl */
    margin: 0;
    padding: 0;
    line-height: 1.5; /* Consistent line height */
}
.pcs-config-item { /* Wrapper for each dt/dd pair */
    margin-bottom: 4px; /* Space between config items */
}
.pcs-config-item dt {
    display: inline;
    font-weight: 500; /* From existing .pcs-item-config dt */
}
.pcs-config-item dd {
    display: inline;
    margin-left: 4px; /* From existing .pcs-item-config dd */
}
.pcs-config-item dt:after {
    content: ":"; /* From existing .pcs-item-config dt:after */
}

.pcs-item-config-preview {
    max-height: 4.5em; /* Approx 3 lines (1.5em line-height * 3) */
    overflow: hidden;
    position: relative;
}
.pcs-item-config-preview.has-fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.8em; /* Height of the fade area, slightly more than one line */
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--pcs-background-color, #ffffff) 90%);
    pointer-events: none; /* Allows clicking through the gradient */
}
.pcs-item-config-full {
    display: none; /* Initially hidden */
}
.pcs-toggle-config-button {
    background: none;
    border: none;
    color: var(--pcs-primary-color, #0077CC);
    cursor: pointer;
    font-size: 0.75em;
    padding: 3px 0;
    margin-top: 4px;
    text-decoration: underline;
}
.pcs-toggle-config-button:hover {
    color: var(--pcs-accent-color, #005EA2);
}


.pcs-quantity-input {
    width: 65px; /* Adjusted */
    padding: 8px 10px; /* Adjusted */
    text-align: center;
    border: 1px solid var(--pcs-border-color);
    border-radius: var(--pcs-border-radius);
    font-size: 0.95em;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.pcs-quantity-input:focus {
    border-color: var(--pcs-primary-color);
    box-shadow: 0 0 0 2px var(--pcs-secondary-color);
    outline: none;
}
.pcs-quantity-input::-webkit-outer-spin-button,
.pcs-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pcs-quantity-input[type=number] {
    -moz-appearance: textfield;
}

.pcs-quantity-wrapper {
    display: flex;
    align-items: center;
}
.pcs-quantity-button {
    background-color: var(--pcs-light-gray-bg);
    border: 1px solid var(--pcs-border-color);
    color: var(--pcs-primary-color);
    cursor: pointer;
    padding: 0; /* Remove padding, use width/height for square */
    width: 30px; /* Fixed width */
    height: 38px; /* Match input height (approx) */
    line-height: 36px; /* Center text vertically */
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    user-select: none; /* Prevent text selection */
}
.pcs-quantity-button:hover {
    background-color: #e9ecef;
    color: var(--pcs-accent-color);
}
.pcs-quantity-button.pcs-quantity-minus {
    border-top-left-radius: var(--pcs-border-radius);
    border-bottom-left-radius: var(--pcs-border-radius);
    border-right: none; /* Avoid double border with input */
}
.pcs-quantity-button.pcs-quantity-plus {
    border-top-right-radius: var(--pcs-border-radius);
    border-bottom-right-radius: var(--pcs-border-radius);
    border-left: none; /* Avoid double border with input */
}
.pcs-quantity-wrapper .pcs-quantity-input {
    border-radius: 0; /* Remove individual radius when part of wrapper */
    width: 50px; /* Adjust width as needed */
    height: 38px; /* Match button height */
}


.pcs-product-price, .pcs-product-subtotal {
    font-weight: 500;
    font-size: 1.05em; /* Adjusted */
}

.pcs-remove-item {
    color: var(--pcs-danger-color);
    text-decoration: none;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}
.pcs-remove-item:hover {
    background-color: #F8D7DA; /* Lighter red background */
    color: #721C24; /* Darker red text */
}
.pcs-remove-item svg {
    width: 16px; /* Adjusted */
    height: 16px;
}


.pcs-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0; /* Increased padding */
    margin-bottom: 30px;
    border-top: 1px solid var(--pcs-border-color);
    border-bottom: 1px solid var(--pcs-border-color);
}
.pcs-cart-actions .pcs-button { margin-right: 10px;}
.pcs-cart-actions .pcs-button:last-child { margin-right: 0; }


.pcs-button {
    padding: 10px 22px; /* Adjusted padding */
    border: 1px solid transparent; /* Added border for consistency, can be colored */
    border-radius: var(--pcs-border-radius);
    cursor: pointer;
    font-size: 0.9em; /* Adjusted */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pcs-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pcs-button:active {
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pcs-button-primary,
.pcs-update-cart-button {
    background-color: var(--pcs-primary-color);
    color: white;
    border-color: var(--pcs-primary-color);
}
.pcs-button-primary:hover,
.pcs-update-cart-button:hover {
    background-color: var(--pcs-accent-color);
    border-color: var(--pcs-accent-color);
}

.pcs-button-secondary { /* For "Continue Shopping" */
    background-color: var(--pcs-light-gray-bg);
    color: var(--pcs-primary-color);
    border-color: var(--pcs-border-color);
}
.pcs-button-secondary:hover {
    background-color: #e9ecef; /* Slightly darker gray */
    border-color: #ced4da;
    color: var(--pcs-accent-color);
}


.pcs-clear-cart-button {
    background-color: transparent;
    color: var(--pcs-danger-color);
    border: 1px solid var(--pcs-danger-color);
}
.pcs-clear-cart-button:hover {
    background-color: var(--pcs-danger-color);
    color: white;
}

.pcs-cart-collaterals {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.pcs-cart-totals {
    width: 100%;
    max-width: 420px; /* Adjusted */
    background-color: var(--pcs-light-gray-bg);
    padding: 0;
    border-radius: var(--pcs-border-radius);
    /* box-shadow: var(--pcs-box-shadow); Removed shadow here, main container has it */
}
.pcs-cart-totals h2 {
    font-size: 1.6em; /* Adjusted */
    color: var(--pcs-primary-color);
    margin-bottom: 20px;
    text-align: left; /* Align to left for a more standard look */
    border-bottom: 1px solid var(--pcs-border-color);
    padding-bottom: 10px;
}

.pcs-shop-table-responsive {
    width: 100%;
    margin-bottom: 20px;
}
.pcs-shop-table-responsive tr th,
.pcs-shop-table-responsive tr td {
    padding: 10px 0; /* Adjusted */
    border-bottom: 1px solid #e9ecef; /* Lighter border inside totals */
    font-size: 1em; /* Adjusted */
}
.pcs-shop-table-responsive tr:last-child th,
.pcs-shop-table-responsive tr:last-child td {
    border-bottom: none;
}
.pcs-shop-table-responsive tr th {
    text-align: left;
    font-weight: 500;
    color: var(--pcs-light-text-color);
}
.pcs-shop-table-responsive tr td {
    text-align: right;
    font-weight: 600;
}
.pcs-order-total th, .pcs-order-total td strong {
    font-size: 1.2em; /* Adjusted */
    color: var(--pcs-primary-color);
}

.pcs-proceed-to-checkout {
    text-align: center;
    margin-top: 20px;
}

/* Removed guest checkout button styles */

.pcs-payment-methods {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef; /* Light separator line */
    text-align: center; /* Center the payment methods text/icons */
}
.pcs-payment-methods-title {
    font-size: 0.9em;
    color: var(--pcs-light-text-color);
    margin-bottom: 10px;
    font-weight: 500;
}
.pcs-payment-methods-list {
    font-size: 0.85em;
    color: var(--pcs-light-text-color);
    line-height: 1.6;
}
.pcs-payment-methods-list span {
    margin: 0 5px; /* Space around each payment method name */
    display: inline-block; /* Allows margin and better spacing */
}
/* In a real scenario, you might use SVGs or font icons here */


/* Empty Cart Styling */
.pcs-cart-empty {
    text-align: center;
    padding: 50px 20px; /* Adjusted */
    background-color: var(--pcs-light-gray-bg);
    border-radius: var(--pcs-border-radius);
    /* box-shadow: var(--pcs-box-shadow); */
    border: 1px solid var(--pcs-border-color);
    margin-top: 30px;
}
.pcs-empty-cart-icon svg {
    width: 80px; /* Adjusted */
    height: 80px;
    color: var(--pcs-primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}
.pcs-empty-cart-title {
    font-size: 1.8em; /* Adjusted */
    color: var(--pcs-primary-color);
    margin-bottom: 10px;
}
.pcs-empty-cart-message {
    font-size: 1em; /* Adjusted */
    color: var(--pcs-light-text-color);
    margin-bottom: 25px; /* Adjusted */
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Artwork Preview Styles */
.pcs-product-artwork {
    min-width: 150px; /* Ensure it has some base width */
    max-width: 200px; /* Control max width of the column */
}
.pcs-artwork-main-preview {
    margin-bottom: 8px;
    text-align: center; /* Center the main preview image/icon */
}
.pcs-artwork-main-preview img.pcs-main-artwork-img,
.pcs-artwork-main-preview img.pcs-main-artwork-pdf-icon {
    width: 100%; /* Aim to fill container width */
    max-width: 100%; /* Fill column width, respecting parent's max-width */
    height: auto; /* Maintain aspect ratio */
    min-height: 100px; /* Ensure a minimum height */
    object-fit: contain;
    border: 1px solid var(--pcs-border-color);
    border-radius: 4px;
    display: block; /* Changed to block for better centering/sizing */
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    cursor: pointer; /* Indicate it's clickable */
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.pcs-preview-transition {
    transition: opacity 0.3s ease-in-out;
}
.pcs-artwork-main-preview a:hover img.pcs-main-artwork-img,
.pcs-artwork-main-preview a:hover img.pcs-main-artwork-pdf-icon {
    transform: scale(1.05) translateY(-3px);
    transition: transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.pcs-artwork-thumbnail-strip {
    display: flex; /* Use flexbox for horizontal layout */
    /* justify-content: center; /* Will be handled by JS/scrolling */
    /* overflow-x: hidden; /* Removed as parent container handles overflow */
    /* overflow-y: hidden; /* Removed as parent container handles overflow */
    padding: 5px 0; /* Adjusted padding - relying on placeholder divs for end spacing */
    gap: 6px; /* Space between thumbnails */
    /* max-width: 100%; */ /* Removed to allow strip to be wider than container for scrolling */
    /* scrollbar-width: none; /* Hide scrollbar for Firefox - covered by overflow:hidden on parent */
    /* -ms-overflow-style: none; /* Hide scrollbar for IE/Edge - covered by overflow:hidden on parent */
}
.pcs-artwork-thumbnail {
    width: 55px; /* Increased size to show at least 2 */
    height: 55px; /* Increased size to show at least 2 */
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease; /* Added transitions */
    flex-shrink: 0; /* Prevent thumbnails from shrinking */
    background-color: #fff;
    transform-origin: center center;
    transition: border-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease; /* Added for smooth transition */
}
.pcs-artwork-thumbnail:hover,
.pcs-artwork-thumbnail.active {
    border-color: var(--pcs-primary-color);
}

.pcs-artwork-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the carousel content */
    margin: 0 -10px; /* Counteract padding on arrows if needed */
}
.pcs-artwork-thumbnail-strip-container {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 5px; /* Small padding so items near edge aren't cut by arrows */
    position: relative; /* For pseudo-element overlays */
}

.pcs-artwork-thumbnail-strip-container::before,
.pcs-artwork-thumbnail-strip-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25px; /* Reduced width of the fade effect */
    z-index: 5; /* Above thumbnails, below arrows */
    pointer-events: none; /* Allow clicks through to thumbnails if necessary */
}

.pcs-artwork-thumbnail-strip-container::before {
    left: 0;
    background: linear-gradient(to right, var(--pcs-background-color, #ffffff) 0%, rgba(255,255,255,0) 100%);
}

.pcs-artwork-thumbnail-strip-container::after {
    right: 0;
    background: linear-gradient(to left, var(--pcs-background-color, #ffffff) 0%, rgba(255,255,255,0) 100%);
}

.pcs-carousel-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--pcs-border-color);
    color: var(--pcs-primary-color);
    cursor: pointer;
    padding: 8px 6px;
    font-size: 1.2em;
    line-height: 1;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcs-carousel-arrow:hover {
    background-color: var(--pcs-primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.pcs-carousel-arrow.pcs-carousel-arrow-left {
    margin-right: 5px;
}
.pcs-carousel-arrow.pcs-carousel-arrow-right {
    margin-left: 5px;
}
.pcs-carousel-arrow.disabled { /* Style for disabled arrows */
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.pcs-no-artwork {
    font-size: 0.85em;
    color: var(--pcs-light-text-color);
    text-align: center;
    padding: 10px 0;
}


/* Modal Styles */
.pcs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Ensure it's above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pcs-modal-overlay:target, /* For potential future use with hash links */
.pcs-modal-overlay.pcs-modal-active { /* Class to activate via JS */
    opacity: 1;
    visibility: visible;
}
.pcs-modal-content {
    background-color: #fff;
    padding: 25px; /* Increased padding */
    border-radius: var(--pcs-border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25); /* Enhanced shadow */
    width: 90vw; /* Set width to 90% of viewport width */
    max-width: 90vw; /* Max width set to 90% of viewport width */
    height: 90vh; /* Set height to 90% of viewport height */
    overflow: auto; /* Allow scrolling if content exceeds modal size */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.pcs-modal-overlay:target .pcs-modal-content,
.pcs-modal-overlay.pcs-modal-active .pcs-modal-content {
    transform: scale(1);
}
.pcs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pcs-border-color);
    padding-bottom: 15px; /* Increased padding */
    margin-bottom: 20px; /* Increased margin */
}
.pcs-modal-title-text {
    font-size: 1.4em; /* Adjusted */
    font-weight: 600;
    color: var(--pcs-primary-color);
    margin: 0;
}
.pcs-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8em; /* Larger close button */
    font-weight: 300; /* Lighter weight for 'x' */
    color: var(--pcs-light-text-color);
    cursor: pointer;
    padding: 0 5px; /* Add some padding for easier clicking */
    line-height: 1;
    opacity: 0.7;
}
.pcs-modal-close-btn:hover {
    color: var(--pcs-danger-color);
    opacity: 1;
}
.pcs-modal-body-content {
    /* Styles for the content area of the modal */
    padding-top: 10px; /* Add some space if header is present */
    text-align: center; /* Center images/iframes by default */
}
.pcs-modal-body-content img {
    max-width: 100%;
    max-height: calc(90vh - 150px); /* Adjust based on header/footer/padding, specific for images */
    display: block;
    margin: 0 auto; /* Center block elements */
}
.pcs-modal-body-content iframe {
    width: 100%; /* Make iframe fill its container */
    height: 100%; /* Make iframe fill its container */
    max-width: 100%; /* Ensure it respects container width if smaller */
    display: block;
    margin: 0 auto;
    border: none; /* Removed border */
}


/* Responsive Table - stack rows on smaller screens */
@media screen and (max-width: 768px) {
    .pcs-container {
        margin: 15px auto;
        padding: 15px;
    }
    .pcs-cart-table thead {
        display: none;
    }
    .pcs-cart-table tbody tr.pcs-cart-item {
        display: block;
        margin-bottom: 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    }
    .pcs-cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px dotted var(--pcs-border-color);
    }
    .pcs-cart-table td:last-child {
         border-bottom: none;
    }
    .pcs-cart-table td:before {
        content: attr(data-title);
        font-weight: 600; /* Bolder label */
        margin-right: 10px;
        text-align: left;
        color: var(--pcs-primary-color);
        font-size: 0.9em;
    }
    .pcs-product-thumbnail:before, .pcs-product-remove:before {
        display: none;
    }
    .pcs-product-thumbnail {
        justify-content: center !important;
        padding: 15px;
    }
     .pcs-product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    .pcs-product-remove {
        justify-content: flex-end !important;
    }
     .pcs-remove-item {
        margin-left: auto;
    }

    .pcs-cart-actions {
        flex-direction: column;
        align-items: stretch; /* Make buttons full width */
    }
    .pcs-cart-actions > div { /* Target both divs inside flex container */
        width: 100%;
        display: flex;
        flex-direction: column; /* Stack buttons if multiple in one div */
        margin-bottom: 10px; /* Space between button groups */
    }
    .pcs-cart-actions > div:last-child {
        margin-bottom: 0;
    }
    .pcs-cart-actions .pcs-button {
        width: 100%;
        margin-bottom: 10px; /* Space between buttons within a group */
        margin-right: 0; /* Reset right margin */
    }
    .pcs-cart-actions .pcs-button:last-child {
        margin-bottom: 0;
    }


    .pcs-cart-collaterals {
        justify-content: center;
    }
    .pcs-cart-totals {
        max-width: 100%;
    }
    .pcs-cart-totals h2 {
        font-size: 1.5em;
    }
}

/* Responsive adjustments for the new layout */
@media screen and (max-width: 992px) { /* Adjust breakpoint as needed */
    .pcs-cart-layout-flex-container {
        flex-direction: column;
    }
    .pcs-cart-items-column,
    .pcs-cart-summary-column {
        flex: 1 1 100%; /* Full width when stacked */
        width: 100%;
        position: static; /* Remove sticky positioning when stacked */
    }
    .pcs-cart-summary-column {
        margin-top: 30px; /* Add space when stacked below items */
    }
    .pcs-cart-items-column .pcs-cart-actions {
         margin-top: 25px; /* Reset margin-top from auto */
    }
}
@media screen and (max-width: 768px) {
    /* Existing responsive styles for table and actions will apply.
       Ensure they work well within the new column structure.
       The .pcs-cart-actions flex-direction: column might need review if it's inside items-column.
    */
    .pcs-cart-items-column .pcs-cart-actions {
        /* pcs-cart-actions already becomes column on mobile, this is fine */
    }
}
/* Carousel Styles from order-summary-old.php */
.shipping-address-carousel-wrapper {
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10.5px;
    color: #4a5568;
    text-align: center;
    padding: 1px 0px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    overflow-y: auto; /* Added for vertical scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
}
.address-item-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.address-item {
    position: absolute; /* Reverted to absolute */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 22px; /* Space for arrows */
    box-sizing: border-box;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.45s linear;
}
.address-item p {
    margin: 0.5px 0;
    line-height: 1.1; /* Reduced line height */
    font-size: 7px; /* Even smaller font size for address lines */
}
.address-item strong {
    font-weight: 500;
    color: #2d3748;
    font-size: 10.5px;
    margin-bottom: 1px;
}
.address-item address {
    font-style: normal;
    font-size: 6px; /* Further reduced for the address tag if used */
    line-height: 1.1; /* Reduced line height */
}
.address-item.exiting-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.4s linear;
}
.address-item.exiting-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.4s linear;
}
.address-item.entering-from-left {
    transform: translateX(-100%);
    opacity: 0;
}
.address-item.entering-from-right {
    transform: translateX(100%);
    opacity: 0;
}
.edit-address-btn-styled {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 500;
    text-decoration: none;
    color: #3b82f6;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.03);
    flex-shrink: 0;
}
.edit-address-btn-styled:hover,
.edit-address-btn-styled:focus {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
}
 .edit-address-btn-styled:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(229, 231, 235, 0.4);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #4b5563;
    transition: all 0.2s ease;
    padding: 0;
}
.carousel-arrow:hover {
    background-color: rgba(209, 213, 219, 0.6);
    color: #1f2937;
    transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.prev-arrow {
    left: 0px;
}
.carousel-arrow.next-arrow {
    right: 0px;
}
.no-address-message {
    font-size: 10.5px;
    color: #6b7280;
    padding: 5px;
}
.no-address-message a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

/* Authorize.Net Payment Notification Styles */
.authorize-net-notifications-wrapper {
    position: fixed;
    top: 20px; /* Adjust as needed to position from the top */
    right: 20px; /* Adjust as needed to position from the right */
    z-index: 1100; /* Ensure it's above other content */
    display: flex;
    flex-direction: column; /* Stack notifications vertically */
    align-items: flex-end; /* Align notifications to the right */
    gap: 15px; /* Space between notifications */
    max-height: calc(100vh - 40px); /* Limit height to prevent overflow */
    overflow-y: auto; /* Enable scrolling if too many notifications */
    padding: 10px; /* Add some padding for scrollbar */
}

.payment-notification-container {
    position: relative; /* Changed from fixed to relative for stacking within wrapper */
    width: 350px; /* Fixed width for notifications */
    background-color: var(--pcs-background-color);
    border: 1px solid var(--pcs-border-color);
    border-radius: var(--pcs-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(-20px); /* Start slightly above for slide-in effect */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, margin-top 0.4s ease-out; /* Smooth transitions */
}

.payment-notification-container.active {
    opacity: 1;
    transform: translateY(0);
}

.payment-notification-container.closing {
    opacity: 0;
    transform: translateY(20px);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pcs-border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.notification-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--pcs-primary-color);
    margin: 0;
}

.spinner {
    border: 3px solid var(--pcs-secondary-color);
    border-top: 3px solid var(--pcs-primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--pcs-light-text-color);
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.7;
}

.close-button:hover {
    color: var(--pcs-danger-color);
    opacity: 1;
}

.notification-body {
    flex-grow: 1;
}

.notification-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-steps .step {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--pcs-text-color);
}

.notification-steps .step:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.step.pending .step-icon {
    border: 2px solid var(--pcs-border-color);
    background-color: transparent;
    color: var(--pcs-light-text-color);
    font-size: 0.8em;
}

.step.completed .step-icon {
    background-color: var(--pcs-success-color);
    border: 2px solid var(--pcs-success-color);
}

.step.failed .step-icon {
    background-color: var(--pcs-danger-color);
    border: 2px solid var(--pcs-danger-color);
}

.transaction-id-display,
.error-message-display {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--pcs-border-radius);
    font-size: 0.9em;
    word-break: break-word;
}

.transaction-id-display {
    background-color: var(--pcs-success-bg-color);
    color: var(--pcs-success-text-color);
    border: 1px solid var(--pcs-success-border-color);
}

.error-message-display {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
    border: 1px solid #F5C6CB; /* Red border */
}

.notification-footer {
    text-align: right;
    padding: 15px 0 0 0;
    border-top: 1px solid var(--pcs-border-color);
    margin-top: 15px;
}

.notification-done-button {
    /* Inherits from .btn .btn-primary */
}

/* New styles for the coupon form */
.pcs-coupon-container {
    margin-bottom: 20px; /* Space below the coupon form */
    padding: 15px;
    border: 1px solid var(--pcs-border-color);
    border-radius: var(--pcs-border-radius);
    background-color: var(--pcs-light-gray-bg);
}

.pcs-coupon-form {
    display: flex;
    gap: 10px; /* Space between input and button */
    align-items: center;
}

.pcs-coupon-input {
    flex-grow: 1; /* Allow input to take up available space */
    padding: 10px 12px;
    border: 1px solid var(--pcs-border-color);
    border-radius: var(--pcs-border-radius);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pcs-coupon-input:focus {
    border-color: var(--pcs-primary-color);
    box-shadow: 0 0 0 2px var(--pcs-secondary-color);
    outline: none;
}

.pcs-coupon-button {
    /* Inherits styles from .pcs-button and .pcs-button-primary */
    padding: 10px 15px; /* Adjust padding for the button */
    font-size: 1em; /* Adjust font size */
}

.pcs-coupon-message {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 15px; /* Space below the message */
    border-radius: var(--pcs-border-radius);
    border: 1px solid transparent;
    font-size: 0.95em;
}

.pcs-coupon-success {
    background-color: var(--pcs-success-bg-color);
    color: var(--pcs-success-text-color);
    border-color: var(--pcs-success-border-color);
}

.pcs-coupon-error {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
    border-color: #F5C6CB; /* Red border */
}

.pcs-coupon-message svg {
    margin-right: 8px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.pcs-button-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
    color: inherit; /* Inherit color from parent message div */
    text-decoration: underline;
    cursor: pointer;
}

.pcs-button-link:hover {
    text-decoration: none;
}

/* Futuristic Coupon Input Styles */
.pcs-coupon-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 200px; /* Allow shrinking but not too much */
    background-color: var(--pcs-background-color); /* White background */
    border: 1px solid var(--pcs-border-color);
    border-radius: var(--pcs-border-radius);
    padding: 8px; /* Padding inside the container */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Subtle inner shadow */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pcs-coupon-input-area:focus-within {
    border-color: var(--pcs-primary-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 0 0 3px var(--pcs-secondary-color); /* Outer glow on focus */
}

.pcs-coupon-input {
    flex-grow: 1;
    padding: 8px 10px; /* Padding inside the input */
    border: none; /* Remove input's default border */
    background: none; /* Remove input's default background */
    font-size: 1em;
    color: var(--pcs-text-color);
    outline: none; /* Remove default outline */
}

.pcs-coupon-input::placeholder {
    color: var(--pcs-light-text-color);
    opacity: 0.7;
}

.pcs-apply-coupon-button {
    /* Inherits styles from .pcs-button and .pcs-button-primary */
    padding: 8px 15px; /* Adjusted padding to fit container */
    font-size: 0.95em; /* Slightly smaller font */
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* New styles for the cart actions layout */
.pcs-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0; /* Increased padding */
    margin-bottom: 30px;
    border-top: 1px solid var(--pcs-border-color);
    border-bottom: 1px solid var(--pcs-border-color);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Add some space between the coupon section and buttons */
}

.pcs-cart-actions > div:first-child { /* Target the coupon input area container */
    flex-grow: 1; /* Allow coupon section to take up available space */
    min-width: 250px; /* Ensure coupon section has a minimum width */
}

.pcs-cart-buttons-wrapper {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    align-items: center;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.pcs-continue-shopping-button {
    /* Inherits styles from .pcs-button */
    background-color: var(--pcs-light-gray-bg);
    color: var(--pcs-primary-color);
    border-color: var(--pcs-border-color);
    text-decoration: none; /* Ensure it looks like a button, not a link */
    display: inline-block; /* For padding and alignment */
    text-align: center;
}

.pcs-continue-shopping-button:hover {
    background-color: #e9ecef; /* Slightly darker gray */
    border-color: #ced4da;
    color: var(--pcs-accent-color);
}

.pcs-cart-actions > div:last-child { /* Target the update/clear buttons container */
    /* This div now contains only the update and clear buttons, which are already flexed by pcs-cart-buttons-wrapper */
    /* No specific flex properties needed here anymore, as the wrapper handles it */
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.pcs-cart-actions .pcs-button { margin-right: 0;} /* Reset margin as gap is used */
.pcs-cart-actions .pcs-button:last-child { margin-right: 0; }

/* Responsive adjustments for the new coupon layout */
@media screen and (max-width: 768px) {
    .pcs-cart-actions {
        flex-direction: column;
        align-items: stretch; /* Stretch items to fill width */
        gap: 15px; /* Adjust gap for stacked layout */
    }
    .pcs-cart-actions > div:first-child,
    .pcs-cart-actions > div:last-child {
        width: 100%; /* Full width when stacked */
        min-width: auto; /* Remove min-width constraint */
    }
    .pcs-cart-actions > div:last-child {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Space between stacked buttons */
    }
    .pcs-coupon-input-area {
        flex-direction: column; /* Stack input and button vertically */
        gap: 10px; /* Space between stacked input and button */
        padding: 15px; /* Increase padding for stacked layout */
    }
    .pcs-coupon-input {
        width: 100%; /* Full width input */
        padding: 12px; /* Adjust padding */
    }
    .pcs-apply-coupon-button {
        width: 100%; /* Full width button */
        padding: 12px; /* Adjust padding */
    }
}


/* Hide the quantity and unit price columns */
.pcs-product-quantity,
.pcs-product-price {
    display: none;
}


/* Disable table stacking on mobile so mobile matches desktop layout */
@media screen and (max-width: 768px) {
    /* allow columns to size naturally */
    .pcs-cart-table { table-layout: auto !important; }
    .pcs-cart-table thead { display: table-header-group !important; }
    .pcs-cart-table tbody tr.pcs-cart-item { display: table-row !important; }
    /* only show remove, artwork, product, subtotal columns */
    .pcs-cart-table td.pcs-product-remove,
    .pcs-cart-table td.pcs-product-artwork,
    .pcs-cart-table td.pcs-product-name,
    .pcs-cart-table td.pcs-product-subtotal {
        display: table-cell !important;
    }
    .pcs-cart-table td:before { content: none !important; }
    /* ensure product column is wide enough */
    .pcs-cart-table .pcs-product-name { min-width: 200px; }
}

/* Custom overrides for requested changes */
.pcs-cart-table td.pcs-product-name {
    text-align: left !important;
}

.pcs-cart-table .pcs-product-remove {
    width: 30px !important; /* Reduced width for delete icon column */
}

.pcs-cart-table .pcs-product-artwork {
    min-width: 100px !important; /* Reduced min width */
    max-width: 120px !important; /* Reduced max width */
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
    .pcs-cart-table .pcs-product-remove {
        width: 25px !important;
    }
    .pcs-cart-table .pcs-product-artwork {
        min-width: 80px !important;
        max-width: 100px !important;
    }
    .pcs-cart-table .pcs-product-name {
        min-width: 150px !important;
    }
}
