@import (reference) "../../../node_modules/@transferwise/neptune-css/src/less/ring.less";

.np-close-button {
  transition: color 0.15s ease-in-out;
  color: var(--color-interactive-accent);
  border: none;
  background: none;
  padding: 0;
  height: var(--size-16);

  &--large,
  &--x-large {
    height: var(--size-24);
  }

  &:hover {
    color: var(--color-interactive-accent-hover);
  }

  .ring-offset-0();

  .np-theme-personal & {
    color: var(--color-interactive-primary);
    height: var(--size-32);
    width: var(--size-32);
    @media (--screen-400-zoom) {
      height: var(--size-64);
      width: var(--size-64);
    }
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color 0.1s ease;

    &--large {
      height: var(--size-40);
      width: var(--size-40);
      @media (--screen-400-zoom) {
        height: var(--size-80);
        width: var(--size-80);
      }
      flex-shrink: 0;
    }

    &--x-large {
      height: var(--size-48);
      width: var(--size-48);
      @media (--screen-400-zoom) {
        height: var(--size-96);
        width: var(--size-96);
      }
      flex-shrink: 0;
    }

    &:not(.disabled, :disabled):hover {
      color: var(--color-interactive-primary-hover);
      background-color: var(--color-background-neutral-hover);
    }

    &:not(.disabled, :disabled):active {
      color: var(--color-interactive-primary-active);
      background-color: var(--color-background-neutral-active);
    }
  }
}
