.dev4webgift-panel {
  margin-top: 1rem;
  padding: 1rem 1.125rem 1.125rem;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(21, 34, 50, 0.08);
}

.dev4webgift-panel--cart {
  margin-top: 1.5rem;
}

.dev4webgift-panel--line {
  min-width: 240px;
}

.dev4webgift-form {
  margin: 0;
}

.dev4webgift-panel__intro {
  margin-bottom: 0.9rem;
}

.dev4webgift-panel__intro--compact {
  margin-bottom: 0.75rem;
}

.dev4webgift-panel__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #285caa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dev4webgift-panel__title {
  margin: 0;
  color: #17324d;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.dev4webgift-panel--line .dev4webgift-panel__title {
  font-size: 0.95rem;
}

.dev4webgift-panel__text {
  margin: 0.35rem 0 0;
  color: #5f7083;
  font-size: 0.88rem;
  line-height: 1.45;
}

.dev4webgift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.dev4webgift-grid--compact {
  grid-template-columns: 1fr;
}

.dev4webgift-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.dev4webgift-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dev4webgift-option__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 88px;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d5dde7;
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.dev4webgift-option--compact .dev4webgift-option__card {
  min-height: 76px;
  padding: 0.75rem 0.85rem;
}

.dev4webgift-option:hover .dev4webgift-option__card {
  border-color: #9cb6dd;
  box-shadow: 0 10px 20px rgba(36, 80, 139, 0.1);
  transform: translateY(-1px);
}

.dev4webgift-option__input:checked + .dev4webgift-option__card {
  border-color: #2d6cdf;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 14px 24px rgba(45, 108, 223, 0.14);
}

.dev4webgift-option__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dev4webgift-option__media {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f6fa;
  box-shadow: inset 0 0 0 1px #e1e8f0;
}

.dev4webgift-option__media--small {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.dev4webgift-option__media--empty::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe7f9 0%, #bfcfe7 100%);
}

.dev4webgift-option__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev4webgift-option__body {
  min-width: 0;
}

.dev4webgift-option__title {
  display: block;
  color: #1b3147;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.dev4webgift-option__subtitle {
  display: block;
  margin-top: 0.15rem;
  color: #677789;
  font-size: 0.82rem;
  line-height: 1.35;
}

.dev4webgift-option__check {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #c6d1dd;
  border-radius: 50%;
  background: #fff;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dev4webgift-option__input:checked + .dev4webgift-option__card .dev4webgift-option__check {
  border-color: #2d6cdf;
  background: #2d6cdf;
  box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.14);
}

.dev4webgift-option__input:checked + .dev4webgift-option__card .dev4webgift-option__check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dev4webgift-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
}

.dev4webgift-cart-line--gift {
  padding: 0.9rem 0.75rem;
  border: 1px solid #d7e6d9;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 252, 247, 0.98) 0%, rgba(239, 248, 240, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.dev4webgift-cart-line--gift .product-image {
  display: block;
  padding: 0.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.dev4webgift-cart-line--gift .product-line-info .label {
  color: #1e4d2b;
  font-weight: 700;
}

.dev4webgift-badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #2f7d32;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dev4webgift-cart-line--gift .current-price .price,
.dev4webgift-price-label {
  color: #2f7d32;
}

.dev4webgift-price-label {
  font-size: 0.95rem;
}

.dev4webgift-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #bfd6c1;
  border-radius: 12px;
  background: #fff;
  color: #26452d;
  font-weight: 700;
}

.dev4webgift-cart-line--gift .cart-line-product-actions {
  opacity: 0.45;
}

.dev4webgift-order-line--gift {
  margin-bottom: 0.9rem;
  padding: 0.9rem 0.75rem;
  border: 1px solid #d7e6d9;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 252, 247, 0.98) 0%, rgba(239, 248, 240, 0.98) 100%);
}

.dev4webgift-order-line--gift .image {
  display: block;
  padding: 0.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.dev4webgift-order-line--gift .details {
  color: #1e4d2b;
}

.dev4webgift-order-line--gift .dev4webgift-badge {
  margin-bottom: 0.55rem;
}

.dev4webgift-actions--compact {
  margin-top: 0.85rem;
}

.dev4webgift-actions__primary {
  min-width: 170px;
}

.dev4webgift-actions__secondary {
  padding: 0;
  color: #61788f;
}

.dev4webgift-actions__secondary:hover,
.dev4webgift-actions__secondary:focus {
  color: #2d6cdf;
  text-decoration: none;
}

@media (max-width: 767px) {
  .dev4webgift-panel {
    padding: 0.95rem;
    border-radius: 14px;
  }

  .dev4webgift-grid {
    grid-template-columns: 1fr;
  }

  .dev4webgift-option__card {
    min-height: 78px;
    padding: 0.75rem 0.8rem;
  }

  .dev4webgift-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dev4webgift-actions__primary {
    width: 100%;
    min-width: 0;
  }
}
