.op-side-gifts { margin: 12px 0; color: #152039; }
.op-side-gift { padding: 12px; margin: 0 0 8px; background: #fff; border: 1px solid #dedfe3; border-radius: 10px; }
.op-side-head { display: flex; gap: 10px; align-items: center; }
.op-side-head .op-gift-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: #c45418; stroke-width: 1.6; }
.op-side-gift p { font-size: .83rem; margin: 3px 0; line-height: 1.4; }
.op-side-gift small, .op-side-gift .op-gift-unit { display: block; margin-top: 4px; font-size: .74rem; color: #4d5665; }
.op-side-gift .op-track { display: flex; overflow: hidden; margin-top: 9px; height: 5px; background: #e7e8ec; border-radius: 5px; }
.op-side-gift .op-segment, .op-side-gift .op-segment i { display: block; width: 100%; height: 100%; }
.op-side-gift .op-segment i { background: #ee752e; transform-origin: left; }
.op-side-gift .op-gift-form { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: end; margin: 9px 0 0; }
.op-side-gift .op-gift-choice { grid-column: 1 / -1; display: flex; min-width: 0; align-items: center; gap: 8px; }
.op-side-gift .op-gift-choice label { flex: 1; min-width: 0; margin: 0; }
.op-side-gift .op-product-image { position: relative; display: block; width: 36px; height: 40px; flex: 0 0 36px; overflow: hidden; background: #f6f7f8; border-radius: 6px; text-align: center; line-height: 40px; }
.op-side-gift .op-product-image img { position: absolute; inset: 0; display: block; width: 36px; height: 40px; max-width: 100%; max-height: 100%; object-fit: contain; }
.op-side-gift select, .op-side-gift input, .op-side-gift button { font: inherit; color: inherit; }
.op-side-gift select { width: 100%; padding: 6px; border: 1px solid #d6d8df; border-radius: 6px; background: #fff; }
.op-side-gift .op-sr, .op-side-gift .op-gift-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.op-side-gift .op-quantity { font-size: .76rem; margin: 0; }
.op-side-gift .op-stepper { display: flex; margin-top: 3px; }
.op-side-gift .op-stepper button, .op-side-gift .op-stepper input { min-height: 36px; border: 1px solid #dedfe3; background: #fff; text-align: center; }
.op-side-gift .op-stepper button { width: 28px; cursor: pointer; }
.op-side-gift .op-stepper input[name="gift_slots"] {
  box-sizing: border-box;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  padding: 0;
  line-height: normal;
  appearance: textfield;
}
.op-side-gift .op-stepper input::-webkit-outer-spin-button,
.op-side-gift .op-stepper input::-webkit-inner-spin-button { appearance: none; }
.op-side-gift .op-add { min-height: 36px; padding: 5px 7px; border: 0; border-radius: 7px; background: #ad4518; color: #fff; font-size: .83rem; font-weight: 650; cursor: pointer; }
.op-side-gift .op-add:hover { background: #91370f; }
.op-side-gift .op-add:disabled { opacity: .65; cursor: wait; }
.op-side-gift :focus-visible { outline: 2px solid #ad4518; outline-offset: 2px; }

.oez-gift-line {
  box-shadow: inset 0 0 0 1px #efb6bc;
  border-radius: 9px;
}
.oez-gift-line .oez-gift-label {
  display: block;
  color: #d50016;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .2rem;
}
.img-ct.oez-gift-wrapped {
  --oez-ribbon-width: 5px;
  --oez-ribbon-left: 9px;
  --oez-ribbon-top: 3px;
  --oez-photo-left: 22px;
  --oez-photo-top: 12px;
  overflow: visible;
}

.cols-img .img-ct.oez-gift-wrapped {
  --oez-ribbon-width: 2px;
  --oez-ribbon-left: 5px;
  --oez-photo-left: 12px;
  --oez-photo-top: 8px;
}

.img-ct.oez-gift-wrapped img {
  inset: var(--oez-photo-top) auto auto var(--oez-photo-left);
  width: calc(100% - var(--oez-photo-left)) !important;
  height: calc(100% - var(--oez-photo-top)) !important;
  object-fit: contain;
}

.oez-gift-wrapped > .oez-gift-bow {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Snackys uses the image wrapper's ::before to size the photo. */
  background:
    linear-gradient(#a40012, #ff5362 34%, #ed001d 52%, #af0014) left var(--oez-ribbon-top) / 100% var(--oez-ribbon-width) no-repeat,
    linear-gradient(90deg, #930015, #ff4658 34%, #ed001d 56%, #ac0014) var(--oez-ribbon-left) top / var(--oez-ribbon-width) 100% no-repeat;
}

.oez-gift-bow::before, .oez-gift-bow::after {
  content: "";
  position: absolute;
  top: var(--oez-ribbon-top);
  left: var(--oez-ribbon-left);
  width: clamp(9px, 16%, 19px);
  height: clamp(7px, 9%, 12px);
  background:
    radial-gradient(ellipse at 23% 24%, #ff9997, transparent 33%),
    linear-gradient(156deg, #83000a 7%, #ff6257 25%, #fa1021 37%, #98000d 51%, #3d0006 66%, #db0011 81%, #690008);
  box-shadow: inset 0 -1px 1px #620009, 0 1px 2px #56000865;
}
.oez-gift-bow::before {
  border-radius: 29% 74% 66% 31% / 34% 51% 60% 61%;
  transform: translate(-83%, -53%) rotate(6deg);
}
.oez-gift-bow::after {
  border-radius: 64% 35% 45% 37% / 50% 46% 63% 54%;
  transform: translate(-4%, -92%) rotate(-57deg);
}
.oez-gift-bow i {
  position: absolute;
  top: var(--oez-ribbon-top);
  left: var(--oez-ribbon-left);
  width: clamp(7px, 18%, 20px);
  height: clamp(8px, 15%, 20px);
  transform: translate(-36%, -15%);
  background:
    radial-gradient(ellipse at 35% 27%, #ff9b8a, #f21322 34%, #95000a 65%, #530007 89%) 48% top / 45% 34% no-repeat,
    linear-gradient(117deg, #710008 8%, #ec0013 21%, #ff7162 34%, #d90011 43%, #680008 54%, #e50015 74%, #ff5148 81%, #8a0009 95%);
  clip-path: polygon(38% 0, 65% 0, 77% 20%, 70% 34%, 100% 65%, 79% 64%, 78% 83%, 51% 39%, 25% 100%, 20% 79%, 0 80%, 32% 32%, 27% 15%);
  z-index: 1;
}
