.vestella-mto-action[hidden], #vestella-mto-dialog [hidden] { display: none !important; }
.vestella-mto-action { margin-block: 12px; }
.vestella-mto-action .vestella-mto-open { width: 100%; white-space: normal; line-height: 1.4; min-height: 48px; }
.vestella-mto-action p.vestella-mto-action-note { font-size: 13px; line-height: 1.4; margin: 8px 0 24px !important; }
#vestella-mto-dialog {
    width: min(600px, calc(100vw - 24px)); max-width: none;
    max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
    box-sizing: border-box; padding: 28px; border: 1px solid #ccc;
    border-radius: 8px; color: var(--awb-color8, #222); background: var(--awb-color1, #fff);
    margin: auto; font-size: 16px; line-height: 1.5;
}
#vestella-mto-dialog::backdrop { background: rgb(0 0 0 / 55%); }
#vestella-mto-dialog h2 { clear: both; font-size: 25px; line-height: 1.25; overflow-wrap: anywhere; }
#vestella-mto-dialog .vestella-mto-image { clear: both; margin: 0 0 24px; }
#vestella-mto-dialog .vestella-mto-image[hidden] { display: none; }
#vestella-mto-dialog .vestella-mto-image img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 6px; }
#vestella-mto-dialog .vestella-mto-close { display: block; background: none; border: 0 none; outline: 0 none; margin: 0 0 16px auto; min-height: 44px; padding: 8px 12px; cursor: pointer;     font-family: awb-icons !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;}
    #vestella-mto-dialog .vestella-mto-close::after { content: "\e904"; font-family: awb-icons; font-size: 20px; } 
#vestella-mto-dialog .vestella-mto-close .button-label { display: none; }
#vestella-mto-dialog label { display: block; margin-top: 12px; }
#vestella-mto-dialog input:not([type="checkbox"]) { display: block; width: 100%; min-width: 0; font-size: 16px; min-height: 44px; box-sizing: border-box; }
#vestella-mto-dialog .vestella-mto-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; }
#vestella-mto-dialog input[type="checkbox"] { appearance: auto; position: static; opacity: 1; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }
#vestella-mto-dialog a { text-decoration: underline; }
#vestella-mto-dialog [type="submit"] { width: 100%; white-space: normal; min-height: 48px; line-height: 1.4; }
#vestella-mto-dialog button:disabled { opacity: .6; cursor: wait; }
#vestella-mto-dialog .vestella-mto-status { margin-top: 18px; }
#vestella-mto-dialog .vestella-mto-status p { margin: 0; }
#vestella-mto-dialog .vestella-mto-status.is-processing p { display: inline; }
#vestella-mto-dialog .vestella-mto-status.is-processing::after {
    content: "..."; display: inline-block; width: 0; overflow: hidden;
    vertical-align: bottom; white-space: nowrap;
    animation: vestella-mto-dots 1.2s steps(4, end) infinite;
}
@keyframes vestella-mto-dots {
    to { width: 1.5em; }
}
#vestella-mto-dialog .vestella-mto-status.is-success {
    padding: 24px; border: 1px solid #5b7d62; border-radius: 8px;
    background: #f1f7f2; color: #24462c; text-align: center;
    font-size: 18px; line-height: 1.5; font-weight: 600;
}
#vestella-mto-dialog .vestella-mto-action-note {margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--awb-color8, #222);}
#vestella-mto-dialog .vestella-mto-status.is-success::before {
    content: "✓"; display: grid; place-items: center; width: 48px; height: 48px;
    margin: 0 auto 14px; border-radius: 50%; background: #416c4b; color: #fff;
    font-size: 30px; line-height: 1;
}
#vestella-mto-dialog .vestella-mto-status.is-error { color: #9b1c1c; font-weight: 600; }
#vestella-mto-dialog :focus-visible, .vestella-mto-open:focus-visible { outline: 3px solid var(--awb-color5, #665144); outline-offset: 3px; }
#vestella-mto-dialog .vestella-mto-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vestella-mto-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    #vestella-mto-dialog .vestella-mto-status.is-processing::after {
        width: auto; animation: none;
    }
}
@media (max-width: 639px) {
    #vestella-mto-dialog { padding: 20px 16px; max-height: calc(100dvh - 16px); }
    #vestella-mto-dialog .vestella-mto-image { margin-bottom: 18px; }
    #vestella-mto-dialog .vestella-mto-image img { max-height: 240px; }
    .product-content .vestella-mto-action { margin-top: 8px; }
}
