﻿/* ===== MODAL CONTAINER ===== */
.product-gift-modal {
  position: relative;
  width: 100%;
  max-width: 866px;
  background: #fff;
  border-radius: 12px;
  padding: 0px 40px 32px;
}

/* ===== HEADER ===== */
.product-gift-modal__header {
  padding-bottom: 20px;
  text-align: left;
  border-bottom: 1px solid #d2d2d7;
}

.product-gift-modal__title {
  color: #1d1d1f;
  font-family: var(--font-body-family);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.009em;
  margin: 0;
}

/* ===== CLOSE BUTTON ===== */
.product-gift-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #f5f5f7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

  .product-gift-modal__close:hover {
    background: #e8e8ed;
  }

  .product-gift-modal__close svg {
    width: 20px;
    height: 20px;
    fill: #1d1d1f;
  }

.product-gift-modal__close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gift-modal__content {
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

  .product-gift-modal__content::-webkit-scrollbar {
    width: 8px;
  }

  .product-gift-modal__content::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 4px;
  }

  .product-gift-modal__content::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 4px;
  }

    .product-gift-modal__content::-webkit-scrollbar-thumb:hover {
      background: #b8b8bd;
    }
.product-gift-modal table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: none;
}

.product-gift-modal tbody {
  display: table-row-group;
}

.product-gift-modal .subItem-row {
  border-top: 1px solid #d2d2d7;
}

  .product-gift-modal .subItem-row:first-child {
    border-top: none;
  }

  .product-gift-modal .subItem-row:last-child {
    border-bottom: 1px solid #d2d2d7;
  }

.product-gift-modal .gift-col {
  padding: 16px 0;
  vertical-align: middle;
  border: none;
}

.product-gift-modal .gift-col--spacer {
  width: 0;
  padding: 0;
  border: none;
}

.product-gift-modal .gift-col--media {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 20px;
  width: 100%;
}

  .product-gift-modal .gift-col--media a {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

.product-gift-modal .gift-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.product-gift-modal .gift-col--info {
  flex: 1;
  min-width: 0;
}

.product-gift-modal .gift-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1d1d1f;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.product-gift-modal .gift-subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: #86868b;
}
.product-gift-modal .gift-col--actions {
  text-align: right;
  padding-left: 20px;
  white-space: nowrap;
}

.product-gift-modal .gift-price {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

.screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media screen and (max-width: 768px) {
  .product-gift-modal {
    padding: 0px 24px 24px;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }

  .product-gift-modal__header {
    padding-bottom: 16px;
  }

  .product-gift-modal__title {
    font-size: 20px;
  }

  .product-gift-modal__content {
    margin: 0;
    padding: 0;
  }

  .product-gift-modal .gift-col--media {
    gap: 12px;
  }

    .product-gift-modal .gift-col--media a {
      width: 50px;
      height: 50px;
    }

  .product-gift-modal .gift-image {
    width: 50px;
    height: 50px;
  }

  .product-gift-modal .gift-title {
    font-size: 14px;
  }

  .product-gift-modal .gift-subtitle {
    font-size: 12px;
  }

  .product-gift-modal .gift-col {
    padding: 12px 0;
  }
}

@media screen and (max-width: 480px) {
  .product-gift-modal {
    padding: 0px 16px 16px;
  }

  .product-gift-modal__close {
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
  }

    .product-gift-modal__close svg {
      width: 16px;
      height: 16px;
    }
}
