/* PRODUCT LIST */
.ps-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 50px;
    padding: 50px;
}

.ps-product-item {
    position: relative;
    text-align: center;
    background: #EDF5E0;
    border-radius: 100px 0px;
    transition: all .2s ease-in-out;
}

.ps-product-item:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    transform: scale(1.05);
}

.ps-product-item .ps-product-link {
    text-decoration: none;
}

.ps-product-custom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.ps-product-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 100px 0px 0px 0px;
}

.ps-product-info {
    min-height: 100px;
    padding: 20px;
    color: #7CBC41;
    padding-bottom: 100px;
}

.ps-product-title {
    text-transform: uppercase;
    padding-top: 0px !important;
    font-weight: bold;
    line-height: 25px;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #7CBC41 !important;
    font-size: 19px;
    margin: 0px;
    margin-bottom: 10px;
    padding: 10px 0px;
}

.ps-product-type {
    margin-bottom: 10px;
}

.ps-product-description-wrapper {
    height: 75px;
    margin-bottom: 20px;
}

.ps-product-grid .ps-product-description {
    line-height: 25px;
    max-height: 88px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.ps-product-description h3 {
    font-size: 20px;
}
.ps-product-description ul {
    margin-left: 0px;
}

.ps-product-description em {
    font-style: italic;
}

.ps-product-cost {
    font-weight: bold;
    bottom: 50px;
    position: absolute;
    left: 10px;
    right: 10px;
    text-align: center;
}

/* PRODUCT RADIO FORM */
.ps-radio-form .radio-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.ps-radio-form .radio-button-label {
    display: block;
    padding: 10px 20px;
    border: 2px solid #EDF5E0;
    border-radius: 20px 0px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ps-radio-form .radio-button-label:hover {
    border-color: #7CBC41;
}

.ps-radio-form .radio-button-label.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ps-radio-form .radio-button-label.disabled:hover {
    border-color: #EDF5E0;
}

.ps-radio-form input[type="radio"] {
    display: none;
}

.ps-radio-form input[type="radio"]:checked + .radio-button-text {
    font-weight: bold;
}

.ps-radio-form input[type="radio"]:checked + .radio-button-text::before {
    content: "✓";
    margin-right: 5px;
}

.ps-radio-form input[type="radio"]:disabled + .radio-button-text {
    opacity: 0.5;
    cursor: not-allowed;
}

.ps-radio-form .variation-group-label, .upload-artwork-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.variation-price-container {
}

.ps-radio-form .variation-price-container .variation-price {
    font-size: 1.2em;
}

/* PRODUCT SELECT FORM */
.ps-option-select option:disabled {
    color: #999;
    font-style: italic;
}


/* CUSTOM FILE UPLOAD */
.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 2px solid #EDF5E0;
    border-radius: 20px 0px;
    cursor: pointer;
    font-size: 16px;
    transition: border 0.3s ease;
    text-transform: uppercase;
    position: relative; /* Add this */
}

.custom-file-upload.has-file { /* Add this block */
    font-weight: bold;
}

.custom-file-upload.has-file::before { /* Add this block */
    content: "✓";
    margin-right: 5px;
}

.custom-file-upload:hover {
    border: 2px solid #7BBB41;
}

.file-name {
    color: #666;
    font-size: 14px;
}

/* ADD TO CART */
.add-to-cart-button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 20px 0px;
    border: none;
    background: #7BBB41;
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

.ps-cart-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-cart-message.success {
    background-color: #edf7ed;
    color: #1e4620;
}

.ps-cart-message.error {
    background-color: #fdeded;
    color: #5f2120;
}

/* PRODUCT GALLERY */
.ps-product-gallery {
    max-width: 100%;
    margin: 0 auto;
}
.ps-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}
.ps-product-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #EDF5E0;
    box-sizing: border-box;
    opacity: 0;
    border-radius: 30% 0px;
    border: 1px solid #7BBB41;
    cursor: zoom-in;
}

.ps-product-main-image.active {
    display: block;
    opacity: 1;
}

.ps-gallery-thumbnails {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    justify-items: center;
    margin-top: 10px;
}
.thumbnail-item {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 1px solid #EDF5E0;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-radius: 30% 0px;
    overflow: clip;
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.1);
}
.thumbnail-item.active {
    border-color: #7BBB41;
    opacity: 1;
}

.ps-product-gallery {
    margin-bottom: 20px;
}

.ps-product-main-image.expandable {
    cursor: zoom-in;
}

/* Clone styling */
.image-clone {
    position: fixed;
    object-fit: cover;
    background-color: #EDF5E0;
    border-radius: 30% 0px;
    border: 1px solid #7BBB41;
    transition: all 0.5s ease;
    cursor: zoom-out;
    opacity: 1;
}

.image-clone.expanded {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: min(80vh, 80vw) !important;
    height: min(80vh, 80vw) !important;
}

/* Overlay */
.ps-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.ps-image-overlay.active {
    opacity: 1;
    visibility: visible;
}


/*
.ps-product-main-image.expandable.expanded.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ps-product-main-image.expandable.expanded.active {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    max-width: calc(100% - 100px);
    max-height: calc(100% - 100px);
    cursor: zoom-out;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease, max-width 0.3s ease, max-height 0.3s ease, top 0.3s ease, left 0.3s ease, border-radius 0.3s ease;
}
*/

/*
.ps-gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.ps-gallery-modal.show {
    background-color: #7CBC4194;
    opacity: 1;
}

.ps-gallery-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ps-gallery-modal.show .ps-gallery-modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.ps-expanded-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ps-gallery-modal-close {
    position: absolute;
    right: 25px;
    top: 42px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

body:not(.admin-bar) .ps-gallery-modal-close {
    top: 10px;
}
*/


/*
.ps-product-main-image {
    max-width: 100%;
    height: auto;
}

.ps-variations-form {
    margin: 20px 0;
}

.ps-variation-select {
    width: 100%;
    padding: 10px;
}
*/

/* PRODUCT TEMPLATES */
.ps-product-templates {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}
.ps-product-templates h3 {
    margin-top: 0px;
    font-weight: bold;
}

.ps-template-container {
    margin-top: 10px;
}

.ps-template-item {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.ps-template-item.last-visible, .ps-template-item:last-of-type {
    margin-bottom: 0;
}

.ps-template-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ps-template-name {
    margin-right: 10px;
}

.ps-template-download {
    display: inline-block;
    padding: 8px 15px;
    background: #FFFFFF;
    color: #7CBC41;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #7CBC41;
}

.ps-template-download .dashicons {
    font-size: 43px;
    display: block;
    height: auto;
    width: auto;
}

.ps-template-download:hover {
    background: #f2ffe8;
    text-decoration: none;
    color: #7CBC41;
}


/* CART COUNT */
.ps-cart-widget {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    background: #EDF5E0;
    border-radius: 9999px;
    cursor: pointer;
    color: #7BBB41 !important;
    text-decoration: none !important;
}

.ps-cart-widget-banner {
    position: fixed;
    display: none;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    background: #EDF5E0;
    color: #7CBC41;
    text-align: center;
    border-top: 1px solid #7CBC41;
}

.ps-cart-widget-banner-content {
    display: inline-flex;
    margin: 10px;
    gap: 5px;
    align-items: center;
}

.ps-cart-widget-banner-content .ps-cart-widget {
    padding: 0px;
}

.ps-cart-widget .dashicons, .ps-cart-widget-banner-content .dashicons {
    font-size: 30px;
    width: auto;
    height: auto;
}

.ps-cart-count {
    background: #FFFFFF;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 20px;
    min-width: 20px;
    text-align: center;
}

/* CART LIST */
.ps-cart-empty {
    text-align: center;
    font-size: 20px;
    padding: 100px 0px;
}
.ps-cart-empty-icon {
    font-size: 100px;
    color: #7CBC41;
    clear: both;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.ps-cart-details {
    margin: 20px 0;
}
.ps-cart-table {
    width: 100%;
    border-collapse: collapse;
}
.ps-cart-table th,
.ps-cart-table td {
    padding: 10px;
    border: none;
}

.ps-cart-table tr {
    padding: 10px;
    border-bottom: 1px solid #7CBC41;
}

.ps-cart-table .product-image {

}
.ps-cart-table .product-image img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 50px 0px;
}
.ps-cart-table .product-name {
    width: min-content;
    white-space: nowrap;
}
.ps-cart-table .product-options {
    width: 100%;
}
.ps-cart-table .cart-total {
    font-weight: bold;
}
.ps-cart-table .text-right {
    text-align: right;
}

@media (max-width: 800px) {
    .ps-cart-table {
        border: 0;
    }

    /* Each row becomes a "card" */
    .ps-cart-table tr {
        display: block;
        margin: 0 0 12px;
        border: 1px solid #7CBC41;
        border-radius: 8px;
        background: #fff;
    }

    /* Cells become two-column grid: label | value */
    .ps-cart-table td {
        display: grid;                    /* grid preserves <br> line breaks */
        grid-template-columns: auto 1fr;  /* label | value */
        align-items: start;
        text-align: left;
        border-bottom: 1px solid rgba(124, 188, 65, 0.2);
        padding: 10px 12px;
    }

    .ps-cart-table td:last-child {
        border-bottom: 0;
    }

    .ps-cart-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        margin-right: 12px;
        flex: 0 0 auto;
    }


    /* Place the actual cell content in the value column (keeps <br>) */
    .ps-cart-table td > * {
        grid-column: 2;
        justify-self: end;   /* label left, value right */
        text-align: right;
    }

    /* Make text wrap on small screens */
    .ps-cart-table .product-name {
        width: auto;
        white-space: normal;
    }
    .ps-cart-table .product-options {
        width: auto;
        white-space: normal;
    }

    /* Image size tweak for mobile */
    .ps-cart-table .product-image img {
        width: 64px;
        height: auto;
        border-radius: 0px 20px;
        display: block;
    }

    /* Special handling for the total row structure */
    .ps-cart-table tr.cart-total {
        display: flex;
        align-items: center;
        padding: 12px;
        border: 2px solid #7CBC41;
    }
    /* Hide empty spacer cells on the total row */
    .ps-cart-table tr.cart-total td:first-child,
    .ps-cart-table tr.cart-total td:last-child {
        display: none;
    }
    /* Reset cell visuals inside total row */
    .ps-cart-table tr.cart-total td {
        display: block;
        border: 0;
        padding: 0;
    }
    /* Labels off for the total row (avoid nth-child labels) */
    .ps-cart-table tr.cart-total td::before {
        content: none !important;
    }
    /* Make "Total:" and amount sit inline */
    .ps-cart-table tr.cart-total td.text-right {
        margin-right: 8px;
        text-align: left; /* it becomes the inline label */
        font-weight: 700;
    }
    .ps-cart-table tr.cart-total td.text-right + td {
        font-weight: 700;
        font-size: 1.05rem;
    }
}


.ps-cart-actions, .ps-enquiry-actions {
    margin-top: 20px;
    text-align: right;
}

/* CART CHECKOUT */
.ps-checkout-columns {
    display: flex;
    gap: 10px;
    flex-flow: row-reverse wrap;
}
.ps-checkout-form {
    flex: 10 1 500px;
}

.ps-order-items-preview {
    flex: 1 1 300px;
}

.ps-order-items-preview .ps-total-price {
    display: block;
    font-size: 17px;
    text-align: right;
    border-bottom: 1px solid #AAA;
    padding: 10px 0px;
}

.ps-checkout-columns .ps-form-container .ps-form-content {
    margin-top: 0px;
    margin-bottom: 0px;
}

.ps-order-item-preview {
    border-bottom: 1px solid #AAA;
    padding-bottom: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.ps-order-item-preview:last-of-type {
    margin-bottom: 0px;
}

.ps-order-item-preview h2 {
    font-size: 17px;
    font-weight: bold;
    display: flex;
    gap: 20px;
    margin-top: 0px;
}

.ps-order-item-preview-price {
    font-weight: normal;
}


.ps-auth-step {
    text-align: center;
    background: #E7E7E7;
    padding: 50px;
    border-radius: 0px 0px 10px 10px;
    margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .ps-auth-step {
        padding: 20px;
    }
}

.ps-login-wrapper h3 {
    text-align: center;
    border-radius: 10px 10px 0px 0px;
    background: #7BBB41;
    padding: 10px;
    color: #FFFFFF !important;
    margin-bottom: 0px;
}

.ps-login-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.75rem;
    color: #3C3C3C;
}

.ps-login-wrapper input, .ps-checkout-form input, .ps-enquiry-form input, .ps-enquiry-form textarea, #ps-reject-reason {
    width: 100%;
    padding: 15px;
    font-size: 25px;
    border-width: 0px;
    border-color: #CCCCCC;
    background-color: #ffffff;
    color: #000000;
    border-style: solid;
    border-radius: 40px;
    text-align: center;
    border: 1px solid #CCCCCC;
    box-sizing: border-box;
}

.ps-cart-table button, .ps-cart-actions button, .ps-cart-actions .ps-proceed-checkout, .ps-continue-shopping, .ps-button, .ps-login-wrapper button, .ps-checkout-form button, .ps-enquiry-form button, .ps-button.ps-modal-cancel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 36px;
    border: none;
    border-radius: 100px;
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-size: 22px;
    text-align: center;
    letter-spacing: 5px;
    background: #F08C23;
    cursor: pointer;
    margin-left: 10px;
    letter-spacing: 0px;
    font-family: inherit;
    text-decoration: none !important;
}

.ps-button:first-of-type {
    margin-left: 0px;
}

.ps-cart-actions .ps-proceed-checkout, .ps-continue-shopping, .ps-button {
    background: #7BBB41;
}

#find-address {
    margin-left: 0px;
    flex: 1 1 auto;
    text-align: center;
    display: block;
}

.no-left-margin {
    margin-left: 0px;
}

.custom-artwork-link {
    /*
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #eee;
    */
}

.custom-artwork-link a {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    color: #333 !important;
    text-decoration: none !important;
}

.custom-artwork-link a:hover {
    background: #e0e0e0;
}


/* ACCOUNT */
.ps-account h3, .ps-form-container h3 {
    text-align: center;
    border-radius: 10px 10px 0px 0px;
    background: #7BBB41;
    padding: 10px;
    color: #FFFFFF !important;
    margin-bottom: 0px;
    margin-top: 20px;
    font-size: 20px;
}

.ps-account .ps-account-content, .ps-form-container .ps-form-content {
    background: #E7E7E7;
    padding: 50px;
    border-radius: 0px 0px 10px 10px;
    margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .ps-account .ps-account-content, .ps-form-container .ps-form-content {
        padding: 10px;
    }
    .ps-user-info p {
        margin-bottom: 5px;
    }
    .ps-account-tab-content, .ps-dashboard-header, .ps-dashboard-summary {
        padding: 10px !important;
    }
    .ps-dashboard-header {
        flex-flow: column !important;
    }
    .ps-dashboard-header h2 {
        width: 100%;
        text-align: center;
    }
}

.ps-account-nav {
    border-bottom: 1px solid #ddd;
}

.ps-account-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: row;
    gap: 10px;
}

.ps-account-nav li {
    margin: 0;
    flex: 0 1 auto;
}

.ps-account-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none !important;
    color: #000;
    background: whitesmoke;
    border-color: #ddd;
    border-bottom-color: #fff;
}

.ps-account-nav a:hover {
    color: #7BBB41;
}
.ps-account-nav li.active a {
    color: #000;
    background: white;
    border-color: #ddd;
    border-bottom-color: #fff;
    translate: 1px 1px;
}

/* Responsive adjustments */
@media (max-width: 995px) {
    .ps-account-nav ul {
        flex-flow: column;
        gap: 0px;
    }

    .ps-account-nav li a {
        color: #000;
        background: whitesmoke;
        border: 1px solid #ddd;
        border-bottom: 0px;
    }
    .ps-account-nav li.active a {
        color: #000;
        background: white;
        border: 1px solid #ddd;
        border-bottom: 0px;
        translate: 0px 0px;
    }

}

.ps-account-tab-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

.ps-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ps-summary-box {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ps-edit-account-form {
    text-align: center;
}

.ps-edit-account-form .form-group {
    margin-bottom: 15px;
}

.ps-edit-account-form label {
    display: block;
    margin-bottom: 5px;
}

.ps-edit-account-form input {
    width: 80%;
    padding: 15px;
    font-size: 25px;
    border-width: 0px;
    border: 1px solid #CCC;
    background-color: #ffffff;
    color: #000000;
    border-style: solid;
    border-radius: 40px;
    text-align: center;
}

.ps-edit-account-form input:disabled {
    color: #999;
    background-color: #f0f0f0;
    border-color: #ccc;
}

.ps-edit-account-form small {
    display: block;
    color: #666;
    margin-top: 5px;
}

/* Orders Tab Styling */
.ps-tab-content#ps-tab-orders {
    padding: 20px;
}

.ps-no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.ps-order-card, .ps-quote-card, .ps-proof-card {
    background: #f8f9fa;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    text-decoration: none !important;
}

.ps-order-card:last-of-type, .ps-quote-card:last-of-type, .ps-proof-card:last-of-type {
    margin-bottom: 0px;
}

.ps-order-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: normal;
    border: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.ps-order-main-info h4, .ps-quote-main-info h4, .ps-proof-main-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.ps-order-date, .ps-quote-date, .ps-proof-date {
    font-size: 0.9em;
    color: #666;
}

.ps-order-status-info, .ps-quote-status-info, .ps-proof-status-info {
    text-align: right;
}

.ps-order-status, .ps-quote-status, .ps-proof-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.9em;
    margin-bottom: 5px;
    text-align: center;
    white-space: nowrap;
}

.ps-quote-status.approved, .ps-proof-status.approved {
    background: #e9fde3;
    color: #63d219;
}

.ps-quote-status.rejected, .ps-proof-status.rejected {
    background: #fde3e3;
    color: #d21919;
}

.ps-order-total, .ps-quote-total {
    display: block;
    font-weight: bold;
    color: #2e7d32;
}

.ps-order-items {
    border: 1px solid #f0f0f0;
    border-top: none;
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
}

.ps-order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ps-order-items-table th,
.ps-order-items-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ps-order-items-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #444;
}

.ps-order-items-table tr:last-child td {
    border-bottom: none;
}

.ps-order-items-table tr:hover {
    background: #fafafa;
}

.ps-order-items-table .product-image img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 50px 0px;
    margin: auto;
}

/* Mobile: stack rows */
@media (max-width: 800px) {
    .ps-tab-content#ps-tab-orders {
        padding: 0px;
    }

    .ps-order-card, .ps-quote-card, .ps-proof-card {
        font-size: 0.8em;
    }
    .ps-order-main-info h4, .ps-quote-main-info h4, .ps-proof-main-info h4 {
        font-size: 1.1em;
        font-weight: bold;
    }

    .ps-order-items-table {
        border: 0;
    }

    .ps-order-items-table thead {
        display: none; /* hide header row */
    }

    .ps-order-items-table tr {
        display: block;
        margin: 0 0 12px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
    }

    .ps-order-items-table td {
        display: flex;
        align-items: center;
        justify-content: space-between; /* label left, value right */
        text-align: left;     /* override center */
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 12px;

    }

    .ps-order-items-table tr:last-child td {
        border-bottom: 1px solid #f0f0f0; /* keep per-row separators on mobile cards */
    }

    .ps-order-items-table td:last-child {
        border-bottom: 0;
    }

    /* Show the label from data-label */
    .ps-order-items-table td::before {
        content: attr(data-label);
        align-self: flex-start;
        font-weight: 600;
        color: #555;
        margin-right: 12px;
        flex: 0 0 auto;
    }

    .ps-order-items-table td .cell-value {
        margin-left: auto;
        text-align: right;
        white-space: normal;  /* <br> will break lines as expected */
    }

    /* Let the value wrap and align right side */
    .ps-order-items-table td > *:not(img) {
        margin-left: auto;
        text-align: right;
    }

    /* Images: make smaller and left-aligned within the row */
    .ps-order-items-table .product-image img {
        width: 64px;
        margin: 0; /* no auto-centering */
        border-radius: 20px 0px;
    }
}


/* Overview Tab Dashboard Summary */
.ps-dashboard-header {
    display: flex;
    flex-flow: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-bottom: 0px;
}

.ps-dashboard-header h2 {
    margin: 0;
    align-self: start;
}

.ps-council-logo {
    max-width: 100%;
    width: 200px;
}

.ps-council-logo img {
    max-width: 100%;
}

.ps-dashboard-summary {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    padding: 20px;
}

.ps-summary-box {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.ps-summary-box h5 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 1.1em;
}

.ps-summary-order, .ps-summary-quote, .ps-summary-proof {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    color: #333;
    text-decoration: none !important;
}

.ps-summary-order:last-child, .ps-summary-quote:last-child, .ps-summary-proof:last-child {
    border-bottom: none;
}

.ps-summary-order:hover, .ps-summary-quote:hover, .ps-summary-proof:hover {
    background-color: #f8f9fa;
}

.ps-summary-order:hover h6, .ps-summary-quote:hover h6, .ps-summary-proof:hover h6 {
    text-decoration: underline;
    color: #333;
}

.ps-summary-order h6, .ps-summary-quote h6, .ps-summary-proof h6 {
    margin: 0;
    flex: 1;
    font-size: 0.95em;
}

.ps-summary-order .ps-order-date, .ps-summary-quote .ps-quote-date, .ps-summary-proof .ps-proof-date {
    margin: 0 15px;
    color: #666;
    font-size: 0.9em;
}

.ps-summary-order .ps-order-total {
    font-weight: 600;
    color: #2e7d32;
}

.ps-summary-box p {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .ps-summary-order, .ps-summary-quote, .ps-summary-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ps-summary-order .ps-order-date, .ps-summary-quote .ps-quote-date, .ps-summary-proof .ps-proof-date {
        margin: 0;
    }
}

.ps-single-order {
    padding: 20px;
}

.ps-order-navigation {
    margin-bottom: 20px;
}

.ps-button-small {
    font-size: 14px;
    padding: 5px 10px;
    padding-right: 15px;
    margin: 0px;
    gap: 0px;
}

.ps-summary-order h6 a {
    color: #333;
    text-decoration: none;
}

.ps-summary-order h6 a:hover {
    text-decoration: underline;
}

.ps-order-card h4 a, .ps-quote-card h4 a, .ps-proof-card h4 a {
    color: #333;
    text-decoration: none;
}

.ps-order-card h4 a:hover, .ps-quote-card h4 a:hover, .ps-proof-card h4 a:hover {
    text-decoration: underline;
}

/* ADDRESS LOOKUP */
.postcode-lookup {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

#postcode-lookup {
    flex: 1 1 300px;
}

.address-select {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px;
}

.ps-button {
    white-space: nowrap;
    text-decoration: none !important;
}

.ps-button:hover {
    color: #FFFFFF;
}

/* THANK YOU POPUP */
.ps-popup {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.ps-popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 70%;
}

.ps-popup .dashicons {
    font-size: 100px;
    color: #7BBB41;
    margin-bottom: 100px;
    line-height: 100px;
    display: block;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translate(0, 0) scale(0);
    animation: popup 0.5s ease forwards;
}

@keyframes popup {
    0% {
        opacity: 0;
        transform: translate(0, 100px) scale(0);
    }
    50% {
        transform: translate(0, -20px) scale(1);
    }
    70% {
        transform: translate(0, 0) scale(1);
    }
    85% {
        transform: translate(0, -10px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}
.ps-popup h3 {
    margin: 0 0 15px;
    color: #333;
}
.ps-popup p {
    margin: 0;
    color: #666;
}
.ps-popup .countdown {
    font-weight: bold;
    color: #7BBB41;
}

/* ALERTS */
.ps-alert {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.ps-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* PILL OPTIONS */
/* Connected pill radio group */
.ps-radio-group {
    display: inline-flex;
    align-items: stretch;
    border-radius: 9999px; /* helps ensure smooth rounded ends */
}

.ps-radio {
    position: relative;
    margin: 0; /* remove gaps between pills */
}

/* Hide the native radio */
.ps-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Base pill */
.ps-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border: 1px solid #7BBB41;
    background: #fff;
    color: #7BBB41;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Connect the pills (remove inner borders) */
.ps-radio + .ps-radio .ps-radio-label {
    border-left: none;
}

/* Rounded ends */
.ps-radio:first-child .ps-radio-label {
    border-radius: 9999px 0 0 9999px;
}
.ps-radio:last-child .ps-radio-label {
    border-radius: 0 9999px 9999px 0;
}
/* Middle pills (no rounding) */
.ps-radio:not(:first-child):not(:last-child) .ps-radio-label {
    border-radius: 0;
}

/* Hover (unchecked) */
.ps-radio input[type="radio"]:not(:checked) + .ps-radio-label:hover {
    background: #f6fff1;
    border-color: #7BBB41;
}

/* Selected */
.ps-radio input[type="radio"]:checked + .ps-radio-label {
    background: #7BBB41;
    color: #fff;
    border-color: #7BBB41;
    box-shadow: inset 0 0 0 1px #7BBB41;
}

/* Focus ring for keyboard users */
.ps-radio input[type="radio"]:focus-visible + .ps-radio-label {
    outline: 3px solid #bfe6a2; /* accessible focus */
    outline-offset: 2px;
}

/* Disabled state */
.ps-radio input[type="radio"]:disabled + .ps-radio-label {
    opacity: .5;
    cursor: not-allowed;
}


/* SIZE */
.ps-enq-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-enq-size > div {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 5px;
}

/* LABELS */
.ps-enquiry-form .form-group label {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.ps-enquiry-form .form-group {
    text-align: center;
}

.ps-enquiry-form .form-group p {
    margin: 0px;
}

.ps-enquiry-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.ps-enquiry-message.success {
    background-color: #edf7ed;
    color: #1e4620;
}

.ps-enquiry-message.error {
    background-color: #fdeded;
    color: #5f2120;
}

.tableContainer {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

/* GENERAL TABLE */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

thead.clone {
    display: table;
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
}

th {
    padding: 10px;
    background: #7BBB41;
    color: #FFF;
    border: 1px solid #7BBB41;
    vertical-align: middle;
    font-weight: bold;
}

th a  {
    color: #FFF;
}

td {
    padding: 10px;
    text-align: center;
    border: 1px solid #7BBB41;
    vertical-align: middle;
}

.optionsColumn {
    width: 1%;
    white-space: nowrap;
}

tr {
    border-bottom: 1px solid #7BBB41;
    -webkit-transition: all 0.5s ease, width 0;
    -moz-transition: all 0.5s ease, width 0;
    -o-transition: all 0.5s ease, width 0;
    transition: all 0.5s ease, width 0;
}
tr:nth-child(even) {
    background: var(--main-color-lighter-3);
}
tr:nth-child(odd) {
    background: var(--main-color-lighter-4);
}

tr.evenRow {
    background: var(--main-color-lighter-3);
}
tr.oddRow {
    background: var(--main-color-lighter-4);
}

tr:hover {
    background: var(--main-color-lighter-5);
}


/* INVISIBLE TABLE */
table.invisible {
    border: none !important;
    background: transparent !important;
    width: min-content;
    visibility: visible !important;
}

table.invisible tr {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

table.invisible th,
table.invisible td {
    border: none !important;
    background: transparent !important;
    padding: 0px 5px 5px 0px !important;
    text-align: left !important;
    vertical-align: top !important;
}

/* ONLINE QUOTE PREVIEW */
table.styled {
    width: calc(100% - 2px);
    margin: auto;
}

table.styled thead {
    border-bottom: 1px solid #7BBB41;
    color: #7BBB41;
}

table.styled thead tr {
    background: none;
}

table.styled th, table.styled td {
    padding: 10px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    background: none;
    border: none;
    color: #7BBB41;
    font-weight: normal;
}

table.styled td {
    color: #212529;
}

table.styled tbody tr {
    border-bottom: 1px dashed #7BBB41;
}

table.styled tbody tr:last-of-type {
    border-bottom: none;
}

table.styled tbody tr:nth-child(odd) {
    background: #fafff7;
}

table.styled tbody tr:nth-child(even) {
    background: #f4ffe9;
}

table.styled tbody tr:nth-child(odd):hover {
    background: #f1f8ef;
}

table.styled tbody tr:nth-child(even):hover {
    background: #eafae5;
}

.styled .grouped-rows {
    border: 1px solid #7BBB41;
}

.styled .grouped-rows tr:last-child {
    border-bottom: none;
}

.styled td a {
    background: white;
    padding: 3px 10px;
    display: inline-flex;
    gap: 5px;
    border-radius: 20px;
    align-items: baseline;
    border: 1px solid #7BBB41;
    color: #7BBB41;
    justify-content: center;
}

/* GROUP TABLE */
.group-table {
    margin: 0;
    width: 100%;
}

.p-0 {
    padding: 0 !important;
}

.w-100 {
    width: 100%;
}

.group-table {
    outline: 1px solid #AAD384;
}


.group-container {
    border-left: 1px solid;
    border-right: 1px solid;
}

.group-header {
    background: #AAD384 !important;
}

td a.selectQuotePrice {
    cursor: pointer;
    opacity: 0.5;
    background: none;
    border: none;
    color: red;
}

td a.selectQuotePrice:hover {
    opacity: 0.8;
    text-decoration: none;
}

td a.selectQuotePrice.selected {
    color: green;
}

@media (max-width: 1200px) {
    /* Base: hide header and turn rows into cards */
    table.styled {
        border: 0;
        width: 100%;
    }
    table.styled thead {
        display: none;
    }
    table.styled tbody tr {
        margin: 0 0 12px;
        border: 1px solid #7BBB41;          /* card border */
        overflow: hidden;
        background: #fff;                    /* neutral card base */
    }

    /* Keep your zebra hover feel on the whole card */
    table.styled tbody tr:hover {
        background: #f4ffe9;
    }

    table.styled tbody tr:last-of-type {
        border-bottom: 1px solid #7BBB41;
        margin-bottom: 0px;
    }

    /* Cells become two-column grid: label | value */
    table.styled td {
        display: grid;                       /* grid preserves <br> and normal inline flow */
        grid-template-columns: auto 1fr;     /* label | value */
        align-items: start;
        text-align: right;                    /* override center */
        white-space: normal;                 /* allow wrapping on mobile */
        border: 0;                           /* row border handles separation */
        padding: 10px !important;
        background: transparent;
        color: #212529;
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
    table.styled td + td {
        border-top: 1px dashed rgba(123, 187, 65, .5);
    }

    /* Auto labels from data-label (preferred) */
    table.styled td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #7BBB41;
        margin-right: 10px;
    }

    table.styled td p {
        margin-bottom: 0px;
    }

    /* Place actual cell content in the value column and right-align */
    table.styled td > * {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    /* Common content tweaks */
    table.styled td a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }

    /* Optional: make long text wrap nicely */
    table.styled td * {
        min-width: 0;            /* allow shrinking inside grid */
        max-width: 100%;
    }

    /* Grouped tables inside cards */
    .group-table,
    .styled .grouped-rows {
        width: 100%;
        outline: none;
    }
    .group-header {
        background: #AAD384 !important;
        margin-bottom: 0px;
        border: none;
    }

    table.styled td:not([data-label])::before {
        content: none;
        display: none;
    }

    /* If a row acts as a total/footer row you want to keep compact, you can override it like this:
       .styled tbody tr.total-row td {
         display: block;
         grid-template-columns: none;
         text-align: right;
       }
       .styled tbody tr.total-row td::before { content: none; }
    */

    table.invisible td {
        display: table-cell;
        width: fit-content !important;
    }

    table.invisible {
        width: fit-content !important;
    }

    table.unstyled tr {
        display: flex;
        flex-flow: column;
        gap: 0px;
        padding: 10px 0px;
    }
    table.unstyled tr td {
        text-align: left !important;
        padding: 0px;
    }
}

/* UNSTYLED TABLE */
table.unstyled tr, table.unstyled th, table.unstyled td {
    border: none;
    background: none;
}

#accountModalFooter {
    text-align: center;
    margin-top: 100px;
    color: #212529;
}

.ps-quote-actions, .ps-proof-actions {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.ps-approve-quote, .ps-reject-quote, .ps-approve-proof, .ps-reject-proof {
    display: block;
    flex: 1 1 auto;
    text-align: center;
    margin: 0px;
}

.ps-reject-quote, .ps-reject-proof {
    background-color: red;
}

/* Styled quantity control */
.ps-qty-block { margin: 10px 0 0 0; }
.ps-qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #EDF5E0;
    border-radius: 20px 0;
    overflow: hidden;
    background: #fff;
}
.ps-qty-btn {
    appearance: none;
    border: none;
    background: #FFFFFF;
    color: #7BBB41;
    font-size: 22px;
    width: 44px; height: 44px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    user-select: none;
}
.ps-qty-btn:hover { background: #f6fff1; }
.ps-qty-btn:active { background: #ecffe0; }
.ps-dyn-qty {
    width: 90px; height: 44px;
    text-align: center;
    border: none;
    border-left: 2px solid #EDF5E0;
    border-right: 2px solid #EDF5E0;
    font-size: 18px;
    outline: none;
    -moz-appearance: textfield;
}
.ps-dyn-qty::-webkit-outer-spin-button,
.ps-dyn-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure Adobe iframe fills the container */
#ps-proof-pdf-viewer {
    height: 80vh; /* or any fixed/relative height you prefer */
    width: 100%;
}
#ps-proof-pdf-viewer > div,
#ps-proof-pdf-viewer iframe {
    height: 100% !important;
    width: 100% !important;
}


#ps-artwork-dialog {
    position:absolute;
    top:5%;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    max-width:1000px;
    height:90%;
    background:#fff;
    border-radius:6px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    overflow:hidden;
}

@media (max-width: 800px) {
    #ps-artwork-dialog {
        top: 0.5%;
        width: 99%;
        height: 99%;
    }

    .ps-product-grid {
        padding: 50px 20px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .ps-cart-actions .ps-proceed-checkout, .ps-continue-shopping, .ps-button, .ps-approve-quote, .ps-reject-quote, .ps-approve-proof, .ps-reject-proof {
        width: 100%;
        text-align: center;
    }

    .ps-pdf-quote-button {
        margin: 10px 0px;
    }

    .ps-clear-cart, .ps-continue-shopping {
        margin-bottom: 10px;
    }

    .ps-continue-shopping, .ps-clear-cart, .ps-proceed-checkout, .ps-remove-item, .ps-button {
        margin-left: 0px !important;
        width: 100%;
        text-align: center;
        justify-content: center;   /* horizontal center */
        align-items: center;       /* vertical center */
        white-space: nowrap;       /* keep text on one line */

    }

}