* {
  box-sizing: border-box;
  font-family: var(--ism-primary-font-family);
}

:host {
  display: block;
  width: 100%;
  border-radius: var(--space-8);
  background-color: white;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.title {
  font-size: var(--space-16);
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.price-info {
  display: flex;
  align-items: center;
  /* margin-top: 4px; */
  color: #6e6e6e;
  font-size: var(--space-14);
}

.dot-separator {
  margin: 0 6px;
}

.status-badge {
  background-color: rgba(52, 199, 89, 0.15);
  color: #34c759;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.card-content {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
}

.product-section {
  display: flex;
  gap: 16px;
}

.product-image,
.placeholder-image {
  width: 80px;
  height: 80px;
  background-color: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: var(--space-16);
  font-weight: 500;
  margin: 0;
  color: #1a1a1a;

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

.product-description {
  color: #6e6e6e;
  font-size: var(--space-14);
  margin: 0 0 var(--space-8) 0;
}

.delivery-info {
  display: flex;
  gap: 32px;
}

.info-column {
  flex: 1;
}

.info-label {
  color: #6e6e6e;
  font-size: var(--space-12);
  margin: 0;
}

.info-value {
  color: #1a1a1a;
  font-size: var(--space-12);
  font-weight: 500;
  margin: 0;
}

.card-actions {
  display: flex;
  padding: 16px 20px;
  gap: 12px;
}

.action-button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
}

.action-button.secondary {
  background-color: #f7f7f7;
  color: #1a1a1a;
}

.action-button.primary {
  background-color: var(--primary-blue);
  color: white;
}

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

/* Subscription options styling */
.subscription-options {
  width: 100%;
}

.options-header {
  border-bottom: 1px solid #f0f0f0;
}

.options-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.options-list.open {
  max-height: 30rem; /* Ensure this value is large enough */
}

.option-item {
  padding: var(--space-16) var(--space-20);
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: var(--space-14);
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: var(--space-8);
}

.option-item:hover {
  border: 0.01rem solid var(--primary-blue);
}

.option-item.cancel {
  color: #dc3545;
  font-weight: 500;
}

.option-item:focus {
  outline: none;
  background-color: #f0f0f0;
}

.option-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
