.has-wedding-fixed-actions {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.wedding-fixed-actions {
  --wedding-action-color: #7f0505;
  --wedding-gift-color: #c74747;
  --wedding-action-font: system-ui, sans-serif;
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 24px), 430px);
  padding: 7px 9px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--wedding-action-color) 11%, transparent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(45, 35, 35, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wedding-fixed-action {
  display: inline-flex;
  min-width: 0;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--wedding-action-color);
  font-family: var(--wedding-action-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.wedding-fixed-action + .wedding-fixed-action {
  position: relative;
}

.wedding-fixed-action + .wedding-fixed-action::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--wedding-action-color) 13%, transparent);
}

.wedding-fixed-action:hover {
  background: color-mix(in srgb, var(--wedding-action-color) 7%, transparent);
}

.wedding-fixed-action:active {
  transform: scale(0.97);
}

.wedding-fixed-icon-slot {
  display: flex;
  width: 32px;
  height: 30px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.wedding-fixed-pin {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.8px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.wedding-fixed-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.wedding-fixed-present {
  position: relative;
  width: 21px;
  height: 16px;
  flex: none;
  color: var(--wedding-gift-color);
  border: 1.6px solid currentColor;
  border-radius: 2px;
  transform: translateY(7px);
}

.wedding-fixed-present::before {
  content: "";
  position: absolute;
  top: 3px;
  right: -3px;
  left: -3px;
  height: 5px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  background: #fff;
}

.wedding-fixed-present::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  bottom: -1px;
  left: 7px;
  width: 5px;
  border-right: 1.4px solid currentColor;
  border-left: 1.4px solid currentColor;
}

.wedding-fixed-present i::before,
.wedding-fixed-present i::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 9px;
  height: 7px;
  border: 1.5px solid currentColor;
}

.wedding-fixed-present i::before {
  left: 2px;
  border-radius: 8px 8px 2px 8px;
  transform: rotate(12deg);
}

.wedding-fixed-present i::after {
  right: 2px;
  border-radius: 8px 8px 8px 2px;
  transform: rotate(-12deg);
}

.wedding-fixed-gift-popover {
  --wedding-action-color: #7f0505;
  --wedding-action-font: system-ui, sans-serif;
  position: fixed;
  left: 50%;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 87px);
  z-index: 9999;
  width: min(calc(100% - 24px), 330px);
  max-height: calc(100vh - 120px);
  padding: 18px;
  overflow: auto;
  transform: translate(-50%, 10px) scale(0.98);
  border: 1px solid color-mix(in srgb, var(--wedding-action-color) 14%, transparent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 40px rgba(45, 35, 35, 0.2);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wedding-fixed-gift-popover.is-open {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wedding-fixed-gift-close {
  position: absolute;
  top: 8px;
  right: 9px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wedding-action-color) 8%, transparent);
  color: var(--wedding-action-color);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.wedding-fixed-gift-title {
  margin: 0 28px 12px;
  color: var(--wedding-action-color);
  font-family: var(--wedding-action-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wedding-fixed-gift-qr {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin: 0 auto 10px;
  border-radius: 12px;
}

.wedding-fixed-gift-name {
  margin: 0;
  color: var(--wedding-action-color);
  font-family: var(--wedding-action-font);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}

@media (max-width: 390px) {
  .wedding-fixed-actions {
    width: calc(100% - 16px);
    padding-right: 5px;
    padding-left: 5px;
  }

  .wedding-fixed-action {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wedding-fixed-action,
  .wedding-fixed-gift-popover {
    transition: none;
  }
}
