:root {
    --ymg-purple: #5c2483;
    --ymg-purple-dark: #45145f;
    --ymg-purple-soft: #f7f1fb;
    --ymg-yellow: #f9a21b;
    --ymg-navy: #14213c;
    --ymg-green: #2ca36b;
    --ymg-border: #e5d9ec;
    --ymg-muted: #665d6b;
    --ymg-white: #fff;
    --ymg-shadow: 0 22px 60px rgba(20, 10, 28, .22);
}

html.ymg-modal-open,
body.ymg-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ymg-drawer-shell,
.ymg-help-shell,
.ymg-checkout-guide {
    position: fixed;
    inset: 0;
    top: var(--ymg-viewport-top, 0px);
    bottom: auto;
    height: var(--ymg-viewport-height, 100dvh);
    z-index: 999990;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
    font-family: 'Museo Sans Rounded', Arial, sans-serif;
}

.ymg-drawer-shell.is-open,
.ymg-help-shell.is-open,
.ymg-checkout-guide.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.ymg-drawer-backdrop,
.ymg-help-backdrop,
.ymg-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 7, 17, .64);
    backdrop-filter: none;
}

.ymg-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(590px, 92vw);
    height: 100%;
    height: var(--ymg-viewport-height, 100dvh);
    max-height: var(--ymg-viewport-height, 100dvh);
    overflow: hidden;
    background: var(--ymg-white);
    color: var(--ymg-navy);
    box-shadow: var(--ymg-shadow);
    transform: translateX(104%);
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.ymg-drawer-shell.is-open .ymg-drawer {
    transform: translateX(0);
}

.ymg-drawer__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 88px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ymg-border);
    background: linear-gradient(135deg, #fff 0%, #faf5fd 100%);
}

.ymg-drawer__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ymg-drawer__header-icon,
.ymg-guide-dialog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--ymg-yellow);
    color: var(--ymg-navy);
    box-shadow: 0 7px 18px rgba(249, 162, 27, .26);
}

.ymg-drawer__header-icon svg,
.ymg-guide-dialog__icon svg {
    width: 25px;
    height: 25px;
}

.ymg-eyebrow {
    margin: 0 0 2px !important;
    color: var(--ymg-purple) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

.ymg-drawer__header h2,
.ymg-help-dialog h2,
.ymg-guide-dialog h2 {
    margin: 0 !important;
    color: var(--ymg-navy) !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -.02em !important;
}

.ymg-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ymg-border) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--ymg-navy) !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.ymg-icon-button:hover,
.ymg-icon-button:focus-visible {
    border-color: var(--ymg-purple) !important;
    color: var(--ymg-purple) !important;
    outline: 3px solid rgba(92, 36, 131, .14) !important;
}

.ymg-icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ymg-drawer__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 30px;
    scrollbar-width: thin;
    scrollbar-color: #cdb6d8 transparent;
}

.ymg-drawer__body::-webkit-scrollbar {
    width: 7px;
}

.ymg-drawer__body::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #cdb6d8;
}

.ymg-loading-state {
    position: relative;
    z-index: 3;
    inset: auto;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 34px;
    margin: 0 0 12px;
    padding: 6px 10px;
    border: 1px solid var(--ymg-border);
    border-radius: 18px;
    background: #fff;
    color: var(--ymg-muted);
    font-size: 14px;
    font-weight: 700;
}

.ymg-drawer-shell.is-loading .ymg-loading-state {
    display: flex;
}

.ymg-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #eadff0;
    border-top-color: var(--ymg-purple);
    border-radius: 50%;
    animation: ymg-spin .7s linear infinite;
}

@keyframes ymg-spin {
    to { transform: rotate(360deg); }
}

.ymg-product-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 11px;
    border: 1px solid var(--ymg-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(50, 23, 62, .06);
}

.ymg-product-summary[hidden] {
    display: none !important;
}

.ymg-product-summary img {
    display: block;
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: 13px;
    background: #fbfafc;
    object-fit: contain;
}

.ymg-product-summary > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ymg-product-summary__label {
    margin-bottom: 2px;
    color: var(--ymg-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ymg-product-summary strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ymg-navy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#ymg-product-quantity-label {
    margin-top: 4px;
    color: var(--ymg-muted);
    font-size: 12px;
    font-weight: 700;
}

.ymg-quantity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 9px;
}

.ymg-quantity-row label {
    margin: 0 !important;
    color: var(--ymg-muted);
    font-size: 11px;
    font-weight: 700;
}

.ymg-quantity-control {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 38px;
    border: 1.5px solid var(--ymg-purple);
    border-radius: 99px;
    overflow: hidden;
    background: #fff;
}

.ymg-quantity-control > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 35px !important;
    min-width: 35px !important;
    height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ymg-purple) !important;
    font-size: 21px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.ymg-quantity-control > button:hover { background: var(--ymg-purple-soft) !important; }
.ymg-quantity-control > button:disabled { opacity: .35; cursor: default; }
.ymg-quantity-control > input {
    width: 50px !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--ymg-navy) !important;
    font: 700 14px Arial, sans-serif !important;
    text-align: center !important;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}
.ymg-quantity-control > input::-webkit-inner-spin-button,
.ymg-quantity-control > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ymg-quantity-control:focus-within { outline: 2px solid #bfa1d0; outline-offset: 2px; }
.ymg-cart-products[hidden] { display: none !important; }
.ymg-cart-products__title { margin: 0 0 8px !important; color: var(--ymg-purple) !important; font-size: 13px !important; }
.ymg-cart-products .ymg-product-summary { box-shadow: none; }

.ymg-intro {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--ymg-yellow);
    border-radius: 0 12px 12px 0;
    background: #fff8eb;
}

.ymg-intro p {
    margin: 0 !important;
    color: #514854 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.ymg-form-section {
    min-width: 0;
    margin: 0 0 16px !important;
    padding: 17px !important;
    border: 1px solid var(--ymg-border) !important;
    border-radius: 19px !important;
    background: #fff !important;
}

.ymg-form-section legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 15px !important;
    padding: 0 !important;
    color: var(--ymg-navy) !important;
}

.ymg-form-section legend > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ymg-form-section legend strong {
    color: var(--ymg-navy) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

.ymg-form-section legend small {
    margin-top: 1px;
    color: var(--ymg-muted) !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.ymg-step-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 31px !important;
    width: 31px !important;
    height: 31px !important;
    border-radius: 10px !important;
    background: var(--ymg-purple) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.ymg-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.ymg-field {
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0 !important;
    color: var(--ymg-navy) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.ymg-field--wide {
    grid-column: 1 / -1;
}

.ymg-field > span {
    display: block;
}

.ymg-field b {
    color: #b4204f;
}

.ymg-field em {
    color: var(--ymg-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.ymg-field input,
.ymg-field textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 1.5px solid #d8c8e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--ymg-navy) !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .16s ease, box-shadow .16s ease !important;
}

.ymg-field input {
    height: 44px !important;
}

.ymg-field textarea {
    min-height: 112px !important;
    resize: vertical !important;
}

.ymg-field input:focus,
.ymg-field textarea:focus {
    border-color: var(--ymg-purple) !important;
    box-shadow: 0 0 0 3px rgba(92, 36, 131, .11) !important;
}

.ymg-gift-form.is-validating .ymg-field input:invalid,
.ymg-gift-form.is-validating .ymg-field textarea:invalid {
    border-color: #c83d61 !important;
}

.ymg-field small {
    color: var(--ymg-muted) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.ymg-inline-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 1px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #fff4dd;
    color: #805009 !important;
}

.ymg-inline-note[hidden] {
    display: none !important;
}

.ymg-character-count {
    align-self: flex-end;
    margin-top: -2px;
    font-variant-numeric: tabular-nums;
}

.ymg-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ymg-radio-card {
    position: relative;
    display: grid !important;
    grid-template-columns: 21px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-height: 110px;
    margin: 0 !important;
    padding: 13px !important;
    border: 1.5px solid var(--ymg-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.ymg-radio-card:hover {
    border-color: #b99cc9 !important;
    transform: translateY(-1px);
}

.ymg-radio-card:has(input:checked) {
    border-color: var(--ymg-purple) !important;
    background: var(--ymg-purple-soft) !important;
    box-shadow: inset 0 0 0 1px var(--ymg-purple);
}

.ymg-radio-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ymg-radio-card__mark {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid #bbaac4;
    border-radius: 50%;
    background: #fff;
}

.ymg-radio-card input:checked + .ymg-radio-card__mark {
    border-color: var(--ymg-purple);
}

.ymg-radio-card input:checked + .ymg-radio-card__mark::after {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--ymg-purple);
    content: '';
}

.ymg-radio-card input:focus-visible + .ymg-radio-card__mark {
    outline: 3px solid rgba(92, 36, 131, .18);
    outline-offset: 2px;
}

.ymg-radio-card > span:last-child {
    display: flex;
    flex-direction: column;
}

.ymg-radio-card strong {
    color: var(--ymg-navy) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

.ymg-radio-card small {
    margin-top: 5px;
    color: var(--ymg-muted) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.ymg-box-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border: 1px solid var(--ymg-border);
    border-radius: 15px;
    background: #fcfafc;
}

.ymg-box-card > img {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: #fff;
    object-fit: cover;
}

.ymg-box-card__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ymg-box-card__title-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ymg-box-card__title-row strong {
    color: var(--ymg-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.ymg-box-card__copy > span {
    margin-top: 2px;
    color: var(--ymg-purple);
    font-size: 12px;
    font-weight: 900;
}

.ymg-box-card__copy > small {
    margin-top: 4px;
    color: var(--ymg-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.32;
}

.ymg-help-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #9d8fa5 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #75677d !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.ymg-help-trigger:hover,
.ymg-help-trigger:focus-visible {
    border-color: var(--ymg-purple) !important;
    background: var(--ymg-purple) !important;
    color: #fff !important;
    outline: 3px solid rgba(92, 36, 131, .14) !important;
}

.ymg-switch {
    position: relative;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 27px;
    margin: 0 !important;
    cursor: pointer;
}

.ymg-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ymg-switch > span {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #cfc7d3;
    transition: background .18s ease;
}

.ymg-switch > span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    content: '';
    transition: transform .18s ease;
}

.ymg-switch input:checked + span {
    background: var(--ymg-purple);
}

.ymg-switch input:checked + span::after {
    transform: translateX(21px);
}

.ymg-switch input:focus-visible + span {
    outline: 3px solid rgba(92, 36, 131, .18);
    outline-offset: 2px;
}

.ymg-switch input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
}

.ymg-box-status {
    position: relative;
    margin-top: 9px;
    padding: 10px 12px 10px 35px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
}

.ymg-box-status::before {
    position: absolute;
    left: 12px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: 'i';
    font-family: Georgia, serif;
    font-size: 10px;
    transform: translateY(-50%);
}

.ymg-box-status.is-locked {
    background: #fff4df;
    color: #83520b;
}

.ymg-box-status.is-ready {
    background: #eaf8f0;
    color: #176b45;
}

.ymg-box-status.is-ready::before {
    content: '✓';
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.ymg-box-status.is-unavailable {
    background: #fff0f2;
    color: #96334b;
}

.ymg-form-error {
    margin: 2px 0 0;
    padding: 12px 14px;
    border: 1px solid #efafbd;
    border-radius: 12px;
    background: #fff1f4;
    color: #8e2741;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
}

.ymg-form-error[hidden] {
    display: none !important;
}

.ymg-drawer__footer {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 0 0 auto;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ymg-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 22px rgba(28, 12, 37, .07);
    backdrop-filter: none;
}

.ymg-drawer-shell.is-edit-mode .ymg-drawer__footer {
    grid-template-columns: 1fr;
}

.ymg-drawer-shell.is-edit-mode [data-ymg-next="continue"] {
    display: none !important;
}

.ymg-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 2px solid var(--ymg-purple) !important;
    border-radius: 999px !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: transform .16s ease, background .16s ease, color .16s ease !important;
}

.ymg-button:hover {
    transform: translateY(-1px) !important;
}

.ymg-button:focus-visible {
    outline: 3px solid rgba(92, 36, 131, .18) !important;
    outline-offset: 2px !important;
}

.ymg-button:disabled {
    opacity: .58 !important;
    cursor: wait !important;
    transform: none !important;
}

.ymg-button--primary {
    background: var(--ymg-purple) !important;
    color: #fff !important;
}

.ymg-button--primary:hover {
    border-color: var(--ymg-purple-dark) !important;
    background: var(--ymg-purple-dark) !important;
    color: #fff !important;
}

.ymg-button--secondary {
    background: #fff !important;
    color: var(--ymg-purple) !important;
}

.ymg-button--secondary:hover {
    background: var(--ymg-purple-soft) !important;
    color: var(--ymg-purple-dark) !important;
}

.ymg-help-shell,
.ymg-checkout-guide {
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ymg-help-dialog,
.ymg-guide-dialog {
    position: relative;
    z-index: 2;
    width: min(480px, 100%);
    max-height: calc(var(--ymg-viewport-height, 100dvh) - 36px);
    overflow-y: auto;
    padding: 25px;
    border-radius: 24px;
    background: #fff;
    color: var(--ymg-navy);
    box-shadow: var(--ymg-shadow);
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .2s ease, transform .24s ease;
}

.ymg-help-shell.is-open .ymg-help-dialog,
.ymg-checkout-guide.is-open .ymg-guide-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ymg-help-dialog__close {
    position: absolute !important;
    top: 14px;
    right: 14px;
}

.ymg-help-dialog__hero {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding-right: 34px;
}

.ymg-help-dialog__hero img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.ymg-help-dialog__lead {
    margin: 18px 0 15px !important;
    color: #514854 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.ymg-box-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ymg-box-examples > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 107px;
    padding: 11px 7px;
    border: 1px solid var(--ymg-border);
    border-radius: 15px;
    background: var(--ymg-purple-soft);
    text-align: center;
}

.ymg-box-example__bags {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 29px;
    margin-bottom: 7px;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--ymg-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ymg-box-examples strong {
    color: var(--ymg-navy);
    font-size: 13px;
    font-weight: 900;
}

.ymg-box-examples small {
    margin-top: 2px;
    color: var(--ymg-purple);
    font-size: 11px;
    font-weight: 900;
}

.ymg-help-points {
    display: grid;
    gap: 8px;
    margin: 15px 0;
}

.ymg-help-points p {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin: 0 !important;
    color: #514854 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.ymg-help-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #e5f7ec;
    color: var(--ymg-green);
    font-size: 11px;
    font-weight: 900;
}

.ymg-help-dialog__accept {
    margin-top: 3px !important;
}

.ymg-guide-dialog {
    width: min(520px, 100%);
    padding: 29px;
    text-align: center;
}

.ymg-guide-dialog__icon {
    margin: 0 auto 13px;
}

.ymg-guide-dialog h2 {
    font-size: 25px !important;
}

.ymg-guide-steps {
    display: grid;
    gap: 9px;
    margin: 19px 0;
    text-align: left;
}

.ymg-guide-steps > div {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--ymg-border);
    border-radius: 13px;
    background: #fcfafc;
}

.ymg-guide-steps > div > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--ymg-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ymg-guide-steps p {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
}

.ymg-guide-steps strong {
    color: var(--ymg-navy);
    font-size: 13px;
    font-weight: 900;
}

.ymg-guide-steps small {
    margin-top: 2px;
    color: var(--ymg-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.ymg-cart-banner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #d6bce3;
    border-left: 4px solid var(--ymg-purple);
    border-radius: 15px;
    background: #fbf7fd;
    color: var(--ymg-navy);
    font-family: 'Museo Sans Rounded', Arial, sans-serif;
}

.ymg-cart-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ymg-yellow);
    color: var(--ymg-navy);
}

.ymg-cart-banner__icon svg {
    width: 23px;
    height: 23px;
}

.ymg-cart-banner__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ymg-cart-banner__copy strong {
    color: var(--ymg-navy);
    font-size: 14px;
    font-weight: 900;
}

.ymg-cart-banner__copy span {
    color: var(--ymg-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.ymg-cart-banner__actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ymg-text-button {
    margin: 0 !important;
    padding: 3px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ymg-purple) !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.ymg-text-button:hover,
.ymg-text-button:focus-visible {
    color: var(--ymg-purple-dark) !important;
    outline: 2px solid rgba(92, 36, 131, .14) !important;
    outline-offset: 3px !important;
}

.ymg-toast {
    position: fixed;
    z-index: 1000010;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: min(460px, calc(100vw - 28px));
    padding: 12px 17px;
    border-radius: 999px;
    background: var(--ymg-navy);
    color: #fff;
    font-family: 'Museo Sans Rounded', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 13px 35px rgba(20, 33, 60, .3);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .2s ease, transform .24s ease;
}

.ymg-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ymg-button-gift-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
}

.ymg-button-gift-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* PDP: quantity + two actions, always symmetrical. */
body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger),
body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form {
    display: grid !important;
    grid-template-columns: 142px repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .quantity,
body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .quantity {
    width: 142px !important;
    min-width: 142px !important;
    max-width: 142px !important;
}

body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .single_add_to_cart_button,
body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .ymg-single-gift-trigger,
body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .single_add_to_cart_button,
body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .ymg-single-gift-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: none !important;
}

body.single-product.ymg-ready div.product .summary.entry-summary form.cart .ymg-single-gift-trigger {
    gap: 4px !important;
    border: 2px solid var(--ymg-purple) !important;
    background: #fff !important;
    color: var(--ymg-purple) !important;
}

body.single-product.ymg-ready div.product .summary.entry-summary form.cart .ymg-single-gift-trigger:hover {
    background: var(--ymg-purple-soft) !important;
    color: var(--ymg-purple-dark) !important;
    transform: scale(.97) !important;
}

/* An independent wrapper also works in related products and Elementor grids. */
body.ymg-ready li.product.ymg-has-gift-actions,
body.ymg-ready .wc-block-grid__product.ymg-has-gift-actions {
    container-type: inline-size;
    container-name: ymg-product;
}

body.ymg-ready ul.products li.product .ymg-loop-actions,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 43px !important;
    min-height: 43px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 6px !important;
    gap: 4px !important;
    border: 2px solid var(--ymg-purple) !important;
    border-radius: 999px !important;
    background: var(--ymg-purple) !important;
    color: #fff !important;
    font-family: 'Museo Sans Rounded', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
    letter-spacing: 0 !important;
    float: none !important;
    box-shadow: none !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button::before,
body.ymg-ready ul.products li.product .ymg-loop-actions > .button::after,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button::before,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button::after {
    content: none !important;
    display: none !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-loop-gift-trigger,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-loop-gift-trigger {
    border: 2px solid var(--ymg-purple) !important;
    background: #fff !important;
    color: var(--ymg-purple) !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-loop-gift-trigger:hover,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-loop-gift-trigger:hover {
    background: var(--ymg-purple-soft) !important;
    color: var(--ymg-purple-dark) !important;
    transform: scale(.97) !important;
}

/* Existing card-success selectors must never recolor the Gift choice. */
body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-loop-gift-trigger::before,
body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-loop-gift-trigger::after,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-loop-gift-trigger::before,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-loop-gift-trigger::after {
    content: none !important;
    display: none !important;
}

.ymg-loop-actions .ymg-button-gift-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
}

.ymg-loop-actions .ymg-button-gift-icon svg {
    width: 15px !important;
    height: 15px !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-buy-loading,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-buy-loading {
    border-color: #d8a600 !important;
    background: #d8a600 !important;
    color: #fff !important;
    font-size: 12px !important;
    pointer-events: none !important;
}

body.ymg-ready ul.products li.product .ymg-loop-actions > .button.ymg-buy-added,
body.ymg-ready .wc-block-grid__product .ymg-loop-actions > .button.ymg-buy-added {
    border-color: #529000 !important;
    background: #529000 !important;
    color: #fff !important;
}

@container ymg-product (max-width: 185px) {
    body.ymg-ready ul.products li.product .ymg-loop-actions,
    body.ymg-ready .wc-block-grid__product .ymg-loop-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.ymg-box-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ymg-border);
    border-radius: 99px;
    background: #f8f3fa;
    color: var(--ymg-purple);
    font-weight: 900;
}

/* Gift checkout: the destination section is mandatory and remains open. */
body.ymg-gift-cart #ship-to-different-address-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.ymg-gift-cart #ship-to-different-address label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    pointer-events: none !important;
}

body.ymg-gift-cart #ship-to-different-address label::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--ymg-yellow);
    color: var(--ymg-navy);
    content: '🎁';
    font-size: 17px;
}

body.ymg-gift-cart #ship-to-different-address label span {
    color: var(--ymg-navy) !important;
    font-size: 23px !important;
    font-weight: 900 !important;
}

body.ymg-gift-cart .shipping_address {
    display: block !important;
}

@media (max-width: 1024px) {
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger),
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form {
        grid-template-columns: 128px repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .quantity,
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .quantity {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
    }
}

@media (max-width: 767px) {
    .ymg-drawer {
        width: 100vw;
        max-width: none;
    }

    .ymg-drawer__header {
        min-height: 76px;
        padding: 13px 15px;
    }

    .ymg-drawer__header-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .ymg-drawer__header-icon svg {
        width: 22px;
        height: 22px;
    }

    .ymg-drawer__header h2 {
        font-size: 20px !important;
    }

    .ymg-drawer__body {
        padding: 15px 14px 24px;
    }

    .ymg-loading-state {
        inset: auto;
    }

    .ymg-form-section {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .ymg-field-grid,
    .ymg-radio-grid {
        grid-template-columns: 1fr;
    }

    .ymg-radio-card {
        min-height: 0;
    }

    .ymg-box-card {
        grid-template-columns: 66px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .ymg-box-card > img {
        width: 66px;
        height: 66px;
    }

    .ymg-drawer__footer {
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    }

    .ymg-button {
        min-height: 44px !important;
        padding: 9px 11px !important;
        font-size: 12px !important;
    }

    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger),
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .quantity,
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .quantity {
        grid-column: 1 / -1 !important;
        justify-self: start !important;
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
    }

    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .single_add_to_cart_button,
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart:has(.ymg-single-gift-trigger) .ymg-single-gift-trigger,
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .single_add_to_cart_button,
    body.single-product.ymg-ready div.product .summary.entry-summary form.cart.ymg-has-gift-form .ymg-single-gift-trigger {
        height: 43px !important;
        min-height: 43px !important;
        font-size: 15px !important;
    }

    body.ymg-ready ul.products li.product .ymg-loop-actions,
    body.ymg-ready .wc-block-grid__product .ymg-loop-actions {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }

    .ymg-help-shell,
    .ymg-checkout-guide {
        align-items: flex-end;
        padding: 0;
    }

    .ymg-help-dialog,
    .ymg-guide-dialog {
        width: 100%;
        max-height: calc(var(--ymg-viewport-height, 100dvh) * .92);
        padding: 22px 17px calc(18px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        transform: translateY(30px);
    }

    .ymg-help-dialog__hero {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .ymg-help-dialog__hero img {
        width: 68px;
        height: 68px;
    }

    .ymg-help-dialog h2,
    .ymg-guide-dialog h2 {
        font-size: 21px !important;
    }

    .ymg-cart-banner {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .ymg-cart-banner__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 50px;
    }

    body.ymg-gift-cart #ship-to-different-address label span {
        font-size: 19px !important;
    }
}

@media (max-width: 390px) {
    .ymg-drawer__heading {
        gap: 9px;
    }

    .ymg-drawer__header h2 {
        font-size: 18px !important;
    }

    .ymg-eyebrow {
        font-size: 9px !important;
    }

    .ymg-product-summary {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .ymg-product-summary img {
        width: 60px;
        height: 60px;
    }

    .ymg-box-card {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .ymg-box-card > img {
        width: 56px;
        height: 56px;
    }

    .ymg-box-card__copy > small {
        display: none;
    }

    .ymg-drawer__footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ymg-box-examples {
        gap: 5px;
    }

    .ymg-box-examples > div {
        min-height: 98px;
        padding: 9px 4px;
    }

    .ymg-box-examples strong {
        font-size: 11.5px;
    }

    .ymg-cart-banner__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
}

@media (max-height: 620px) and (min-width: 768px) {
    .ymg-drawer__header {
        min-height: 70px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .ymg-drawer__header-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .ymg-drawer__header h2 {
        font-size: 20px !important;
    }

    .ymg-drawer__body {
        padding-top: 14px;
    }

    .ymg-drawer__footer {
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ymg-drawer,
    .ymg-drawer-shell,
    .ymg-help-shell,
    .ymg-help-dialog,
    .ymg-checkout-guide,
    .ymg-guide-dialog,
    .ymg-toast,
    .ymg-button,
    .ymg-radio-card {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .ymg-spinner {
        animation-duration: 1.4s;
    }
}

