.kumu-artwork {
    --kumu-blue: #1c61e7;
    --kumu-blue-dark: #1549ad;
    --kumu-heading: #17243a;
    --kumu-text: #667085;
    --kumu-border: #dce6f5;
    --kumu-bg: #f6f9ff;
    box-sizing: border-box;
    container-type: inline-size;
    clear: both;
    width: 100%;
    margin: 24px 0;
    padding: 24px;
    color: var(--kumu-heading);
    background: linear-gradient(145deg, #fbfdff, var(--kumu-bg));
    border: 1px solid var(--kumu-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(25, 55, 105, .06);
}

.kumu-artwork *,
.kumu-artwork *::before,
.kumu-artwork *::after { box-sizing: border-box; }

.kumu-artwork__heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.kumu-artwork__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--kumu-blue);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(28, 97, 231, .22);
}

.kumu-artwork__heading h3 {
    margin: 1px 0 4px;
    color: var(--kumu-heading);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.25;
}

.kumu-artwork__heading p,
.kumu-artwork__message p,
.kumu-artwork__proof-note {
    margin: 0;
    color: var(--kumu-text);
    font-size: 12px;
    line-height: 1.55;
}


.kumu-artwork__reuse {
    display: grid;
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: -2px 0 16px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--kumu-border);
    border-radius: 9px;
}

.kumu-artwork__reuse label {
    margin: 0;
    color: #344054;
    font-size: 11px;
    font-weight: 750;
}

.kumu-artwork__profile-select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    color: #344054;
    background: #fff;
    border: 1px solid #d5dfed;
    border-radius: 7px;
    font-size: 12px;
}

.kumu-artwork__methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.kumu-artwork__method {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    margin: 0;
    padding: 11px 12px;
    cursor: pointer;
    color: #344054;
    background: #fff;
    border: 1px solid var(--kumu-border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    transition: .2s ease;
}

.kumu-artwork__method:hover,
.kumu-artwork__method.is-selected {
    color: var(--kumu-blue-dark);
    border-color: var(--kumu-blue);
    box-shadow: 0 5px 15px rgba(28, 97, 231, .1);
}

.kumu-artwork__method input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.kumu-artwork__method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--kumu-blue);
    background: #eef4ff;
    border-radius: 7px;
    font-size: 15px;
}

.kumu-artwork__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
    gap: 16px;
}

.kumu-artwork__text-fields { display: grid; gap: 11px; }

.kumu-artwork__field {
    display: block;
    margin: 0;
}

.kumu-artwork__field > span {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.kumu-artwork__field em {
    color: #98a2b3;
    font-style: normal;
    font-weight: 500;
}

.kumu-artwork input[type="text"],
.kumu-artwork textarea {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    color: #24324a;
    background: #fff;
    border: 1px solid #d5dfed;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    outline: none;
    transition: .2s ease;
}

.kumu-artwork input[type="text"]:focus,
.kumu-artwork textarea:focus {
    border-color: var(--kumu-blue);
    box-shadow: 0 0 0 3px rgba(28, 97, 231, .1);
}

.kumu-artwork__upload {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 17px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    border: 1.5px dashed #b9cae3;
    border-radius: 10px;
    transition: .2s ease;
}

.kumu-artwork__upload:hover {
    border-color: var(--kumu-blue);
    background: #fbfdff;
}

.kumu-artwork__upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.kumu-artwork__upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
    color: var(--kumu-blue);
    background: #edf4ff;
    border-radius: 50%;
    font-size: 21px;
}

.kumu-artwork__upload strong { color: #344054; font-size: 13px; }
.kumu-artwork__upload small { color: #8491a5; font-size: 10px; }
.kumu-artwork__choose { margin-top: 5px; color: var(--kumu-blue); font-size: 11px; font-weight: 750; }

.kumu-artwork__upload-status {
    min-height: 26px;
    padding-top: 7px;
    color: var(--kumu-text);
    font-size: 11px;
    line-height: 1.4;
}

.kumu-artwork__upload-status.is-complete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #18794e;
}

.kumu-artwork__upload-status.is-error { color: #b42318; }
.kumu-artwork__file-name { overflow-wrap: anywhere; }

.kumu-artwork__remove-file {
    padding: 0;
    color: #b42318;
    background: none;
    border: 0;
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.kumu-artwork__field--notes { margin-top: 14px; }

.kumu-artwork__confirmation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 13px 0 0;
    padding: 10px 12px;
    color: #475467;
    background: #fff;
    border: 1px solid var(--kumu-border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.kumu-artwork__confirmation input { margin: 2px 0 0; accent-color: var(--kumu-blue); }

.kumu-artwork__message {
    padding: 15px 16px;
    color: #344054;
    background: #fff;
    border: 1px solid var(--kumu-border);
    border-radius: 9px;
}

.kumu-artwork__message strong { display: block; margin-bottom: 4px; font-size: 13px; }

.kumu-artwork__proof-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--kumu-border);
}

.kumu-artwork__proof-note span { color: #18794e; font-weight: 800; }

.kumu-artwork__update-button {
    width: 100%;
    margin-top: 16px !important;
    color: #fff !important;
    background: var(--kumu-blue) !important;
    border-color: var(--kumu-blue) !important;
}

.kumu-artwork__cancel-edit {
    display: block;
    margin-top: 9px;
    text-align: center;
    color: var(--kumu-text);
    font-size: 11px;
    text-decoration: underline;
}

.kumu-artwork.is-uploading { opacity: .78; pointer-events: none; }
.kumu-artwork [hidden] { display: none !important; }

.kumu-artwork-cart-actions { margin-top: 5px; font-size: 11px; line-height: 1.2; }
.kumu-artwork-cart-actions a { color: var(--kumu-blue, #1c61e7); font-weight: 700; text-decoration: underline; }

@container (max-width: 620px) {
    .kumu-artwork__reuse,
    .kumu-artwork__methods,
    .kumu-artwork__grid { grid-template-columns: 1fr; }
    .kumu-artwork__upload { min-height: 155px; }
}

@media (max-width: 760px) {
    .kumu-artwork { padding: 19px 16px; }
    .kumu-artwork__reuse,
    .kumu-artwork__methods,
    .kumu-artwork__grid { grid-template-columns: 1fr; }
    .kumu-artwork__upload { min-height: 155px; }
}

/* Reveal-on-cart flow */
.kumu-artwork[hidden] {
    display: none !important;
}

.kumu-artwork--reveal-on-cart.is-open {
    display: block;
    animation: kumuArtworkReveal .28s ease-out both;
}

.kumu-artwork--reveal-on-cart {
    scroll-margin-top: 95px;
}

.kumu-artwork__confirm-add-button {
    width: 100%;
    min-height: 48px;
    margin-top: 16px !important;
    color: #fff !important;
    background: var(--kumu-blue) !important;
    border-color: var(--kumu-blue) !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    box-shadow: 0 8px 18px rgba(28, 97, 231, .18);
}

.kumu-artwork__confirm-add-button:hover,
.kumu-artwork__confirm-add-button:focus {
    color: #fff !important;
    background: var(--kumu-blue-dark) !important;
    border-color: var(--kumu-blue-dark) !important;
}

.kumu-artwork__confirm-add-button:disabled {
    cursor: wait;
    opacity: .65;
}

.kumu-artwork__client-error {
    margin-top: 15px;
    padding: 11px 13px;
    color: #9f1c16;
    background: #fff2f0;
    border: 1px solid #f6c7c2;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.kumu-artwork__field-error {
    border-color: #e5484d !important;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .1) !important;
    border-radius: 9px;
}

@keyframes kumuArtworkReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Product-loop actions: Virtual Sample + Customize */
.kumu-loop-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.kumu-loop-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 9px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
}

.kumu-loop-actions .kumu-loop-virtual-sample {
    color: #1c61e7 !important;
    background: #fff !important;
    border: 1px solid #1c61e7 !important;
    box-shadow: none !important;
}

.kumu-loop-actions .kumu-loop-virtual-sample:hover,
.kumu-loop-actions .kumu-loop-virtual-sample:focus {
    color: #1549ad !important;
    background: #f3f7ff !important;
    border-color: #1549ad !important;
}

.kumu-loop-actions .kumu-customize-product {
    color: #fff !important;
    background: #1c61e7 !important;
    border: 1px solid #1c61e7 !important;
}

.kumu-loop-actions .kumu-customize-product:hover,
.kumu-loop-actions .kumu-customize-product:focus {
    color: #fff !important;
    background: #1549ad !important;
    border-color: #1549ad !important;
}
