.gift{box-sizing:border-box;color:#333;font-size:14px;line-height:1.4}
.gift--plain{margin:20px 0 15px;padding:14px 16px;background:#fff;border-radius:8px}
.gift--plain .gift__title{margin:0 0 10px;font-size:16px;font-weight:600}
.gift--checkout{margin-bottom:20px}
.gift__section+.gift__section{margin-top:12px;padding-top:12px;border-top:1px solid #e8e4dc}
.gift__row{display:flex;align-items:center;gap:10px;margin:0;font-weight:400;cursor:pointer}
.gift__row input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:0}
.gift__head{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.gift__label{flex:1 1 auto;font-weight:600}
.gift__price{font-weight:700;white-space:nowrap}
.gift__message-wrap{margin:8px 0 0 28px}
.gift__message{box-sizing:border-box;display:block;width:100%;padding:8px 10px;border:1px solid #d8d2c6;border-radius:8px;background:#fff;font:inherit;resize:vertical}
.gift__message:focus{outline:2px solid #6b8f71;outline-offset:1px}
.gift__counter{margin-top:4px;font-size:12px;opacity:.65;text-align:right}
.gift__item{padding:6px 0}
.gift__item+.gift__item{border-top:1px solid #f0ece4}
.gift__thumb{flex:0 0 40px;width:40px;height:40px;border-radius:6px;object-fit:cover}
.gift__info{display:flex;flex-direction:column;min-width:0}
.gift__name{overflow:hidden;text-overflow:ellipsis}
.gift__detail{font-size:12px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gift__note{margin:8px 0 0;font-size:12px;opacity:.7}
.gift__actions{margin-top:12px;text-align:right}
.gift__actions[hidden],.gift__message-wrap[hidden]{display:none}
.gift__error{margin:0 0 6px;color:#b3261e;font-size:13px}
.gift__error:empty{display:none}
.gift__save{padding:8px 18px;border:0;border-radius:8px;background:#5b3a24;color:#fff;font:inherit;cursor:pointer}
.gift__save:disabled{opacity:.6;cursor:default}
.gift__view{position:relative;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:1px solid #e8e4dc;border-radius:6px;background:#fff;overflow:hidden;cursor:zoom-in}
.gift__view img{display:block;width:100%;height:100%;object-fit:cover}
.gift__zoom{position:absolute;right:2px;bottom:2px;width:16px;height:16px;border-radius:50%;background:rgba(91,58,36,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M10 10l3 3' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat}
.gift__view--info{flex-basis:22px;width:22px;height:22px;border-radius:50%;border-color:#5b3a24;color:#5b3a24;font:italic 700 13px/20px Georgia,serif;text-align:center;cursor:pointer}
.gift__view:hover{border-color:#5b3a24}
.gift__view:focus-visible{outline:2px solid #5b3a24;outline-offset:2px}
html.gift-modal-open,html.gift-modal-open body{overflow:hidden}
.gift-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(30,22,16,.6);box-sizing:border-box}
.gift-modal__dialog{position:relative;box-sizing:border-box;width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto;padding:20px;border-radius:8px;background:#fff;color:#333;font-size:14px;line-height:1.5;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.gift-modal__close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#333;cursor:pointer}
.gift-modal__close:hover{background:#f3efe8}
.gift-modal__close:focus-visible,.gift-modal__thumb:focus-visible{outline:2px solid #5b3a24;outline-offset:2px}
.gift-modal__head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0 44px 14px 0}
.gift-modal__title{margin:0;font-size:18px;font-weight:600;line-height:1.3}
.gift-modal__price{font-weight:700;white-space:nowrap}
.gift-modal__figure{border-radius:6px;background:#f7f5f1;overflow:hidden}
.gift-modal__image{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain}
.gift-modal__strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gift-modal__thumb{width:56px;height:56px;padding:0;border:2px solid transparent;border-radius:6px;background:#fff;overflow:hidden;cursor:pointer}
.gift-modal__thumb[aria-current]{border-color:#5b3a24}
.gift-modal__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.gift-modal__text{margin:14px 0 0;white-space:pre-line}
