/*!**********************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./assets/src/scss/frontend.scss ***!
  \**********************************************************************************************************************************************************************************************/
@charset "UTF-8";
/**
 * Frontend Styles
 *
 * @package HW_Gift_Books
 */
.hw-gift-books__popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.hw-gift-books__popup.hw-is-active {
  display: flex;
}
.hw-gift-books__popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  overflow-y: auto;
}
.hw-gift-books__popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #333;
}
.hw-gift-books__popup-close:hover {
  color: #00be87;
}
.hw-gift-books__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}
.hw-gift-books__description {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.hw-gift-books__books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.hw-gift-books__book-item {
  position: relative;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hw-gift-books__book-item:hover {
  border-color: #00be87;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hw-gift-books__book-item.hw-is-selected {
  border-color: #00be87;
  background: #f0f9f0;
}
.hw-gift-books__book-item.hw-is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hw-gift-books__book-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}
.hw-gift-books__book-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hw-gift-books__book-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.hw-gift-books__book-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.hw-gift-books__book-checkbox::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: 14px;
  font-weight: bold;
  color: #00be87;
}
.hw-is-selected .hw-gift-books__book-checkbox {
  border-color: #00be87;
}
.hw-is-selected .hw-gift-books__book-checkbox::after {
  display: block;
}
.hw-gift-books__actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.hw-gift-books__button {
  padding: 12px 24px;
  background: #00be87;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hw-gift-books__button:hover {
  background: #00a575;
}
.hw-gift-books__button--secondary {
  background: transparent;
  color: #333;
  border: 2px solid #ddd;
}
.hw-gift-books__button--secondary:hover {
  border-color: #333;
}
.hw-gift-books__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hw-gift-books__notice {
  padding: 15px;
  margin: 20px 0;
  border-left: 4px solid;
  border-radius: 4px;
}
.hw-gift-books__notice--info {
  border-left-color: #00be87;
  background: #e5f2ff;
}
.hw-gift-books__notice--success {
  border-left-color: #00be87;
  background: #ecf7ed;
}
.hw-gift-books__notice--warning {
  border-left-color: #ffb900;
  background: #fff8e5;
}
.hw-gift-books__notice--error {
  border-left-color: #ff3764;
  background: #fbeaea;
}

.woocommerce-cart-form__cart-item.hw-gift-item .product-thumbnail::after {
  content: "🎁";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 24px;
}

.hw-gift-badge {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 8px;
  background: #00be87;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: middle;
}

.woocommerce-cart-form tr.hw-gift-row,
.woocommerce-checkout-review-order-table tr.hw-gift-row {
  background: rgba(0, 190, 135, 0.05);
  border-left: 3px solid #00be87;
}

.woocommerce-checkout-review-order-table tr.fee.hw-gift-discount-row {
  color: #00be87;
  font-weight: 600;
}
.woocommerce-checkout-review-order-table tr.fee.hw-gift-discount-row th, .woocommerce-checkout-review-order-table tr.fee.hw-gift-discount-row td {
  border-top: 2px solid rgba(0, 190, 135, 0.3);
  padding-top: 15px;
}
.woocommerce-checkout-review-order-table tr.fee.hw-gift-discount-row td {
  font-size: 16px;
}

.hw-gift-selection {
  margin: 20px 0;
  padding: 20px;
  background: #00be87;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hw-gift-selection__trigger {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hw-gift-selection__trigger:hover {
  transform: translateX(5px);
}
.hw-gift-selection__icon {
  width: 32px;
  height: 32px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}
.hw-gift-selection__text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}
.hw-gift-selection__count {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.hw-gift-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hw-gift-modal.hw-modal-open {
  display: flex;
}
.hw-gift-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.hw-gift-modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.hw-gift-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 2px solid #f0f0f0;
}
.hw-gift-modal__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}
.hw-gift-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hw-gift-modal__close:hover {
  background: #ff3764;
  color: #fff;
  transform: rotate(90deg);
}
.hw-gift-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}
.hw-gift-modal__info {
  padding: 15px 20px;
  margin-bottom: 25px;
  background-color: #00be87;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
}
.hw-gift-modal__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.hw-gift-modal__loader {
  grid-column: 1/-1;
  padding: 60px;
  text-align: center;
  font-size: 18px;
  color: #999;
}
.hw-gift-modal__product {
  position: relative;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hw-gift-modal__product:hover {
  border-color: #00be87;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 190, 135, 0.2);
}
.hw-gift-modal__product.selected {
  border-color: #00be87;
  background: #f0f9f0;
}
.hw-gift-modal__product.selected .hw-gift-modal__checkbox {
  background: #00be87;
  border-color: #00be87;
}
.hw-gift-modal__product.selected .hw-gift-modal__checkbox::after {
  display: block;
}
.hw-gift-modal__product.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.hw-gift-modal__checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}
.hw-gift-modal__checkbox::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
.hw-gift-modal__product-image {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}
.hw-gift-modal__product-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hw-gift-modal__product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}
.hw-gift-modal__footer {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}
.hw-gift-modal__button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hw-gift-modal__button--cancel {
  background-color: #ff3764;
  color: white;
}
.hw-gift-modal__button--cancel:hover {
  background: #981d39;
}
.hw-gift-modal__button--confirm {
  background-color: #00be87;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 190, 135, 0.3);
}
.hw-gift-modal__button--confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 190, 135, 0.4);
}
.hw-gift-modal__button--confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .hw-gift-modal {
    padding: 10px;
  }
  .hw-gift-modal__content {
    max-height: 95vh;
  }
  .hw-gift-modal__header {
    padding: 20px;
  }
  .hw-gift-modal__header h3 {
    font-size: 20px;
  }
  .hw-gift-modal__body {
    padding: 20px;
  }
  .hw-gift-modal__products {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  .hw-gift-modal__footer {
    padding: 15px 20px;
    flex-direction: column;
  }
  .hw-gift-modal__footer .hw-gift-modal__button {
    width: 100%;
  }
  .hw-gift-selection {
    padding: 15px;
  }
  .hw-gift-selection__text {
    font-size: 16px;
  }
  .hw-gift-selection__icon {
    width: 28px;
    height: 28px;
  }
}

/*# sourceMappingURL=frontend.css.map*/