* {
  box-sizing: border-box;
}

:host {
  display: block;
  color: #333;
  --primary-color: #4169e1;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --border-color: #ddd;
  --success-color: #4caf50;
  --success-light: rgba(76, 175, 80, 0.1);
  --warning-bg: #fff9e6;
  --paused-color: #ff8c00;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

p,
h3 {
  margin: 0;
}

h3 {
  font-size: 0.875rem;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-black);
}

p {
  margin: 8px 0;
  color: var(--text-secondary-color);
  font-size: 0.875rem;
}

.subscription-info {
  display: flex;
  align-items: center;
  padding: 0.875rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100%;
}

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

.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;
}

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

.subscription-details h3 {
  margin: 0 0 4px 0;
}

.subscription-details p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-secondary-color);
}

.status-info {
  margin-bottom: 24px;
}

.status-info p {
  margin: 4px 0;
  font-weight: 500;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option {
  padding: var(--space-12);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  border-color: var(--primary-color);
  background-color: rgba(65, 105, 225, 0.05);
}

.option.selected {
  border-color: var(--primary-color);
  background-color: rgba(65, 105, 225, 0.1);
}

.option-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 4px;
  color: var(--primary-black);
}

.option-description {
  color: var(--text-secondary-color);
  font-size: 0.75rem;
}

.notice {
  display: flex;
  padding: var(--space-12);
  background-color: var(--warning-bg);
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #ffe082;
}

.notice-icon {
  margin-right: 12px;
  font-size: 20px;
}

.notice-text {
  font-size: 0.75rem;
  color: var(--text-secondary-color);
}

.buttons-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.buttons-container.centered {
  justify-content: center;
}

.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;
  flex: 1;
  font-family: var(--ism-primary-font-family);
}

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

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

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

.button.secondary {
  background-color: white;
  border: 1px solid var(--border-color);
  color: #333;
}

.button.secondary:hover {
  background-color: var(--light-gray);
}

.confirm-box {
  background-color: #fffde7;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 24px;
}

.confirm-details p {
  margin: 8px 0;
  font-size: 0.875rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 8px;
}

.checkbox-container span {
  font-size: 0.75rem;
}

.checkbox-container input {
  margin-right: 8px;
}

.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.checkmark {
  color: var(--success-color);
  font-size: 32px;
}

.success-container h3 {
  margin-top: 0;
}

.success-details {
  text-align: left;
  width: 100%;
}

.success-details p {
  margin: 8px 0;
}

.paused-status {
  color: var(--paused-color);
  font-weight: 600;
}

.resume-info {
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary-color);
}
