/* Checkout only: shared by desktop and mobile note fragments. */
.checkout-note .checkout-note-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.checkout-note .checkout-note-add {
    padding: 8px 10px;
    border: 1px dashed currentColor;
    border-radius: 5px;
}
.checkout-note-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
.checkout-note-icon {
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.checkout-note-plus {
    -webkit-mask-image: url('../images/checkout/note-plus.svg');
    mask-image: url('../images/checkout/note-plus.svg');
}
.checkout-note-pencil {
    align-self: flex-start;
    -webkit-mask-image: url('../images/checkout/note-pencil.svg');
    mask-image: url('../images/checkout/note-pencil.svg');
}
.checkout-note .checkout-note-error {
    display: block;
    margin-top: 6px;
    color: #c9302c;
}
.checkout-note .checkout-note-error[hidden] { display: none; }
.checkout-note [aria-busy="true"] { opacity: .65; }
.restaurant-mobile-product-note .checkout-note-error { color: #ffd4d4; }
.checkout-note label {
    display: block;
    width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
}
.checkout-note textarea.checkout-note-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #b8bcc2;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    resize: vertical;
}
.restaurant-mobile-product-note .checkout-note textarea.checkout-note-input {
    border-color: #9a8584;
    background: transparent;
}
@media (max-width: 767px) {
    .checkout-note textarea.checkout-note-input { font-size: 16px; }
}

/* Both themes use a soft icon tile before the note text. */
.checkout-note--stores .checkout-note-edit,
.checkout-note--restaurants .checkout-note-edit {
    gap: 10px;
    padding: 0;
    border: 0;
    color: #6a6a6a;
    font-size: 14px;
    line-height: 1.4;
}
.checkout-note--stores .checkout-note-icon,
.checkout-note--restaurants .checkout-note-icon {
    order: -1;
    position: relative;
    flex-basis: 40px;
    width: 40px;
    height: 36px;
    border-radius: 9px;
    background: #f5f5f5;
    color: #202630;
    -webkit-mask: none;
    mask: none;
}
.checkout-note--stores .checkout-note-icon::before,
.checkout-note--restaurants .checkout-note-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 8px;
    left: 10px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.checkout-note--stores .checkout-note-plus::before,
.checkout-note--restaurants .checkout-note-plus::before {
    -webkit-mask-image: url('../images/checkout/note-plus.svg');
    mask-image: url('../images/checkout/note-plus.svg');
}
.checkout-note--stores .checkout-note-pencil::before,
.checkout-note--restaurants .checkout-note-pencil::before {
    -webkit-mask-image: url('../images/checkout/note-pencil.svg');
    mask-image: url('../images/checkout/note-pencil.svg');
}
/* Keep the existing dark restaurants mobile theme readable. */
.restaurant-mobile-product-note .checkout-note--restaurants .checkout-note-edit {
    color: inherit;
}

/* Stores: neutral gray note icon tiles. */
.checkout-note--stores .checkout-note-edit {
    color: #697789;
}
.checkout-note--stores .checkout-note-icon {
    background: #f2f2f2;
    color: #55585d;
}
