/*region button*/

.pim_button {
  position: relative;
  background-color: #9E82C7;
  width: 310px;
  height: 87px;
  padding: 0;
  border: 1px solid #9E82C7;
  border-radius: 12px;
  text-align: left;

  display: inline-block;
  cursor: pointer;
  user-select: none;
  font-family: 'Source Sans Pro', sans-serif;
  overflow: hidden;
}

.pim_button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.pim_button:hover {
  filter: brightness(1.05);
}

.pim_button:active {
  transform: scale(0.98);
}

.pim-top-left {
  position: absolute;
  top: 10px;
  left: 13px;
  right: 120px; /* prevent overlap with logo */
  font-size: 14px;
  line-height: 1.3;
  color: white;
  font-weight: 100;
}

.pim-top-left span {
  font-size: 16px;
  font-weight: 900;
}

.pim-bottom-left {
  position: absolute;
  bottom: 12px;
  left: 13px;
  font-size: 11px;
  color: white;
  text-decoration: underline;
  line-height: 1;
}

.pim-bottom-right {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
}
/*endregion*/

/*region grid for the display for cost of good, deposit and per instalment*/
.pim-item1 { grid-area: ttl; align-self: center;  align-items: center; text-align: center; align-content: center; margin: auto;}
.pim-item2 { grid-area: per; align-self: center;  align-items: center;text-align: center; align-content: center; margin: auto}


.pim-grid-container{
  display: grid;
  grid-template-areas:
    'ttl per';
  gap: 5px;
  -ms-layout-grid-line: 1px;
  /*padding: 20px;*/
  align-items: center;
  align-content: center;
  align-self: center;
   text-align: center;
}


.pim-info-box{
  background-color:#9E82C7;
  border-radius: 7px;
  border:1px solid #9E82C7;
  width: 120px;
  height:35px;
  padding:2px;
  color:white;
  font-size:26px;
  align-self: center;
  align-items: center;
  text-align: center;
  margin: auto;
}

/*endregion*/


/* Modal Header */
.pim-modal {
  visibility: visible;
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index:9999; /* Sit on top */
  /*left: 0;*/
  opacity: 100%;
  top: 20px;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  margin:auto;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.pim-modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.pim-close {
  color: white;
  float: right;
  font-size: 28px;
  margin-top:-10px;
  margin-right:7px;
  font-weight: bold;
}

.pim-close:hover,
.pim-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.pim-slidecontainer {
  width: 100%; /* Width of the outside container */
  padding-top: 0;
  padding-bottom: 13px;
  line-height: 10px;
}

/* The slider itself */
.pim-slidecontainer .pim-slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 90%; /* Full-width */
  height: 2px; /* Specified height */
  background: dimgray; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
  align-self: end;
  overflow-x: initial;
}

/* Mouse-over effects */
.pim-slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.pim-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 18px; /* Set a specific slider handle width */
  height: 18px; /* Slider handle height */
   border-radius: 50%;
  background: #9E82C7; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.pim-slider::-moz-range-thumb {
  width: 18px; /* Set a specific slider handle width */
  height: 18px; /* Slider handle height */
   border-radius: 50%;
  background: #9E82C7; /* Green background */
  cursor: pointer; /* Cursor on hover */
}





/* Tooltip container */
.pim-tooltip {
  position: relative;
  display: inline-block;
  /*border-bottom: 1px dotted black; !* If you want dots under the hoverable text *!*/
}

/* Tooltip text */
.pim-tooltip .pim-tooltiptext {
  visibility: hidden;
  width: 240px;
  background-color: #9E82C7;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  left: 5px;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.pim-tooltip:hover .pim-tooltiptext {
  visibility: visible;
}

