/* =========================================================
   WSS Embroidery – Frontend Styles (uses glozin theme tokens)
   ========================================================= */

/* ── Page wrapper ─────────────────────────────────────────── */
.l-wss-embroidery-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px auto;
    padding: 0;
    max-width: 820px;
    color: #444444;
}

/* ── Form card ────────────────────────────────────────────── */
.m-wss-embroidery-order-form {
    color: #444444;
    width: 100%;
}

.m-wss-embroidery-order-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(33,0,24,0.08);
    overflow: hidden;
}

.m-wss-embroidery-order-form legend {
    display: block;
    width: 100%;
    background: #F9F4F7;
    border-bottom: 1px solid #D3D4E5;
    padding: 16px 28px;
    font-size: 14px;
    color: #888888;
    font-weight: 400;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.6;
}

.m-wss-embroidery-order-form legend strong,
.m-wss-embroidery-order-form legend a {
    color: #210018;
    font-weight: 600;
    text-decoration: none;
}

.m-wss-embroidery-order-form label {
    display: block;
    width: 100%;
}

/* ── Fields wrapper ───────────────────────────────────────── */
.m-wss-embroidery-order-form__fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 28px 0;
}

/* ── Login notice ─────────────────────────────────────────── */
p.m-wss-embroidery-form__login-notice {
    background: #F9F4F7;
    border-left: 3px solid #E90A9B;
    padding: 12px 16px;
    border-radius: 5px;
    margin: 0 0 20px;
    font-size: 14px;
    color: #444444;
}

p.m-wss-embroidery-form__login-notice a {
    color: #E90A9B;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Upload area (outer pink container) ──────────────────── */
.m-wss-embroidery-order-form__upload-area {
    background: #FDF5FA;
    border: 1.5px dashed #E9A8CE;
    border-radius: 10px;
    padding: 24px 22px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.m-wss-embroidery-order-form__upload-title {
    color: #E90A9B;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
    text-align: center;
}

.m-wss-embroidery-order-form__upload-subtitle {
    color: #444444;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    text-align: center;
}

/* Inner drop zone */
.m-wss-embroidery-order-form__upload-dropzone {
    background: #ffffff;
    border: 1.5px dashed #C9C9D1;
    border-radius: 8px;
    padding: 22px 16px;
    margin: 0 0 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    max-width: 400px;
    margin: auto;
}

.m-wss-embroidery-order-form__upload-dropzone:hover {
    border-color: #E90A9B;
    background: #FDF5FA;
}

.m-wss-embroidery-order-form__upload-prompt {
    display: block;
    color: #444444;
    font-size: 14px;
    margin-bottom: 6px;
}

.m-wss-embroidery-order-form__upload-or {
    display: block;
    color: #888888;
    font-size: 13px;
    margin-bottom: 10px;
}

.m-wss-embroidery-order-form__upload-button {
    background: #210018;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.m-wss-embroidery-order-form__upload-button:hover {
    background: #E90A9B;
}

.m-wss-embroidery-order-form__accepted-formats {
    color: #342828;
    font-size: 13px;
    margin: 0;
    text-align: center;
}

/* ── Example of finished embroidery ───────────────────────── */
.m-wss-embroidery-order-form__example {
    margin: 18px 0 0;
    text-align: center;
}

.m-wss-embroidery-order-form__example-label {
    color: #444444;
    font-size: 14px;
    margin: 0 0 10px;
    text-align: center;
}

.m-wss-embroidery-order-form__example-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 0 8px;
    max-width: 600px;
    margin: auto;
    padding: 8px;
    border: 1px solid #E5E5EC;
    border-radius: 6px;
}

.m-wss-embroidery-order-form__example-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #E5E5EC;
    display: block;
}

.m-wss-embroidery-order-form__example-formats {
    color: #666666;
    font-size: 13px;
    margin: 0;
    text-align: center;
}

/* ── Upload progress ──────────────────────────────────────── */
.m-wss-embroidery-order-form__upload-progress {
    background: #F9F4F7;
    border: 1px solid #D3D4E5;
    border-radius: 10px;
    color: #444444;
    display: block;
    font-size: 1.4rem;
    height: 160px;
    line-height: 160px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Selected logo ────────────────────────────────────────── */
.m-wss-embroidery-order-form__selected-logo {
    display: none;
}

.m-wss-embroidery-order-form__selected-logo-text {
    color: #888888;
    font-size: 14px;
    margin: 0 0 12px;
    text-align: center;
}

.m-wss-embroidery-order-form__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 4px;
}

.m-wss-embroidery-order-form__logo img {
    border: 2px solid #D3D4E5;
    border-radius: 10px;
    display: block;
    max-height: 180px;
    max-width: 280px;
    width: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── Instructions textarea ────────────────────────────────── */
.m-wss-embroidery-order-form__instructions-fields {
    display: none;
    flex: 1;
    max-width: 100%;
    margin-top: 20px;
}

.m-wss-embroidery-order-form__instructions-fields label {
    font-size: 18px;
    color: #000000;
    line-height: 1.7em !important;
    margin: 0 0 8px;
    font-weight: 700;
}

.m-wss-embroidery-order-form__instructions-fields textarea {
    min-height: 100px;
    resize: vertical;
    border: 1px solid #D3D4E5;
    border-radius: 5px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
    color: #444444;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.m-wss-embroidery-order-form__instructions-fields textarea:focus {
    border-color: #E90A9B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(233,10,155,0.1);
}

/* ── Price breakdown ──────────────────────────────────────── */
.m-wss-embroidery-order-form__price-description-container {
    display: none;
    padding: 24px 28px 0;
}

.m-wss-embroidery-order-form__price-description-text {
    font-size: 14px;
    color: #888888;
    margin: 0 0 14px;
    text-align: center;
}

.m-wss-embroidery-order-form__price-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F9F4F7;
    border: 1px solid #D3D4E5;
    border-radius: 10px;
    padding: 20px 16px;
    gap: 10px;
}

/* + and = operators */
.m-wss-embroidery-order-form__price-description::before,
.m-wss-embroidery-order-form__price-description::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 20px;
    color: #888888;
    font-weight: 300;
    order: 2;
    text-align: center;
}
.m-wss-embroidery-order-form__price-description::after {
    content: '=';
    order: 4;
}

.m-wss-embroidery-order-form__price-description-item {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #D3D4E5;
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 120px;
    order: 5;
}

.m-wss-embroidery-order-form__price-description-item span {
    color: #888888;
    font-size: 13px;
    text-align: center;
    order: 2;
    margin-top: 4px;
}

/* Price value (big number) */
.m-wss-embroidery-order-form__price-description-item span:last-child {
    color: #210018;
    font-size: 22px;
    font-weight: 700;
    order: 1;
    margin-top: 0;
}

/* Total column — primary pink */
.m-wss-embroidery-order-form__price-description-item:last-child {
    background: #E90A9B;
    border-color: #E90A9B;
    order: 5;
}

.m-wss-embroidery-order-form__price-description-item:last-child span:last-child {
    color: #ffffff;
    font-size: 24px;
}

.m-wss-embroidery-order-form__setup-fee-description    { order: 1; }
.m-wss-embroidery-order-form__embroidery-price-description { order: 3; }

/* ── Buttons row ──────────────────────────────────────────── */
.m-wss-embroidery-order-form__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 24px 28px 28px;
    margin-top: 8px;
    border-top: 1px solid #D3D4E5;
}

.m-wss-embroidery-order-form__success-message {
    margin-right: auto;
    font-size: 14px;
    font-weight: 600;
    color: green;
}

/* Shared button style — primary pink */
.m-wss-embroidery-order-form__buttons a.button,
.m-wss-embroidery-order-form__buttons button.button {
    background: #210018;
    color: #ffffff;
    border: 1px solid #210018;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    margin-left: 0;
    appearance: none;
    -webkit-appearance: none;
}

.m-wss-embroidery-order-form__buttons a.button:hover,
.m-wss-embroidery-order-form__buttons button.button:hover {
    background: #E90A9B;
    border-color: #E90A9B;
    color: #ffffff;
}

/* Secondary button */
.m-wss-embroidery-order-form__remove-embroidery-button,
.m-wss-embroidery-order-form__remove-logo-button {
    background: #ffffff !important;
    color: #210018 !important;
    border: 1px solid #D3D4E5 !important;
}

.m-wss-embroidery-order-form__remove-embroidery-button:hover,
.m-wss-embroidery-order-form__remove-logo-button:hover {
    background: #F9F4F7 !important;
    border-color: #E90A9B !important;
    color: #E90A9B !important;
}

/* ── Visibility states ────────────────────────────────────── */
.m-wss-embroidery-order-form__add-embroidery-button,
.m-wss-embroidery-order-form__checkout-button,
.m-wss-embroidery-order-form__continue-shopping-button,
.m-wss-embroidery-order-form__remove-embroidery-button,
.m-wss-embroidery-order-form__remove-logo-button,
.m-wss-embroidery-order-form__save-reassurance,
.m-wss-embroidery-order-form__summary,
.m-wss-embroidery-order-form__success-message { display: none !important; }

/* uploading */
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-form__login-notice,
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-order-form__selected-logo-text,
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-order-form__upload-area,
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-order-form__example { display: none; }
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-order-form__selected-logo { display: block; }
.m-wss-embroidery-order-form--uploading-logo .m-wss-embroidery-order-form__logo img { display: none; }

/* logo-uploaded */
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__instructions-fields,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__price-description-container,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__selected-logo { display: block; }
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-form__login-notice,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__upload-area,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__example,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__upload-progress { display: none; }
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__add-embroidery-button,
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__remove-logo-button { display: inline-flex !important; align-items: center; }
.m-wss-embroidery-order-form--logo-uploaded .m-wss-embroidery-order-form__save-reassurance { display: flex !important; }

/* includes-embroidery */
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__checkout-button,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__continue-shopping-button,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__price-description-container,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__remove-embroidery-button,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__success-message,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__summary { display: block !important; }
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-form__login-notice,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__upload-area,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__example,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__selected-logo,
.m-wss-embroidery-order-form--includes-embroidery .m-wss-embroidery-order-form__upload-progress { display: none !important; }

/* ── Responsive: tablet+ ──────────────────────────────────── */
@media only screen and (min-width: 600px) {
    .m-wss-embroidery-order-form__price-description {
        flex-direction: row;
        padding: 24px 28px;
    }

    .m-wss-embroidery-order-form__price-description-item {
        min-width: 140px;
    }

    .m-wss-embroidery-order-form__buttons {
        flex-direction: row;
    }
}

/* ── Product page "Add Embroidery" button ─────────────────── */
.m-wss-theme-variation-actions a.button.m-wss-add-embrodery-button,
.m-wss-theme-variation-actions a.button.m-wss-add-embrodery-button:hover {
    background-color: #6262a2;
}

/* ── Embroidery services notice ───────────────────────────── */
.m-wss-embroidery-services-notice.l-wss-embroidery-box {
    max-width: none;
    align-items: stretch;
}

.m-wss-embroidery-services-notice {
    font-size: 15px;
    line-height: 1.6;
    background: linear-gradient(135deg, #fff5fb 0%, #fdfdff 100%);
    border: 1px solid #f4cce3;
    border-left: 4px solid #E90A9B;
    border-radius: 8px;
    padding: 22px 24px;
    margin: 20px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    color: #333;
    box-shadow: 0 2px 6px rgba(233, 10, 155, 0.06);
}

.m-wss-embroidery-services-notice p {
    margin: 0 0 10px;
}

.m-wss-embroidery-services-notice p:last-child {
    margin-bottom: 0;
    color: #555;
    font-size: 14px;
}

.m-wss-embroidery-services-notice__minimum-order-quantity-label {
    color: #E90A9B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.m-wss-embroidery-services-notice__minimum-order-quantity-label::before {
    content: "✦";
    font-size: 18px;
    line-height: 1;
}

.m-wss-embroidery-services-notice__minimum-order-quantity-value {
    display: inline-block;
    background: #E90A9B;
    color: #fff;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin: 0 2px;
}

@media (max-width: 600px) {
    .m-wss-embroidery-services-notice {
        padding: 16px 14px;
        font-size: 14px;
        border-left-width: 3px;
        border-radius: 6px;
    }
    .m-wss-embroidery-services-notice__minimum-order-quantity-label {
        font-size: 14px;
    }
    .m-wss-embroidery-services-notice p:last-child {
        font-size: 13px;
    }
}

/* ── Upload error message ─────────────────────────────────── */
.m-wss-embroidery-order-form__error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    padding: 12px 16px;
    background: #FDECEF;
    border: 1px solid #F5C2CC;
    border-left: 4px solid #D63848;
    border-radius: 8px;
    color: #8A1F2B;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(214, 56, 72, 0.08);
    animation: wss-emb-error-fade-in 0.25s ease-out;
}

.m-wss-embroidery-order-form__error-message::before {
    content: "!";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: #D63848;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

@keyframes wss-emb-error-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .m-wss-embroidery-order-form__error-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {

    .m-wss-embroidery-order-form__example-image-wrapper {
        padding: 4px;
    }
    .m-wss-embroidery-order-form__example-label{
        text-align: left;
    }
}

/* ── Button loading state ─────────────────────────────────── */
.m-wss-emb-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: wait !important;
    color: transparent !important;
    text-shadow: none !important;
}

.m-wss-emb-btn-loading > * {
    visibility: hidden;
}

.m-wss-emb-btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-right-color: transparent;
    border-radius: 50%;
    animation: wss-emb-btn-spin 0.7s linear infinite;
    visibility: visible;
    box-sizing: border-box;
}

/* Lighter buttons (white / very light bg) need a dark spinner instead */
.m-wss-embroidery-order-form__remove-logo-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__remove-embroidery-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__upload-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__edit-details-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__replace-logo-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__continue-shopping-button.m-wss-emb-btn-loading::after,
.m-wss-embroidery-order-form__confirm-modal-cancel.m-wss-emb-btn-loading::after {
    border-color: rgba(33, 0, 24, 0.7);
    border-right-color: transparent;
}

@keyframes wss-emb-btn-spin {
    to { transform: rotate(360deg); }
}

/* ── Instructions list ────────────────────────────────────── */
.m-wss-embroidery-order-form__instructions-heading {
    display: block;
    font-weight: 600;
    color: #210018;
    margin: 0 0 8px;
}

.m-wss-embroidery-order-form__required {
    color: #b32626;
    font-weight: 700;
    margin-left: 2px;
}

.m-wss-embroidery-order-form__textarea--error {
    border-color: #b32626 !important;
    box-shadow: 0 0 0 2px rgba(179, 38, 38, 0.12) !important;
}

.m-wss-embroidery-order-form__field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    padding: 10px 14px;
    background: #FDECEC;
    border: 1px solid #F5C2C2;
    border-radius: 6px;
    color: #b32626;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    animation: wss-emb-error-fade-in 0.2s ease-out;
}

.m-wss-embroidery-order-form__field-error::before {
    content: "!";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b32626;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.m-wss-embroidery-order-form__instructions-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 12px;
    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

.m-wss-embroidery-order-form__instructions-list li {
    margin-bottom: 4px;
}

.m-wss-embroidery-order-form__instructions-footnote {
    font-size: 15px;
    color: #000000;
    font-style: italic;
    margin: 0 0 12px;
}

/* ── Save reassurance microcopy ───────────────────────────── */
.m-wss-embroidery-order-form__save-reassurance {
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    background: #F9F4F7;
    border-top: 1px solid #E5E0E3;
    margin: 0;
    padding: 12px 28px 18px;
    text-align: center;
    line-height: 1.5;
}

.m-wss-embroidery-order-form__save-reassurance-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Summary block ────────────────────────────────────────── */
.m-wss-embroidery-order-form__summary {
    margin: 0 28px 20px;
    padding: 16px 20px;
    background: #F9F4F7;
    border: 1px solid #D3D4E5;
    border-radius: 8px;
}

.m-wss-embroidery-order-form__summary-heading {
    margin: 0 0 12px;
    font-weight: 600;
    color: #210018;
    font-size: 14px;
    text-align: center;
}

.m-wss-embroidery-order-form__summary-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.m-wss-embroidery-order-form__summary-actions {
    justify-content: center;
}

.m-wss-embroidery-order-form__summary-thumbnail {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid #D3D4E5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.m-wss-embroidery-order-form__summary-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.m-wss-embroidery-order-form__summary-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.55;
}

.m-wss-embroidery-order-form__summary-row {
    margin: 0 0 4px;
    word-break: break-word;
    font-size: 16px;
}

.m-wss-embroidery-order-form__summary-label {
    display: block;
    font-weight: 700;
    color: #210018;
    margin: 0 0 4px;
    font-size: 15px;
}

.m-wss-embroidery-order-form__summary-instructions {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #444;
    font-size: 16px;
}

.m-wss-embroidery-order-form__summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E5E0E3;
}

.m-wss-embroidery-order-form__summary-actions .button {
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #210018;
    border: 1px solid #D3D4E5;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.m-wss-embroidery-order-form__summary-actions .button:hover {
    background: #F9F4F7;
    border-color: #E90A9B;
    color: #E90A9B;
}

/* ── Link-style buttons (text) ────────────────────────────── */
.m-wss-embroidery-order-form__link-button {
    background: none !important;
    border: none !important;
    padding: 4px 2px !important;
    margin: 0 !important;
    color: #6262a2 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    cursor: pointer;
    border-radius: 0 !important;
    letter-spacing: 0 !important;
}

.m-wss-embroidery-order-form__link-button:hover {
    color: #E90A9B !important;
    background: none !important;
}

.m-wss-embroidery-order-form__link-button--destructive {
    color: #b32626 !important;
}

.m-wss-embroidery-order-form__link-button--destructive:hover {
    color: #b32626 !important;
    text-decoration-thickness: 2px;
}

/* ── Button hierarchy modifiers ───────────────────────────── */
.m-wss-embroidery-order-form__buttons a.button.m-wss-embroidery-order-form__button--secondary,
.m-wss-embroidery-order-form__buttons button.button.m-wss-embroidery-order-form__button--secondary {
    background: #ffffff;
    color: #210018;
    border: 1px solid #D3D4E5;
}

.m-wss-embroidery-order-form__buttons a.button.m-wss-embroidery-order-form__button--secondary:hover,
.m-wss-embroidery-order-form__buttons button.button.m-wss-embroidery-order-form__button--secondary:hover {
    background: #F9F4F7;
    border-color: #E90A9B;
    color: #E90A9B;
}

.m-wss-embroidery-order-form__button--destructive {
    background: #b32626 !important;
    border-color: #b32626 !important;
    color: #fff !important;
}

.m-wss-embroidery-order-form__button--destructive:hover {
    background: #8e1d1d !important;
    border-color: #8e1d1d !important;
    color: #fff !important;
}

/* The Remove Embroidery link sits centered within the button row */
.m-wss-embroidery-order-form__buttons .m-wss-embroidery-order-form__remove-embroidery-button.m-wss-embroidery-order-form__link-button {
    width: auto;
    align-self: center;
}

/* ── Confirm modal ────────────────────────────────────────── */
.m-wss-embroidery-order-form__confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.m-wss-embroidery-order-form__confirm-modal.is-open {
    display: flex;
}

.m-wss-embroidery-order-form__confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 0, 24, 0.55);
}

.m-wss-embroidery-order-form__confirm-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    padding: 36px 32px 32px;
    max-width: 520px;
    width: calc(100% - 32px);
    z-index: 1;
}

.m-wss-embroidery-order-form__confirm-modal-title {
    margin: 0 0 28px;
    font-weight: 700;
    color: #210018;
    font-size: 26px;
    line-height: 1.35;
    text-align: center;
}

.m-wss-embroidery-order-form__confirm-modal-body {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.m-wss-embroidery-order-form__confirm-modal-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.m-wss-embroidery-order-form__confirm-modal-actions .button {
    margin: 0;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.m-wss-embroidery-order-form__confirm-modal-cancel {
    background: #ffffff !important;
    color: #210018 !important;
    border: 1px solid #D3D4E5 !important;
}

.m-wss-embroidery-order-form__confirm-modal-cancel:hover {
    background: #F9F4F7 !important;
    border-color: #E90A9B !important;
    color: #E90A9B !important;
}

.m-wss-embroidery-order-form__confirm-modal-confirm {
    background: #b32626 !important;
    color: #ffffff !important;
    border: 1px solid #b32626 !important;
}

.m-wss-embroidery-order-form__confirm-modal-confirm:hover {
    background: #8e1d1d !important;
    border-color: #8e1d1d !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .m-wss-embroidery-order-form__summary-body {
        flex-direction: column;
    }
    .m-wss-embroidery-order-form__confirm-modal-actions {
        justify-content: stretch;
    }
    .m-wss-embroidery-order-form__confirm-modal-actions .button {
        flex: 1;
    }
}
