﻿
#search_wrapper {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}
gmp-place-autocomplete::part(focus-ring) {
  border: none !important;
  opacity: 0 !important;
}
.clear-button {
    display: none !important;
}
gmp-place-autocomplete::part(prediction-item-icon){
    opacity: 0 !important;
    display: none !important;
}
gmp-place-autocomplete {
    background-color: var(--color_input);
    color: var(--color_base);
    font-size: var(--font_body);
    font-family: var(--font_family);
    font-weight: var(--font_regular);
    border-radius: var(--base_unit);
    height: var(--element_height);
    xline-height: var(--element_height);
    border: none;
}
gmp-place-autocomplete::part(prediction-list) {
    border-radius: 8px;
    box-shadow: none;
    border: none;
    margin-top: -16px;
    padding-top: 16px;
}
gmp-place-autocomplete::part(prediction-item) {
    padding: 0 16px;
    border: none;
    border-top: solid 1px var(--color_border);
}
gmp-place-autocomplete::part(prediction-list) li:last-child {
  border-bottom: solid 1px var(--color_border);
}
gmp-place-autocomplete::part(prediction-item-main-text){
    font-family: var(--font_family);
    font-weight: var(--font_regular);
    color: var(--color_base);
    margin-bottom: 2px;
}
gmp-place-autocomplete::part(prediction-item-secondary-text){
    font-family: var(--font_family);
    font-weight: var(--font_regular);
    color: var(--color_base_secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    display: block;
}
gmp-place-autocomplete::part(prediction-item):hover {
    background-color: var(--color_border);
    cursor: pointer;
}
#search {
    padding-left: 44px;
}
#map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pills {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0 0 16px;
    gap: 4px;
}

.pills div {
    width: stretch;
    padding: 0;
    text-align: center;
    font-size: 14px;
}

.pills div::before {
    content: attr(data-label-s);
}
.weekend {
    filter: brightness(0.9);
}

.discount_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
}
.discount_wrapper input {
    padding: 0 16px 0 40px;
}
.discount_percentage,
.discount_money  {
    /*width: stretch;*/
    position: relative;
}
.discount_percentage::before {
    pointer-events: none;
    content:'%';
    position: absolute;
    line-height: 48px;
    margin-left: 16px;
}
.discount_money::before{
    pointer-events: none;
    content:'kr';
    position: absolute;
    line-height: 48px;
    margin-left: 16px;
}

#rule_percentage {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; /* Or set a specific width like 300px */
  height: 8px;
  background: var(--color_input); /* Change to your preferred track background color */
  border-radius: 8px;
  outline: none;
  padding: 0;
  margin: 16px 0 24px;
    background: linear-gradient(
    to right, 
    #000 0% calc((var(--val) - 15) / 85 * 100%), 
    #e0e0e0 calc((var(--val) - 15) / 85 * 100%) 100%
    );
}

/* Chrome, Safari, Edge, Opera thumb */
#rule_percentage::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background-color: var(--color_brand);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

/* Firefox thumb */
#rule_percentage::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background-color: var(--color_brand);
  border-radius: 50%;
  border: none; /* Removes default Firefox border */
  cursor: pointer;
}

.slider_label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
.slider_value {
    text-align: right;
}

@media all and (min-width:450px) {
    gmp-place-autocomplete::part(prediction-list) {
        background-color: var(--color_input);
    }
    .pills {
        gap: 8px;
    }
    .pills div {
        padding: 0 4px;
        font-size: 15px;
    }
    .pills div::before {
        content: attr(data-label-l);
    }
    .button {
        margin-top: 8px;
    }
}
/* Rules page: the business the rules are for, and the tips. */
.rules_business {
    margin: -16px 0 24px;
}

.rules_business_name {
    font-weight: var(--font_bold);
}

.rules_business_address {
    color: var(--color_base_secondary);
    font-size: var(--font_mini);
}

.rules_tips {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* "Looking up your business to suggest what to offer…" on the Rules step. */
.rules_suggestions {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color_brandsecondary);
    font-size: var(--font_mini);
}

.rules_hint {
    margin: 6px 0 16px;
    font-size: var(--font_mini);
    color: var(--color_base_secondary);
}

/* Why a rule was suggested, under its label (Rules.cshtml.cs, Why). */
.rules_reason {
    margin: 0 0 8px;
    font-size: var(--font_mini);
    color: var(--color_base_secondary);
}

.rules_hint.rules_hint_error {
    color: #d32f2f;
}
