* {
  box-sizing: border-box;
}

:host {
  display: block;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
}

p,
h2 {
  margin: 0;
}

.header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #000;
}

.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.checkmark {
  background-color: rgba(75, 215, 100, 0.15);
  color: #2a9d38;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.title,
.subtitle {
  text-align: center;
}

.title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-black);

  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary-color);
  margin-bottom: 24px;
}

.product-info {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.product-image,
.placeholder-image {
  width: 32px;
  height: 32px;
  background-color: #ddd;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name {
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
  margin: 0;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-info {
  text-align: left;
  margin-bottom: 24px;
}

.skipped-delivery,
.next-delivery,
.reason {
  font-size: 0.875rem;
}

.next-delivery {
  color: var(--primary-blue);
  font-weight: 500;
}

.instruction {
  color: var(--text-secondary-color);
  font-size: 0.75rem;
  margin-bottom: 24px;
  text-align: left;
}

.done-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-8);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
  font-family: var(--ism-primary-font-family);
}

.done-button:hover {
  background-color: #001943;
}
