@import url('../../../commons/blocks/services/service-cost-calculator/service-cost-calculator.css');

.section.service-cost-calculator-container {
  margin-bottom: 0;
  .service-cost-calculator {
    padding-top: 1.25rem;
    padding-bottom: 3.25rem;
    background-color: var(--tertiary-white);

    &::after {
      background: none;
    }
    .service-toast {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      background: var(--primary-blue-75);
      padding: 12px;
      margin: 0 0 16px 0;
      font-family: var(--body-font-arena);
      padding: var(--space-8px) var(--space-16px);
      @media (width>=1024px) {
        align-items: center;
      }
      .service-toast-message {
        p {
          line-height: normal;
          color: var(--primary-blue-700);
          font-weight: var(--fw-400);
          font-size: var(--body-font-size-xxxs);
          @media (width>=1024px) {
            font-size: var(--body-font-size-xxs);
          }
        }
        strong {
          font-weight: var(--fw-500);
          @media (width>=1024px) {
            font-weight: var(--fw-600);
          }
        }
      }
    }
    .service-toast.hidden {
      display: none;
    }
    .service-toast .icon-close {
      background: url('/icons/close_black.svg') no-repeat;
      border: none;
      cursor: pointer;
      width: 16px;
      height: 16px;
      background-size: 16px;
      @media (width>=1024px) {
        width: 24px;
        height: 24px;
        background-size: 24px;
      }
    }

    p {
      letter-spacing: normal;
      font-feature-settings:
        'liga' off,
        'clig' off;
      font-size: var(--body-font-size-xs);
      line-height: 2rem;
      color: var(--primary-black);
      font-family: var(--body-font-arena);
    }

    .service-wrapper {
      gap: 0.75rem;

      @media (width>=1024px) {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
      }

      .service-title {
        :is(h1, h2, h3, h4, h5, h6) {
          color: var(--neutrals-headings);
          font-family: var(--body-font-arena);
          font-size: var(--heading-font-15-mob-sub-heading);
          font-feature-settings:
            'liga' off,
            'clig' off;
          line-height: 1.75rem;
          letter-spacing: normal;

          @media (width>=1024px) {
            font-size: var(--heading-font-size-l);
            line-height: 2.375rem;
          }
        }
      }

      .service-description {
        p {
          color: var(--neutrals-sub-texts-paragraphs);
          font-size: var(--body-font-size-xxxs);
          font-family: var(--body-font-arena);
          font-feature-settings:
            'liga' off,
            'clig' off;
          line-height: normal;
          letter-spacing: normal;

          @media (width>=1024px) {
            font-size: var(--body-font-size-xxs);
            line-height: 1.25rem;
          }
        }
        margin-bottom: 1.5rem;
        @media (width>=1024px) {
          margin-bottom: 0;
        }
      }
    }

    .service-info {
      .service-vehicle-info {
        background: var(--tertiary-white);
        padding: 1.25rem 0.625rem;

        @media (width>=1024px) {
          padding-left: 0;
          padding-right: 1.563rem;
        }
        .service-model,
        .service-location {
          .service-model-title {
            margin-bottom: 0.5rem;

            @media (width>=1024px) {
              margin-bottom: 1rem;
            }
          }

          .service-location-title {
            margin-bottom: 0.5rem;

            @media (width>=1024px) {
              margin-bottom: 1rem;
            }
          }

          .custom-dropdown-wrapper {
            .model-dropdown-div {
              margin-bottom: 1.25rem;

              @media (width>=1024px) {
                margin-bottom: 0;
              }
            }

            .fuel-dropdown-div {
              margin-bottom: 2rem;

              @media (width>=1024px) {
                margin-bottom: 0;
              }
            }

            .state-dropdown-div {
              margin-bottom: 1.25rem;

              @media (width>=1024px) {
                margin-bottom: 0;
              }
            }
          }
        }
      }

      .custom-dropdown {
        padding: 0;
        border-bottom: 0.5px solid var(--light-grey-shade-6);
      }
      .custom-dropdown.open {
        .dropdown-options {
          display: flex;
          flex-direction: column;
          position: absolute;
          width: 100%;
          box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
        }
      }

      .custom-dropdown-label {
        align-items: center;
        min-height: 2rem;
        padding: 0;
        color: var(--inactive-content);
        font-feature-settings:
          'liga' off,
          'clig' off;
        font-family: var(--body-font-arena);
        font-size: var(--body-font-size-xxs);
        font-style: normal;
        font-weight: var(--fw-500);
        line-height: 2rem;

        &[data-value] {
          color: var(--primary-black);
        }

        @media (width>=1024px) {
          font-size: var(--body-font-size-xs);
          padding-right: 2rem;
        }
      }

      .dropdown-options {
        li {
          padding: var(--space-15px) 0 var(--space-15px) var(--space-4px);
          color: var(--neutrals-sub-texts-paragraphs);
          font-size: var(--body-font-size-xxxs);
          font-feature-settings:
            'liga' off,
            'clig' off;
          font-weight: var(--fw-400);

          @media (width>=1024px) {
            padding: var(--space-12px) 0 var(--space-12px) var(--space-8px);
            font-size: var(--body-font-size-xxs);
          }

          .custom-radio {
            margin-right: var(--space-8px);
            border-radius: 0;
            border: 0.667px solid var(--bars-unselected);
          }
        }
        li.selected {
          color: var(--primary-blue-700);
          font-weight: var(--fw-600);

          .custom-radio {
            border: 0.667px solid var(--bars-unselected);
            input[type='radio'] {
              border-radius: 0;
              width: 0.75rem;
              height: 0.75rem;
              top: 1.2rem;
              left: 0.38rem;
              background-color: var(--primary-blue-700);

              @media (width>=1024px) {
                top: 1rem;
                left: 0.62rem;
              }
            }
          }
        }
      }

      .service-maintenance-info {
        padding: 1.5rem 1rem 2rem 1rem;
        background: var(--gradients-accent-section-bg-1);

        @media (width>=1024px) {
          padding: 1.5rem 2.375rem 2.313rem 1.438rem;
        }
        .service-type {
          .service-type-title, .dealer-type-title {
            font-size: var(--body-font-size-xxs);
            margin-bottom: 0.5rem;

            @media (width>=1024px) {
              margin-bottom: var(--space-14px);
            }

            @media (width>=1024px) {
              font-size: var(--body-font-size-xs);
            }
          }
          .dealer-type-title {
            margin-bottom: 8px;
            @media (width>=1024px) {
              margin-bottom: 14px;
            }
          }
          .service-dropdown-div {
            margin-bottom: 1.75rem;

            @media (width>=1024px) {
              margin-bottom: var(--space-16px);
            }

            .service-options {
              input,
              label {
                display: block;
              }

              .selected::after {
                content: none;
                display: none;
              }

              li {
                color: var(--neutrals-headings);
                font-weight: var(--fw-400);
              }
            }
          }
        }

        .service-vehicle-status {
          margin-bottom: 2.625rem;

          @media (width>=1024px) {
            margin-bottom: 2.313rem;
            gap: 1.5rem;
          }
          .service-meter-reading {
            margin-bottom: 1.5rem;

            @media (width>=1024px) {
              margin-bottom: 0;
            }

            .service-meter-reading-title {
              font-size: var(--body-font-size-xxs);
              line-height: 1.25rem;
              margin-bottom: 1.375rem;

              @media (width>=1024px) {
                font-size: var(--body-font-size-xs);
                margin-bottom: var(--space-14px);
              }
            }
          }

          .input-container {
            align-items: center;
            border-bottom: 0.5px solid var(--light-grey-shade-6);
            padding: 0;

            @media (width>=1024px) {
              width: auto;
            }
            .dec-btn,
            .inc-btn {
              background-color: var(--gradients-accent-section-bg-1);
            }
            .input-field {
              min-height: 2rem;
              background-color: var(--gradients-accent-section-bg-1);
              color: var(--inactive-content);
              font-size: var(--body-font-size-xxs);
              font-style: normal;
              font-weight: var(--fw-500);
              line-height: 2rem;
              font-feature-settings:
                'liga' off,
                'clig' off;
              font-family: var(--body-font-arena);
            }

            .input-field.non-zero {
              color: var(--neutrals-sub-texts-paragraphs);
            }
          }

          .service-vehicle-age {
            .service-vehicle-age-title {
              font-size: var(--body-font-size-xxs);
              line-height: 1.25rem;
              margin-bottom: 1rem;

              @media (width>=1024px) {
                font-size: var(--body-font-size-xs);
                margin-bottom: var(--space-14px);
              }
            }
          }
        }
        .service-calculate-btn {
          width: 35.5%;
          border: 1px solid var(--primary-blue-700);
          color: var(--primary-blue-700);
          background-color: var(--gradients-accent-section-bg-1);
          line-height: 1.125rem;

          @media (width>=1024px) {
            width: auto;
            padding: var(--space-12px) 1.5rem;
          }

          &:disabled {
            opacity: 0.5;
            border: 1px solid var(--primary-blue-700);
            color: var(--primary-blue-700);
            background-color: var(--gradients-accent-section-bg-1);
          }
        }
      }
    }
  }
  .car-list__items-selected {
    padding-right: 1.5rem;
  }
  .hidden {
    display: none;
  }
  .car-list__radio {
    input[type='radio'] {
      border-radius: 0;
      border: 0.667px solid var(--bars-unselected);
      &:checked::before {
        border-radius: 0;
        background-color: var(--primary-blue-700);
      }
    }
  }
}
