@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

.parley-calculator-block {
  --bg-main: #e7eaf0;
  --bg-secondary: #e8f3ff;
  --bg-input: #ffffff;
  --bg-switch: #eff2f6;
  --bg-tabbar: #0a234f;
  --text-title: #010814;
  --text-subtitle: #0f1e38;
  --text-body: #233550;
  --text-deposit-btn: #050e28;
  --text-light: #b8cbec;
  --main-color: #b6de13;
  --secondary-color: #dbe5ff;
  --loss-color: #fc447e;
  --secondary-hover: #cfdaf6;
  --main-hover: #aec32c;
  --text-link: #95a803;
  --icon-main: #4076d4;
  --border-default: rgba(71, 84, 114, 0.1);
  --shadow: hsla(217, 6%, 60%, 0.2);

  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--bg-input);
  color: #e8e8e8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.parley-calculator-block,
.parley-calculator-block * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.parley-calculator-block a {
  color: inherit;
  text-decoration: none;
}

.parley-calculator-block button {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  cursor: pointer;
}

.parley-calculator-block input {
  border: none;
}

.parley-calculator-block .combined-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--border-default);
}

.parley-calculator-block .add {
  width: 100%;
  height: 60px;
  border: 1px dashed var(--icon-main);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--icon-main);
  font-weight: 600;
  cursor: pointer;
}

.parley-calculator-block .add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.parley-calculator-block .selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-title);
}

.parley-calculator-block .selection-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.parley-calculator-block .selection-number {
  width: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: -0.15px;
}

.parley-calculator-block .status-select {
  position: relative;
  flex: 0 0 auto;
}

.parley-calculator-block .status-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #010814;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.parley-calculator-block .status-button > span:last-child {
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23010814' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

.parley-calculator-block .status-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: calc(50% - 50px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 100px;
  padding: 6px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-input);
  box-shadow: 0 8px 24px var(--shadow);
}

.parley-calculator-block .status-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #010814;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s ease;
}

.parley-calculator-block .status-option:hover,
.parley-calculator-block .status-option[aria-selected="true"] {
  background: var(--bg-main);
  transition: 0.3s ease;
}

.parley-calculator-block .odds-input {
  width: 80px;
  height: 30px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  text-align: center;
}

.parley-calculator-block .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.parley-calculator-block .remove svg {
  display: block;
  width: 24px;
  height: 24px;
}

.parley-calculator-block .remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.parley-calculator-block .remove:hover {
  scale: 1.05;
  transition: 0.3s;
}

.parley-calculator-block .section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.parley-calculator-block .stake-wrapper {
  width: 100%;
}

.parley-calculator-block .input-wrap {
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-input);
}

.parley-calculator-block .stake-label {
  margin-bottom: 4px;
  color: var(--text-body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.parley-calculator-block .stake-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-title);
  font-size: 16px;
  font-weight: 600;
}

.parley-calculator-block .quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.parley-calculator-block .quick-btn {
  height: 30px;
  border: 0;
  border-radius: 16px;
  background: var(--bg-switch);
  color: var(--text-title);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.parley-calculator-block .quick-btn-active {
  background: var(--bg-secondary);
}

.parley-calculator-block .button-wrapper {
  border-bottom: 1px solid var(--border-default);
}

.parley-calculator-block .button {
  display: inline-block;
  width: 100%;
  margin-bottom: 3.2vw;
  padding: 3.2vw 0;
  border-radius: 2.1vw;
  background-color: rgba(0, 92, 255, 1);
  font-family: "SF Pro Display", sans-serif;
  font-size: 4vw;
  font-weight: 500;
  line-height: 100%;
  text-align: center;
  text-transform: uppercase;
  text-wrap: nowrap;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.parley-calculator-block .button:hover {
  background-color: rgba(0, 70, 200, 1);
}

.parley-calculator-block .results {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  width: 100vw;
  padding: 14px 16px;
  border: 5px solid var(--text-light);
  background: var(--bg-tabbar);
}

.parley-calculator-block .column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.parley-calculator-block .column span {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
}

.parley-calculator-block .column strong {
  color: var(--bg-input);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.parley-calculator-block .column small {
  width: fit-content;
  color: var(--bg-input);
  font-size: 12px;
}

.parley-calculator-block .profit-win,
.parley-calculator-block .profit-loss {
  position: relative;
  font-weight: 600;
}

.parley-calculator-block .profit-win::after,
.parley-calculator-block .profit-loss::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
}

.parley-calculator-block .profit-win::after {
  background: var(--main-color);
}

.parley-calculator-block .profit-loss::after {
  background: var(--loss-color);
}

@media (min-width: 1000px) {
  .parley-calculator-block .button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .parley-calculator-block .button {
    width: fit-content;
    margin-bottom: 0.8vw;
    padding: 0.6vw 1.7vw;
    border-radius: 0.4vw;
    font-size: 1.1vw;
  }
}

@media (min-width: 1280px) {
  .parley-calculator-block .results {
    position: static;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-input);
  }

  .parley-calculator-block .column span,
  .parley-calculator-block .column small {
    color: var(--text-body);
  }

  .parley-calculator-block .column strong {
    color: var(--text-title);
  }
}
