.ubd-product-dedication-trigger {
    display: block;
    max-width: 100%;
    min-height: 44px;
    margin-block: 0 10px;
    padding: 8px 14px;
    border: 1px solid #b8cec3;
    border-radius: 12px;
    background: #f3f8f4;
    color: #214e40;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

body#product .ubd-dedication-purchase {
    flex-direction: column;
    align-items: stretch;
    row-gap: 8px;
}

body#product .ubd-dedication-purchase > .ubd-product-dedication-trigger {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 6px 12px;
    border-color: #d5e1d9;
    background: #f7faf7;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
}

body#product .tvcart-btn-model.ubd-dedication-purchase > .ubd-product-dedication-trigger {
    margin-bottom: 0;
}

#ubd-product-dedication {
    --dedication-ink: #163c35;
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    width: min(500px, calc(100% - 24px));
    max-height: calc(100dvh - 30px);
    overflow: auto;
    margin: 0 auto max(12px, env(safe-area-inset-bottom));
    padding: 0;
    border: 1px solid #e4e2d4;
    border-radius: 24px;
    background: #fffdf7;
    color: var(--dedication-ink);
    box-shadow: 0 19px 60px #13352e47;
}

#ubd-product-dedication::backdrop { background: #122e296c; }
html:has(#ubd-product-dedication[open]) { overflow: hidden; }

#ubd-product-dedication form {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: clamp(15px, 4vw, 23px);
}

#ubd-product-dedication header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

#ubd-product-dedication header img {
    width: clamp(45px, 15vw, 64px);
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 9px;
}

#ubd-product-dedication h2 {
    margin: 0 0 3px;
    color: inherit;
    font-size: clamp(17px, 4vw, 22px);
    line-height: 1.15;
    text-transform: none;
}

#ubd-product-dedication p,
#ubd-product-dedication small {
    margin: 0;
    color: #46635a;
    font-size: 13px;
    line-height: 1.35;
}

#ubd-product-dedication p:empty { display: none; }

#ubd-product-dedication label {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

#ubd-product-dedication :is(textarea, input:not([type="checkbox"])) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #adc0b5;
    border-radius: 11px;
    background: #fff;
    color: var(--dedication-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: normal;
}

#ubd-product-dedication .ubd-product-dedication-anon {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

#ubd-product-dedication button {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 11px;
    background: #205746;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

#ubd-product-dedication button[data-close] {
    width: 44px;
    padding: 0;
    background: #e7efe8;
    color: var(--dedication-ink);
    font-size: 25px;
    line-height: 1;
}

#ubd-product-dedication :focus-visible,
.ubd-product-dedication-trigger:focus-visible {
    outline: 2px solid #215b45;
    outline-offset: 2px;
}

#ubd-cart-dedication {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-block: 10px;
    padding: 11px 13px;
    border: 1px solid #c7ddd0;
    border-radius: 12px;
    background: #f0f7f2;
    color: #214e40;
    font-size: 14px;
    line-height: 1.4;
}

#ubd-cart-dedication button {
    margin: 0;
}
