@import url('./theme.css');

:host(.hide-title) h2 {
  display: none !important;
}

@font-face {
  font-family: CircularStd-Book;
  src: url("../Font\\ -\\ Circular/CircularStd-Book.otf") format("opentype");
}

@font-face {
  font-family: CircularStd-Medium;
  src: url("../Font\\ -\\ Circular/CircularStd-Medium.otf") format("opentype");
}

@font-face {
  font-family: CircularStd-Bold;
  font-weight: 900;
  src: url("../Font\\ -\\ Circular/CircularStd-Bold.otf") format("opentype");
}

.wrapper {
  max-width: 840px;
  margin: 0 auto;
  font-family: CircularStd-Medium, sans-serif;
}

span.domain {
  color: var(--primary-licorice);
}

h2 {
  font-size: 36px;
  font-style: normal;
  margin-bottom: 24px;
  font-family: CircularStd-Bold, sans-serif;
}

input {
  flex-grow: 1;
  font-size: 20px;
  border: none;
  height: 76px;
  border-radius: 4px;
  width: 100%;
}

input:focus {
  outline: none;
  border-bottom: 2px solid var(--gray);
}

button {
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
  outline: none;
}

.input-group {
  flex-wrap: nowrap;
}

.search-button-wrapper {
  width: 76px;
  height: 76px;
  padding: 12px;
  background-color: var(--white);
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
}

.search-button-wrapper button {
  height: 100%;
  width: 100%;
}

.input-group button {
  background: var(--primary-purple);
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--white);
}

.input-group button img {
  width: 20px;
}

.redirection {
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  background: var(--primary-purple);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--white);
  height: 56px;
  min-width: 120px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.domain-container button {
  font-family: "CircularStd-Bold", sans-serif;
  color: var(--primary-purple);
  border: 0.1rem solid var(--primary-purple);
  border-radius: 4px;
  background: transparent;
  width: 180px;
  min-width: 120px;
  margin-left: 0;
  margin-top: 20px;
}

.domain-container .redirection {
  background-color: var(--primary-purple);
  color: var(--white);
}

.domain-container button.loading:disabled svg {
  fill: var(--primary-purple);
  animation: 0.8s linear 0s infinite normal none running spin;
}

.domain-container button:disabled {
  color: var(--shades-purple-100);
  border-color: var(--shades-purple-100);
  cursor: not-allowed;
}

.domain-container button:disabled svg {
  fill: var(--shades-purple-100);
}

.domain-container button svg {
  width: 20px;
  min-width: 16px;
}

.domain-container .domain {
  font-size: 16px;
  word-break: break-word;
}

.domain-container .bundle {
  font-size: 16px;
  word-break: break-word;
  color: var(--primary-purple);
}

.featurecheckmark {
  margin-right: 12px;
}

.featuressection .featureitem {
  background: var(--clay-100);
  border-radius: 4px;
  border-color: var(--primary-clay);
  border-width: 1px;
  border-style: solid;
  padding: 20px 10px;
}

.featureitem p {
  font-size: 14px;
  font-family: "CircularStd-Book", sans-serif;
}

.domain-header {
  border-radius: 10px;
  padding: 20px 30px;
}

.domain-header p {
  font-size: 14px;
  font-family: "CircularStd-Book", sans-serif;
}

.webhostingsection {
  border-radius: 10px 10px 0px 0px;
  padding: 20px 30px;
}

.webhostingsection p {
  font-size: 14px;
  font-family: "CircularStd-Book", sans-serif;
}

.available-badge {
  background: var(--primary-purple);
  color: var(--white);
  font-size: 14px;
  height: 24px;
  border-radius: 12px;
  font-family: "CircularStd-Book", sans-serif;
  padding: 0px 10px 0px 10px;
}

.discount-badge {
  background: var(--white);
  color: var(--primary-purple);
  font-size: 14px;
  height: 24px;
  border-radius: 12px;
  font-family: "CircularStd-Book", sans-serif;
  padding: 0px 10px 0px 10px;
}

.search-button.loading svg {
  animation: spin 1s linear infinite;
}

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

@media screen and (min-width: 768px) {
    .domain-container .domain {
      font-size: 22px;
    }
    .domain-container .bundle {
      font-size: 15px;
    }
  }
  
  @media screen and (min-width: 576px) {
    .domain-container {
      flex-direction: row;
      align-items: center;
    }
    .domain-container button {
      margin-top: 0;
      margin-left: 10px;
    }
    h2 {
      font-size: 42px;
    }
    input {
      height: 94px;
    }
    .search-button-wrapper {
      width: 94px;
      height: 94px;
    }
  }
  
  @media screen and (max-width: 575.98px) {
    .domain-header {
      padding: 10px;
    }
    .domain-header h4 {
      font-size: 18px;
    }
    .domain-container {
      flex-direction: column;
      padding: 10px !important;
    }
    .webhostingsection {
      padding: 10px;
    }
    .card-body {
      max-width: 100%;
    }
    .discount-badge {
      display: none;
    }
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }