.mds-close-button.btn-close {
  inline-size: var(--mds-icons-md);
  block-size: var(--mds-icons-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--mds-border-radius-xs);
  color: var(--mds-text-subtle);
  background-color: transparent;
  background-image: none;
  opacity: 1;
}

.mds-close-button.btn-close::before {
  content: '';
  display: block;
  inline-size: var(--mds-icons-xs);
  block-size: var(--mds-icons-xs);
  background-color: currentColor;
  mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M0.365054%202.04992L4.29641%205.98128L0.365054%209.95008C-0.121685%2010.3994%20-0.121685%2011.1856%200.365054%2011.6349C0.814352%2012.1217%201.60062%2012.1217%202.04992%2011.6349L5.98128%207.70359L9.95008%2011.6349C10.3994%2012.1217%2011.1856%2012.1217%2011.6349%2011.6349C12.1217%2011.1856%2012.1217%2010.3994%2011.6349%209.95008L7.70359%205.98128L11.6349%202.04992C12.1217%201.60062%2012.1217%200.814353%2011.6349%200.365055C11.1856%20-0.121685%2010.3994%20-0.121685%209.95008%200.365055L5.98128%204.29641L2.04992%200.365055C1.60062%20-0.121685%200.814352%20-0.121685%200.365054%200.365055C-0.121685%200.814353%20-0.121685%201.60062%200.365054%202.04992Z%22%20fill%3D%22%23495057%22%2F%3E%20%3C%2Fsvg%3E');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100%;
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M0.365054%202.04992L4.29641%205.98128L0.365054%209.95008C-0.121685%2010.3994%20-0.121685%2011.1856%200.365054%2011.6349C0.814352%2012.1217%201.60062%2012.1217%202.04992%2011.6349L5.98128%207.70359L9.95008%2011.6349C10.3994%2012.1217%2011.1856%2012.1217%2011.6349%2011.6349C12.1217%2011.1856%2012.1217%2010.3994%2011.6349%209.95008L7.70359%205.98128L11.6349%202.04992C12.1217%201.60062%2012.1217%200.814353%2011.6349%200.365055C11.1856%20-0.121685%2010.3994%20-0.121685%209.95008%200.365055L5.98128%204.29641L2.04992%200.365055C1.60062%20-0.121685%200.814352%20-0.121685%200.365054%200.365055C-0.121685%200.814353%20-0.121685%201.60062%200.365054%202.04992Z%22%20fill%3D%22%23495057%22%2F%3E%20%3C%2Fsvg%3E');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100%;
}

.mds-close-button.btn-close:hover {
  color: var(--mds-text-emphasis);
}

.mds-close-button.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.mds-close-button.btn-close:focus-visible {
  color: var(--mds-text-emphasis);
  outline: var(--mds-stroke-weight-md) solid var(--mds-focus-default);
  outline-offset: 0;
  box-shadow: none;
}

.mds-close-button.btn-close:disabled,
.mds-close-button.btn-close.disabled {
  color: var(--mds-text-muted);
}

.mds-close-button.btn-close.mds-close-button--sm {
  inline-size: var(--mds-icons-sm);
  block-size: var(--mds-icons-sm);
}

.mds-close-button.btn-close.mds-close-button--sm::before {
  inline-size: var(--mds-icons-xxs);
  block-size: var(--mds-icons-xxs);
}

.mds-close-button.btn-close.mds-close-button--md {
  inline-size: var(--mds-icons-md);
  block-size: var(--mds-icons-md);
}

.mds-close-button.btn-close.mds-close-button--lg {
  inline-size: var(--mds-icons-lg);
  block-size: var(--mds-icons-lg);
}

.mds-close-button.btn-close.mds-close-button--lg::before {
  inline-size: var(--mds-icons-sm);
  block-size: var(--mds-icons-sm);
}
