/* =========================================================
   ACP PRODUCT CONFIGURATOR
   Clean Red / Black / White Theme
   ========================================================= */

:root {
    --acp-red: #e10600;
    --acp-red-dark: #b80500;
    --acp-red-deep: #780400;
    --acp-red-soft: #fff2f2;
    --acp-red-soft-2: #ffe3e3;

    --acp-black: #111111;
    --acp-black-2: #1f1f1f;
    --acp-white: #ffffff;

    --acp-text: #111111;
    --acp-muted: #6f6f6f;
    --acp-border: #e4e4e4;
    --acp-surface: #fafafa;

    --acp-radius-sm: 8px;
    --acp-radius-md: 12px;
    --acp-radius-lg: 18px;

    --acp-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    --acp-transition: 0.25s ease;
}


/* =========================================================
   MAIN CONFIGURATOR
   ========================================================= */

.acp-configurator {
    max-width: 600px;
    margin: auto;
}


/* Hide normal WooCommerce add-to-cart form */
.woocommerce div.product form.cart:not(.acp-cart-form) {
    display: none;
}


/* =========================================================
   TABS
   ========================================================= */

.acp-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 20px;
    background: var(--acp-white);
    border-bottom: 1px solid var(--acp-border);
}

.acp-tab-btn {
    border: 1px solid transparent;
    background: #f3f3f3;
    color: var(--acp-text);
    padding: 12px 22px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-tab-btn:hover {
    background: var(--acp-red-soft);
    border-color: var(--acp-red-soft-2);
    color: var(--acp-red-dark);
}

.acp-tab-btn.active {
    background: var(--acp-red);
    border-color: var(--acp-red);
    color: var(--acp-white);
}

.acp-tab-content {
    display: none;
}

.acp-tab-content.active {
    display: block;
}


/* =========================================================
   UPLOAD BOX
   ========================================================= */

.acp-upload-box,
#acp-upload-box {
    position: relative;
    min-height: 350px;
    border: 2px dashed #d8d8d8;
    border-radius: 15px;
    background: var(--acp-white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: border-color var(--acp-transition),
                box-shadow var(--acp-transition);
}

.acp-upload-box:hover,
#acp-upload-box:hover {
    border-color: var(--acp-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.06);
}

#acp-upload-default {
    position: relative;
    z-index: 10;
    text-align: center;
}

#acp-upload-default label {
    display: block;
    cursor: pointer;
}

.acp-upload-icon {
    font-size: 45px;
    margin-bottom: 15px;
    color: var(--acp-red);
}

#acp-upload-default h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--acp-text);
}

#acp-upload-default p {
    margin: 0;
    color: var(--acp-muted);
}


/* =========================================================
   UPLOAD LOADER
   ========================================================= */

#acp-upload-loader {
    position: absolute;
    inset: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    background:
        radial-gradient(
            circle at 35% 50%,
            #ffffff 0,
            #fff7f7 42%,
            #fff0f0 100%
        );

    border-radius: 15px;
}

#acp-upload-loader[style*="display:none"],
#acp-upload-loader[style*="display: none"] {
    display: none !important;
}

.acp-loader-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 30px;
}


/* =========================================================
   RUNNING CHARACTER + 0–100 PROGRESS RING
   ========================================================= */

/*
   JavaScript should update:
   element.style.setProperty('--acp-progress', percent);

   Example:
   --acp-progress: 0;   = empty ring
   --acp-progress: 50;  = half ring
   --acp-progress: 100; = full ring
*/

.acp-character-circle,
.acp-upload-circle {
    --acp-progress: 0;

    position: relative;
    flex: 0 0 auto;

    width: 120px;
    height: 120px;

    display: grid;
    place-items: center;

    box-sizing: border-box;
    padding: 7px;

    border: 0;
    border-radius: 50%;

    background:
        conic-gradient(
            var(--acp-red) calc(var(--acp-progress) * 1%),
            #f0d4d4 0
        );

    box-shadow:
        0 7px 22px rgba(225, 6, 0, 0.18);

    /*
       IMPORTANT:
       The GIF already contains movement.
       Do not rotate or animate this wrapper.
    */
    animation: none !important;
    transform: none !important;
    rotate: 0deg !important;
}

.acp-character-circle::before,
.acp-upload-circle::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--acp-white);
    z-index: 0;
}


/* GIF / character stays upright */
.acp-character-circle img,
.acp-upload-circle img,
.acp-running-character {
    position: relative;
    z-index: 2;

    display: block;
    width: 88px;
    height: 88px;

    max-width: 88px;
    max-height: 88px;

    object-fit: contain;

    animation: none !important;
    transform: none !important;
    rotate: 0deg !important;
}


/* Upload percentage */
#acp-upload-percent {
    margin: 5px 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 500;
    color: var(--acp-black);
    font-variant-numeric: tabular-nums;
}

#acp-upload-status {
    color: var(--acp-red);
}


/* Loader text */
.acp-loader-text {
    text-align: left;
}

.acp-loader-text small {
    color: var(--acp-muted);
    font-size: 13px;
}

.acp-loader-text h2 {
    margin: 5px 0;
    color: var(--acp-red);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: 1px;
}

.acp-loader-text h1 {
    margin: 5px 0;
    color: var(--acp-black);
    font-size: 42px;
    line-height: 1;
}

.acp-loader-text p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}


/* Old spinner intentionally disabled */
@keyframes acp-spin-border {
    from { transform: rotate(0deg); }
    to   { transform: rotate(0deg); }
}


/* =========================================================
   HORIZONTAL PROGRESS BAR
   ========================================================= */

.acp-progress-wrapper {
    width: 100%;
    margin-top: 20px;
}

.acp-progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: #f0dddd;
    border-radius: 999px;
}

.acp-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--acp-red-dark),
            var(--acp-red)
        );
    transition: width 0.18s linear;
}


/* =========================================================
   ARTWORK PREVIEW
   ========================================================= */

#acp-preview-area {
    position: relative;
    z-index: 5;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;
}

#acp-preview-area img,
.acp-preview-image {
    position: relative;
    z-index: 6;

    display: block;
    max-width: 250px;
    max-height: 250px;

    object-fit: contain;
    border-radius: 10px;
}


/* =========================================================
   IMAGE ACTION BUTTONS
   ========================================================= */

#acp-image-actions,
#acp-bg-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 20px;
}

.acp-action-btn {
    padding: 12px 22px;

    border: 1px solid var(--acp-black);
    border-radius: 10px;

    background: var(--acp-white);
    color: var(--acp-black);

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-action-btn:hover {
    background: var(--acp-red);
    border-color: var(--acp-red);
    color: var(--acp-white);
}


/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */

#acp-add-cart-btn {
    display: block;

    width: 100%;
    max-width: 350px;

    padding: 15px 25px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--acp-red),
            var(--acp-red-dark)
        );

    color: var(--acp-white);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(225, 6, 0, 0.22);

    transition: var(--acp-transition);
}

#acp-add-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(225, 6, 0, 0.28);
}

#acp-add-cart-btn:active {
    transform: translateY(0) scale(0.99);
}


/* =========================================================
   AI TAB
   ========================================================= */

#acp-ai-tab {
    padding: 40px;
    text-align: center;

    background: var(--acp-surface);
    border: 1px solid var(--acp-border);
    border-radius: 15px;
}

#acp-ai-tab h3 {
    font-size: 24px;
}


/* =========================================================
   PREVIOUS DESIGNS
   ========================================================= */

.acp-design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.acp-design-card {
    padding: 15px;

    border: 1px solid var(--acp-border);
    border-radius: 15px;

    background: var(--acp-white);
    text-align: center;

    transition: var(--acp-transition);
}

.acp-design-card:hover {
    border-color: #efb4b4;
    box-shadow: var(--acp-shadow);
}

.acp-design-image {
    width: 100%;
    height: 150px;

    object-fit: contain;
    margin-bottom: 15px;
}

.acp-use-design {
    border: 0;
    border-radius: 8px;

    padding: 10px 20px;

    background: var(--acp-red);
    color: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-use-design:hover {
    background: var(--acp-red-dark);
}


/* =========================================================
   PRODUCT OPTIONS WRAPPER
   ========================================================= */

#acp-product-options {
    margin-top: 35px;
    padding: 25px;

    background: var(--acp-white);
    border: 1px solid var(--acp-border);
    border-radius: 20px;

    box-shadow: var(--acp-shadow);
}

.acp-options-hidden {
    display: none;
}


/* =========================================================
   PRICING OPTIONS
   ========================================================= */

.acp-pricing-options {
    margin-top: 25px;
    padding: 20px;

    border: 1px solid var(--acp-border);
    border-radius: 15px;
}


/* =========================================================
   PRICING TABLE
   ========================================================= */

.acp-pricing-table {
    margin-bottom: 30px;

    background: var(--acp-white);
    border-radius: 15px;
    overflow: hidden;
}

.acp-pricing-table h3 {
    margin-bottom: 15px;

    color: var(--acp-text);
    font-size: 22px;
}

.acp-pricing-table table {
    width: 100%;
    margin-top: 20px;

    border-collapse: separate;
    border-spacing: 0;

    border: 1px solid var(--acp-border);
    border-radius: 12px;

    overflow: hidden;
}

.acp-pricing-table th {
    padding: 14px;

    background: var(--acp-black);
    color: var(--acp-white);

    font-size: 14px;
    text-align: center;
}

.acp-pricing-table td {
    padding: 13px;

    border-bottom: 1px solid #eeeeee;

    font-size: 14px;
    text-align: center;
}

.acp-pricing-table tr:last-child td {
    border-bottom: 0;
}

.acp-pricing-table tr.active {
    background: var(--acp-red-soft);
    color: var(--acp-red-dark);
    font-weight: 600;
}


/* =========================================================
   SIZE OPTIONS
   ========================================================= */

.acp-size-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.acp-size-options label {
    padding: 15px;

    border: 1px solid #cccccc;
    border-radius: 10px;

    background: var(--acp-white);
    cursor: pointer;
}

.acp-size-options input {
    margin-right: 8px;
}

.acp-price-display {
    margin-top: 20px;
    font-size: 22px;
}


/* =========================================================
   SIZE + QUANTITY CARD
   ========================================================= */

.acp-size-box {
    margin-top: 25px;
    padding: 25px;

    background: var(--acp-white);
    border: 1px solid #e8e8e8;
    border-radius: 18px;

    box-shadow: var(--acp-shadow);
}

.acp-size-box h3 {
    margin-bottom: 25px;

    color: var(--acp-text);

    font-size: 22px;
    font-weight: 600;
}

.acp-size-inputs {
    display: flex;
    gap: 20px;
}

.acp-size-inputs > div,
.acp-size-inputs div {
    flex: 1;
}

.acp-size-inputs label {
    display: block;

    margin-bottom: 8px;

    color: #555555;

    font-size: 13px;
    font-weight: 600;
}

.acp-size-inputs input {
    width: 100%;
    height: 48px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: var(--acp-white);

    font-size: 16px;
    outline: none;

    transition: var(--acp-transition);
}

.acp-size-inputs input:focus {
    border-color: var(--acp-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.acp-size-result {
    margin-top: 20px;
    padding: 12px 15px;

    background: var(--acp-red-soft);
    border-radius: 10px;

    color: #555555;
    font-size: 15px;
}

.acp-size-result strong {
    color: var(--acp-red);
}

.acp-quantity-box {
    margin-top: 20px;
}

.acp-quantity-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#acp-quantity {
    width: 160px;
    height: 45px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid #dddddd;
    border-radius: 10px;

    background: var(--acp-white);

    font-size: 16px;
}


/* =========================================================
   PRICE BOX
   ========================================================= */

.acp-price-box {
    margin-top: 25px;
    padding: 20px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #111111,
            #262626
        );

    color: var(--acp-white);
}

.acp-price-box p {
    margin: 0 0 10px;
    font-size: 15px;
}

.acp-price-box h3 {
    margin: 0;

    color: var(--acp-white);

    font-size: 26px;
}

#acp-piece-price,
#acp-total-price {
    color: #ff514c;
}

.acp-order-price {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 20px;
}


/* =========================================================
   OPTIONS CARD
   ========================================================= */

.acp-options {
    margin-top: 25px;
    padding: 25px;

    background: var(--acp-white);
    border: 1px solid #e8e8e8;
    border-radius: 18px;

    box-shadow: var(--acp-shadow);
}

.acp-options h3 {
    margin-bottom: 8px;

    color: var(--acp-text);

    font-size: 22px;
}

.acp-options > p {
    margin-bottom: 25px;
    color: var(--acp-muted);
}

.acp-options h4 {
    margin-top: 20px;
    margin-bottom: 12px;
}


/* =========================================================
   LEGACY SHAPE / BACKING SELECTORS
   ========================================================= */

.acp-shapes,
.acp-backing {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.acp-shapes label {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-shapes label:hover {
    border-color: var(--acp-red);
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.08);
}

.acp-shapes input {
    display: none;
}

.acp-shapes input:checked + img {
    transform: scale(1.1);
}

.acp-shapes img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.acp-backing label {
    padding: 12px 18px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-backing label:hover {
    border-color: var(--acp-red);
}

.acp-backing input {
    margin-right: 6px;
}


/* =========================================================
   SHAPE SELECTOR
   ========================================================= */

.acp-shape-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 15px;
}

.acp-shape-options label {
    width: 75px;
    height: 75px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #dddddd;
    border-radius: 14px;

    background: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-shape-options label:hover {
    border-color: var(--acp-red);
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.08);
}

.acp-shape-options input {
    display: none;
}

.acp-shape-options input:checked + span {
    color: var(--acp-red);
    font-weight: 600;
}


/* =========================================================
   COLOR OPTIONS
   ========================================================= */

.acp-options input[type="color"] {
    width: 100%;
    height: 45px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;
}

.acp-color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 10px;
}

.acp-color-options label {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-color-options label:hover {
    border-color: var(--acp-red);
}

.acp-color-options input {
    width: 22px;
    height: 22px;
}


/* =========================================================
   BACKING OPTIONS
   ========================================================= */

.acp-backing-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 15px;
}

.acp-backing-options label {
    padding: 14px 22px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: var(--acp-white);

    cursor: pointer;
    transition: var(--acp-transition);
}

.acp-backing-options label:hover {
    border-color: var(--acp-red);
}

.acp-backing-options input {
    margin-right: 8px;
}

.acp-backing-options input:checked + span {
    color: var(--acp-red);
    font-weight: 600;
}


/* =========================================================
   REORDER / VIEW DESIGN
   ========================================================= */

.acp-design-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 20px;
}

.acp-reorder-design {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 15px;
    padding: 12px 28px;

    border: 0 !important;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--acp-red),
            var(--acp-red-dark)
        );

    color: var(--acp-white) !important;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(225, 6, 0, 0.20);

    transition: var(--acp-transition);
}

.acp-reorder-design:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            var(--acp-red-dark),
            var(--acp-red-deep)
        );

    box-shadow:
        0 8px 22px rgba(225, 6, 0, 0.26);
}

.acp-reorder-design:active {
    transform: scale(0.96);
}

.acp-view-design {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 10px;
    margin-top: 15px;

    padding: 12px 25px;

    border: 1px solid #dddddd !important;
    border-radius: 10px;

    background: var(--acp-white);
    color: var(--acp-black) !important;

    font-weight: 600;
    text-decoration: none !important;

    transition: var(--acp-transition);
}

.acp-view-design:hover {
    transform: translateY(-2px);

    background: var(--acp-red-soft);
    border-color: #efb4b4 !important;
    color: var(--acp-red-dark) !important;
}


/* =========================================================
   LOGIN DESIGN MESSAGE
   ========================================================= */

.acp-login-design-message {
    margin-top: 20px;
    padding: 25px;

    background: var(--acp-red-soft);
    border: 1px solid var(--acp-red-soft-2);
    border-radius: 12px;

    text-align: center;
    font-size: 16px;
}

.acp-login-design-message p {
    margin-bottom: 15px;
}

.acp-login-design-message .button {
    padding: 12px 25px;

    border-radius: 8px;

    background: var(--acp-red);
    color: var(--acp-white);

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .acp-tabs {
        overflow-x: auto;
        align-items: stretch;
    }

    .acp-tab-btn {
        flex: 0 0 auto;
    }

    .acp-loader-box {
        flex-direction: column;
        gap: 16px;

        padding: 24px 18px;

        text-align: center;
    }

    .acp-loader-text {
        text-align: center;
    }

    .acp-character-circle,
    .acp-upload-circle {
        width: 108px;
        height: 108px;
        padding: 6px;
    }

    .acp-character-circle::before,
    .acp-upload-circle::before {
        inset: 6px;
    }

    .acp-character-circle img,
    .acp-upload-circle img,
    .acp-running-character {
        width: 78px;
        height: 78px;
        max-width: 78px;
        max-height: 78px;
    }

    #acp-upload-percent,
    .acp-loader-text h1 {
        font-size: 34px;
    }

    .acp-loader-text h2 {
        font-size: 22px;
    }

    .acp-design-grid {
        grid-template-columns: 1fr;
    }

    .acp-size-inputs {
        flex-direction: column;
    }

    .acp-shapes {
        flex-wrap: wrap;
    }

    .acp-options {
        padding: 18px;
    }

    .acp-shape-options label {
        width: 65px;
        height: 65px;
    }

    .acp-order-price {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .acp-tab-btn,
    .acp-action-btn,
    #acp-add-cart-btn,
    .acp-use-design,
    .acp-reorder-design,
    .acp-view-design,
    .acp-progress-bar span {
        transition: none !important;
    }
}
/* ========================================
   ACP PREVIOUS DESIGNS COMPACT TABLE
======================================== */

.acp-previous-designs {
    width: 100%;
}

.acp-previous-designs h2 {
    margin-bottom: 20px;
}


/* TABLE WRAPPER */

.acp-design-table-wrap {
    width: 100%;
    overflow-x: auto;
}


/* TABLE */

.acp-design-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dddddd;
    background: #ffffff;
}


/* HEADER */

.acp-design-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    border-bottom: 1px solid #dddddd;
    white-space: nowrap;
}


/* ROW */

.acp-design-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.acp-design-table tbody tr:last-child {
    border-bottom: none;
}


/* CELL */

.acp-design-table tbody td {
    padding: 9px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: #222222;
}


/* ARTWORK */

.acp-design-artwork img {
    width: 55px;
    height: 55px;

    object-fit: contain;

    border: 1px solid #eeeeee;
    border-radius: 7px;

    background: #ffffff;
}


/* ORDER */

.acp-design-table td strong {
    color: #111111;
}


/* STATUS */

.acp-design-status {
    white-space: nowrap;
}


/* ACTIONS */

.acp-design-row-actions {
    white-space: nowrap;
}

.acp-design-row-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 7px 12px !important;
    margin: 2px 3px !important;

    border-radius: 4px !important;

    font-size: 13px !important;

    cursor: pointer;
}


/* VIEW */

.acp-design-row-actions .acp-view-design {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}


/* REORDER */

.acp-design-row-actions .acp-reorder-design {
    background: #e10600 !important;
    border-color: #e10600 !important;
    color: #ffffff !important;

    transform: none !important;
    box-shadow: none !important;
}


/* HOVER */

.acp-design-row-actions .acp-view-design:hover {
    background: #333333 !important;
}

.acp-design-row-actions .acp-reorder-design:hover {
    background: #b80500 !important;
    border-color: #b80500 !important;

    transform: none !important;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .acp-design-table thead {
        display: none;
    }


    .acp-design-table,
    .acp-design-table tbody,
    .acp-design-table tr,
    .acp-design-table td {
        display: block;
        width: 100%;
    }


    .acp-design-table tbody tr {
        padding: 12px 0;
    }


    .acp-design-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 7px 12px;

        text-align: right;
    }


    .acp-design-table tbody td::before {
        content: attr(data-title);

        font-weight: 600;
        color: #111111;

        text-align: left;
    }


    .acp-design-artwork img {
        width: 60px;
        height: 60px;
    }


    .acp-design-row-actions {
        white-space: normal;
    }

}

/* ========================================
   ACP UPLOAD TAB - PREVIOUS DESIGNS
======================================== */

.acp-upload-design-table-wrap {
    width: 100%;
    margin-top: 15px;
    overflow-x: auto;
}


/* TABLE */

.acp-upload-design-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
}


/* HEADER */

.acp-upload-design-table thead th {
    padding: 10px 12px;
    text-align: left;

    font-size: 13px;
    font-weight: 600;

    color: #111111;
    background: #fafafa;

    border-bottom: 1px solid #dddddd;

    white-space: nowrap;
}


/* ROWS */

.acp-upload-design-table tbody tr {
    border-bottom: 1px solid #eeeeee;
    transition: background 0.2s ease;
}

.acp-upload-design-table tbody tr:last-child {
    border-bottom: none;
}

.acp-upload-design-table tbody tr:hover {
    background: #fff7f7;
}


/* CELLS */

.acp-upload-design-table tbody td {
    padding: 9px 12px;

    vertical-align: middle;

    font-size: 13px;
    color: #222222;
}


/* ========================================
   ARTWORK
======================================== */

.acp-upload-design-artwork {
    width: 65px;
}

.acp-upload-design-artwork a {
    display: inline-block;
}

.acp-upload-design-artwork img {
    display: block;

    width: 50px;
    height: 50px;

    object-fit: contain;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 7px;

    padding: 3px;
}


/* ========================================
   ORDER NUMBER
======================================== */

.acp-upload-design-table td strong {
    color: #111111;
    font-weight: 600;
}


/* ========================================
   ACTION COLUMN
======================================== */

.acp-upload-design-actions {
    width: 80px;
    white-space: nowrap;
}


/* USE BUTTON */

.acp-use-previous-design {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    margin: 0 !important;

    min-width: 58px;
    height: 34px;

    padding: 6px 13px !important;

    background: #e10600 !important;
    color: #ffffff !important;

    border: 1px solid #e10600 !important;
    border-radius: 6px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    cursor: pointer;

    box-shadow: none !important;
    transform: none !important;

    transition: 0.2s ease;
}


/* USE BUTTON HOVER */

.acp-use-previous-design:hover {
    background: #b80500 !important;
    border-color: #b80500 !important;

    color: #ffffff !important;

    transform: none !important;
    box-shadow: none !important;
}


/* USE BUTTON CLICK */

.acp-use-previous-design:active {
    background: #8d0400 !important;

    transform: scale(0.97) !important;
}


/* ========================================
   NO DESIGNS
======================================== */

.acp-no-upload-designs {
    margin: 18px 0 0;

    padding: 15px;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 8px;

    font-size: 14px;

    color: #555555;
}


/* ========================================
   LOGIN MESSAGE
======================================== */

.acp-upload-design-login {
    margin-top: 15px;

    padding: 25px;

    text-align: center;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 10px;
}


.acp-upload-design-login p {
    margin: 0 0 15px;

    font-size: 14px;
    color: #444444;
}


.acp-upload-design-login .button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    background: #e10600;
    color: #ffffff !important;

    border: none;
    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


.acp-upload-design-login .button:hover {
    background: #b80500;
    color: #ffffff !important;
}


/* ========================================
   TABLE SCROLLBAR
======================================== */

.acp-upload-design-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.acp-upload-design-table-wrap::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 10px;
}

.acp-upload-design-table-wrap::-webkit-scrollbar-thumb {
    background: #d2d2d2;
    border-radius: 10px;
}

.acp-upload-design-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #bbbbbb;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .acp-upload-design-table {
        border: none;
        background: transparent;
    }


    .acp-upload-design-table thead {
        display: none;
    }


    .acp-upload-design-table,
    .acp-upload-design-table tbody,
    .acp-upload-design-table tr,
    .acp-upload-design-table td {
        display: block;
        width: 100%;
    }


    .acp-upload-design-table tbody tr {
        margin-bottom: 12px;

        padding: 12px;

        background: #ffffff;

        border: 1px solid #e5e5e5;
        border-radius: 10px;
    }


    .acp-upload-design-table tbody td {
        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 7px 0;

        border: none;

        text-align: right;
    }


    .acp-upload-design-table tbody td::before {
        content: attr(data-title);

        font-size: 12px;
        font-weight: 600;

        color: #555555;

        text-align: left;
    }


    .acp-upload-design-artwork {
        width: 100%;
    }


    .acp-upload-design-artwork img {
        width: 58px;
        height: 58px;
    }


    .acp-upload-design-actions {
        width: 100%;
    }


    .acp-use-previous-design {
        min-width: 65px;
    }

}

/* =========================================================
   ACP PREVIOUS DESIGNS
   COMPACT TABLE + PAGINATION
========================================================= */


/* =========================================================
   TABLE WRAPPER
========================================================= */

.acp-upload-design-table-wrap {
    width: 100%;
    margin-top: 15px;

    overflow-x: auto;

    background: #ffffff;
}


/* =========================================================
   TABLE
========================================================= */

.acp-upload-design-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 10px;

    overflow: hidden;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.acp-upload-design-table thead th {
    padding: 10px 12px;

    text-align: left;

    font-size: 13px;
    font-weight: 600;

    color: #111111;

    background: #fafafa;

    border-bottom: 1px solid #dddddd;

    white-space: nowrap;
}


/* =========================================================
   ROWS
========================================================= */

.acp-upload-design-table tbody tr {
    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    transition:
        background 0.2s ease;
}


.acp-upload-design-table tbody tr:last-child {
    border-bottom: none;
}


.acp-upload-design-table tbody tr:hover {
    background: #fff6f6;
}


/* =========================================================
   CELLS
========================================================= */

.acp-upload-design-table tbody td {
    padding: 9px 12px;

    vertical-align: middle;

    font-size: 13px;

    color: #222222;
}


/* =========================================================
   ARTWORK
========================================================= */

.acp-upload-design-artwork {
    width: 65px;
}


.acp-upload-design-artwork a {
    display: inline-block;

    text-decoration: none;
}


.acp-upload-design-artwork img {
    display: block;

    width: 48px;
    height: 48px;

    object-fit: contain;

    padding: 3px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 7px;
}


/* =========================================================
   ORDER NUMBER
========================================================= */

.acp-upload-design-table td strong {
    color: #111111;

    font-weight: 600;
}


/* =========================================================
   ACTION
========================================================= */

.acp-upload-design-actions {
    width: 75px;

    white-space: nowrap;
}


/* =========================================================
   USE BUTTON

   Important:
   Overrides older .acp-reorder-design styles.
========================================================= */

.acp-use-previous-design {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-width: 48px !important;
    height: 34px !important;

    margin: 0 !important;

    padding: 6px 13px !important;

    background: #e10600 !important;

    color: #ffffff !important;

    border: 1px solid #e10600 !important;

    border-radius: 6px !important;

    font-size: 12px !important;

    font-weight: 600 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow: none !important;

    transform: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease !important;
}


.acp-use-previous-design:hover {
    background: #b80500 !important;

    border-color: #b80500 !important;

    color: #ffffff !important;

    transform: none !important;

    box-shadow: none !important;
}


.acp-use-previous-design:active {
    background: #8f0400 !important;

    border-color: #8f0400 !important;

    transform: scale(0.97) !important;
}


/* =========================================================
   NO DESIGNS
========================================================= */

.acp-no-upload-designs {
    margin: 15px 0 0;

    padding: 15px;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    font-size: 14px;

    color: #555555;
}


/* =========================================================
   LOGIN BOX
========================================================= */

.acp-upload-design-login {
    margin-top: 15px;

    padding: 25px;

    text-align: center;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 10px;
}


.acp-upload-design-login p {
    margin: 0 0 15px;

    color: #444444;

    font-size: 14px;
}


.acp-upload-design-login .button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    background: #e10600 !important;

    color: #ffffff !important;

    border: 1px solid #e10600 !important;

    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}


.acp-upload-design-login .button:hover {
    background: #b80500 !important;

    border-color: #b80500 !important;

    color: #ffffff !important;
}


/* =========================================================
   PAGINATION
========================================================= */

.acp-design-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    width: 100%;

    margin-top: 15px;

    padding: 10px 0 5px;
}


/* =========================================================
   PAGE NUMBER
========================================================= */

.acp-design-page-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    min-width: 34px;
    height: 34px;

    margin: 0 !important;

    padding: 0 !important;

    background: #ffffff !important;

    color: #111111 !important;

    border: 1px solid #dddddd !important;

    border-radius: 7px !important;

    font-size: 13px !important;

    font-weight: 600 !important;

    line-height: 1 !important;

    cursor: pointer;

    box-shadow: none !important;

    transform: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}


/* PAGE HOVER */

.acp-design-page-btn:hover {
    background: #fff3f3 !important;

    color: #e10600 !important;

    border-color: #e10600 !important;

    transform: none !important;
}


/* ACTIVE PAGE */

.acp-design-page-btn.active {
    background: #e10600 !important;

    color: #ffffff !important;

    border-color: #e10600 !important;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.acp-upload-design-table-wrap::-webkit-scrollbar {
    height: 6px;
}


.acp-upload-design-table-wrap::-webkit-scrollbar-track {
    background: #f2e2e2;

    border-radius: 10px;
}


.acp-upload-design-table-wrap::-webkit-scrollbar-thumb {
    background: #d9bcbc;

    border-radius: 10px;
}


.acp-upload-design-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #c9aaaa;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    .acp-upload-design-table {
        border: none;

        background: transparent;
    }


    /*
     * Hide desktop headings
     */
    .acp-upload-design-table thead {
        display: none;
    }


    .acp-upload-design-table,
    .acp-upload-design-table tbody,
    .acp-upload-design-table tr,
    .acp-upload-design-table td {
        width: 100%;
    }


    /*
     * Each design becomes small mobile card
     */
    .acp-upload-design-table tbody tr {
        margin-bottom: 10px;

        padding: 10px;

        background: #ffffff;

        border: 1px solid #e5e5e5;

        border-radius: 9px;
    }


    .acp-upload-design-table tbody td {
        padding: 6px 4px;

        border: none;

        text-align: right;
    }


    /*
     * Labels generated from data-title
     */
    .acp-upload-design-table tbody td::before {
        content: attr(data-title);

        font-size: 12px;

        font-weight: 600;

        color: #555555;
    }


    .acp-upload-design-artwork {
        width: 100%;
    }


    .acp-upload-design-artwork img {
        width: 52px;
        height: 52px;
    }


    .acp-upload-design-actions {
        width: 100%;
    }


    .acp-design-pagination {
        gap: 6px;

        margin-top: 12px;
    }


    .acp-design-page-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

}
/* Hide options until artwork is loaded */
.acp-options-hidden {
    display: none !important;
}

/* =========================================
   ACP IMAGE OPTION CARD SIZE FIX
========================================= */

.acp-image-option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.acp-image-option-card {
    width: 92px !important;
    min-height: 98px !important;
    max-width: 92px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    text-align: center !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: hidden !important;
    position: relative !important;
}

.acp-image-option-card input[type="radio"] {
    display: none !important;
}

.acp-option-image-wrap {
    width: 100% !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.acp-option-image {
    max-width: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.acp-option-label {
    display: block !important;
    width: 100% !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    word-break: break-word !important;
    color: #222 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.acp-image-option-card:has(input:checked) {
    border-color: #e10600 !important;
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.12) !important;
}

.acp-image-option-card:has(input:checked) .acp-option-label {
    color: #e10600 !important;
    font-weight: 600 !important;
}

/* =========================================
   REMOVE OUTER OPTIONS BOX ONLY
   Keep all option content working
========================================= */

#acp-upload-options.acp-options {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================================
   ACP CUSTOM COLOR INPUT
========================================= */

.acp-custom-color-input-wrap {
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
}

.acp-custom-color-input {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.acp-custom-color-input:focus {
    border-color: #e10600 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.10) !important;
}

.acp-custom-color-help {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

#acp-add-cart-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.acp-character-circle,
.acp-upload-circle {
    width: 180px !important;
    height: 180px !important;
}

.acp-character-circle img,
.acp-upload-circle img,
.acp-character-circle .acp-upload-character,
.acp-upload-circle .acp-upload-character {
    width: 110px !important;
    height: 110px !important;
}