.mmm-gifts {
    --gift-ink: #2c2331;
    --gift-edge: #d9cbdc;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 14px 0 16px;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid var(--gift-edge);
    border-radius: 16px;
    background: #f8f4f9;
    color: var(--gift-ink);
    font: 400 14px/1.4 Inter, sans-serif;
    text-align: left;
}
.mmm-gifts *, .mmm-gifts *::before { box-sizing: border-box; }
.mmm-gift-head, .mmm-gift-selected summary, .mmm-gift-caption { display: flex; align-items: center; gap: 8px; }
.mmm-gift-head { justify-content: space-between; }
.mmm-gift-title { font: 500 clamp(22px, 2vw, 27px)/1.12 "Passenger Display", Georgia, serif; color: inherit; }
.mmm-gift-count { font: 500 12px/1.4 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.mmm-gifts .mmm-gift-note { margin: 5px 0 0; font: inherit; }
.mmm-gift-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.mmm-gifts .mmm-gift-card {
    display: flex; flex-direction: column; width: 100%; min-width: 0; gap: 0; padding: 0;
    overflow: hidden; border: 1px solid var(--gift-edge); border-radius: 10px;
    background: #fff; color: var(--gift-ink); cursor: pointer; text-align: left;
    font: 500 14px/1.3 Inter,sans-serif; appearance: none;
}
.mmm-gift-photo { display: block; width: 100%; aspect-ratio: 1.7; overflow: hidden; background: #ece6ec; }
.mmm-gifts img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mmm-gift-caption { width: 100%; padding: 9px 8px; justify-content: space-between; gap: 2px; }
.mmm-gift-plus { display: grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; background: #eee5f0; font-size: 15px; line-height: 1; }
.mmm-gift-price { padding: 0 8px 8px; font: 400 11px/1.3 Inter,sans-serif; color: #554b58; }
.mmm-gifts .mmm-gift-card:disabled { cursor: default; }
.mmm-gifts .mmm-gift-card:disabled .mmm-gift-plus { background: #38293e; color: white; }
@media (hover:hover) { .mmm-gifts .mmm-gift-card:hover:not(:disabled) { border-color: #795781; background: #fdfaff; } }
.mmm-gifts :is(button,summary):focus-visible { outline: 2px solid #744d80; outline-offset: 2px; }
.mmm-gift-selected { margin-top: 10px; }
.mmm-gift-selected summary { min-height: 44px; cursor: pointer; list-style: none; }
.mmm-gift-selected summary::-webkit-details-marker { display: none; }
.mmm-gift-thumb { flex: none; width: 42px; height: 42px; overflow: hidden; border-radius: 8px; }
.mmm-gift-name { flex: 1; font-weight: 550; }
.mmm-gift-change, .mmm-gift-extra summary { color: #533a59; font-size: 13px; text-underline-offset: 3px; text-decoration: underline; }
.mmm-gift-extra summary { cursor: pointer; padding-block: 12px 3px; }
.bu-oc-panel .mmm-gifts:has(.mmm-gift-extra[open]) {
    max-height: 42dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
.mmm-gift-caption > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mmm-gift-text { margin: 5px 5px 0 0; min-height: 44px; border: 1px solid var(--gift-edge); border-radius: 8px; padding: 6px 10px; background: white; color: var(--gift-ink); }
.mmm-gift-status:not(:empty) { display: block; margin-top: 8px; font-size: 13px; }
.mmm-gift-line .quantity, .mmm-gift-bricks-line .quantity { display: none !important; }
.mmm-gift-tag { display: inline-block; padding: 3px 7px; margin-inline-start: 4px; border-radius: 6px; background: #f1e7f3; color: #513655; font: 500 11px/1.2 Inter,sans-serif; vertical-align: middle; }
@media(max-width: 400px) { .mmm-gifts { padding: 12px; } .mmm-gift-grid { gap: 6px; } .mmm-gift-caption { padding: 8px 5px; font-size: 12px; } }
section.mmm-gifts { display: block; }
.mmm-gifts .mmm-gift-head, .mmm-gifts .mmm-gift-caption, .mmm-gifts .mmm-gift-selected summary { flex-direction: row; }
.mmm-gift-status:empty { display: none; }
#brxe-dtvxux:has(.mmm-discount-value) { display: flex; flex-direction: row; justify-content: space-between; width: 100%; }
#brxe-dtvxux.mmm-empty-discount { display: none; }
/* Keep the same photo corners in Bricks, the checkout and the cart drawer. */
.mmm-gifts .mmm-gift-thumb,
.mmm-gifts .mmm-gift-thumb img,
.bu-oc-panel .woocommerce-mini-cart-item .product-image,
#brxe-icppzf .woocommerce-mini-cart-item .product-image img,
#brxe-mwbsig .woocommerce-mini-cart-item figure,
#brxe-mwbsig .woocommerce-mini-cart-item figure img { border-radius: 4px; }
.mmm-gifts .mmm-gift-card { border-radius: 4px; }
.mmm-gifts .mmm-gift-photo img { border-radius: 0; }

#brxe-icppzf .bu_element_cart_content .product-image img { border-radius: 4px !important; }

/* The promotion moves the Bricks shipping note from the drawer to the checkout. */
#brxe-c49e12 #brxe-mwknef { display: none; }
form.checkout #brxe-mwknef {
    width: 100%;
    border-radius: 18px;
    background-color: #e4d1fa;
}
