:host {
  display: block;
  width: 100%;
  color: #333;

  --primary-color: var(--primary-blue, #001e57);
  --dropdown-bg-color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

p,
h2,
h3 {
  margin: 0;
}

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

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;
  width: 100%;
  font-family: var(--ism-primary-font-family);
}

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

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

h2 {
  font-size: 0.875rem;
  font-weight: 600;
}

p {
  color: #666;
}

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

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

.subscription-details-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: white;
  border-radius: var(--space-8);
  width: 100%;
  padding: 12px;
}

.subscription-details {
  display: flex;
  gap: 1rem;
}

.product-info {
  flex: 1;
}

.delivery-info {
  margin: 16px 0 0 0;
  font-size: var(--space-14);
}

.delivery-label {
  color: var(--primary-blue);
  font-weight: 500;
  margin-right: 8px;
}

.delivery-value {
  font-weight: 500;
}

.next-delivery {
  color: #666;
  font-size: var(--space-14);
}

.change-button {
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
}

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

.frequency-selection {
  background-color: white;
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-header {
  display: flex;
  margin-bottom: 24px;
}

.product-title {
  margin-left: 16px;
}

.product-title p {
  font-size: 14px;
}

/* .options-list {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.delivery-option {
  --columns: 3;

  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex: 1 0 calc((100% / var(--columns)) - 12px);
  min-width: 100px;
}

.delivery-option:hover {
  border-color: #bbb;
}

.delivery-option.selected {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 1px var(--primary-blue);
} */

custom-select {
  width: 100%;
}

custom-select::part(dropdown) {
  height: 160px;
}

custom-select::part(select-button) {
  font-family: 'Poppins', serif;
  border-radius: var(--space-8);
}

.price {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.cancel-button {
  background-color: white;
  color: #333;
  border: 1px solid #e0e0e0;
}

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

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

.cost-comparison {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}

.comparison-title {
  font-size: var(--space-16);
  font-weight: 600;
}

.cost-comparison h3 {
  font-size: var(--space-16);
  font-weight: 600;
  margin-bottom: 16px;
}

.comparison-row {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comparison-row.total {
  font-weight: 600;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.comparison-row.savings {
  color: #3c9e41;
  font-weight: 600;
}

.comparison-note {
  color: #999;
  font-size: 14px;
  margin-top: 12px;
}

.success-screen {
  background-color: white;
  border-radius: 15px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.success-message {
  margin-bottom: 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
}

.success-screen h2 {
  margin-bottom: 8px;
}

.success-screen p {
  color: #666;
}

.updated-details {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 1rem;
  text-align: left;
  margin-bottom: 24px;
}

.confirmation-details h3 {
  font-size: var(--space-16);
  font-weight: 600;
  margin-bottom: 4px;
}

.confirmation-details p {
  font-size: var(--space-14);
  margin: 0;
}

.savings-message {
  color: #3c9e41;
  font-weight: 500;
  margin-top: 12px;
}
