
/* Variables */

:root {
    --primary-color: ;
    --secondary-color: 191, 191, 16;
    --secondary-color: 19, 57, 81;
    --black: #4f4f4c;
    --dark-gray:#6b6a68;
    --medium-gray:#999;
    --light-gray:#ddd;
    --bright-light-gray:#e2e1db;
    --bright-light-gray-hover:#dddcd8;
    --white:#fff;
    --ap-white:#F8F9F4;
    --ap-beige:#F4F2EC;
    --ap-blue:#003B5C;
    --ap-green:#BFBF10;
    --ap-gray:#333333;
}

/* Global */

.ap-product-selector {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
}

.ap-product-selector h3,
.ap-product-selector h4 {
   margin: 0;
   font-size: 20px;
   font-family: 'Open Sans', sans-serif;
   font-weight: normal;
}


.ap-product-selector h4 {
   text-transform: uppercase;
   font-size: 17px;
}

.ap-product-selector h5,
.ap-product-selector .h5 {
   margin: 0;
   font-size: 0.6em;
   font-weight: normal;
   text-transform: uppercase;
}

label.h5 {
   font-size: 13px !important;
   margin-bottom: 5px;
}

/* Front page form */

.ap-product-selector-form div {
    margin-bottom: 1em;  
}

.ap-product-selector-form .ap-product-selector-form-title {
    margin-bottom:1em
}

.ap-product-selector-form div {
    margin-bottom: 1em;
    
}

.ap-product-selector-form label {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.4em;
} 

.ap-product-selector-form select {
    position: relative;
    cursor: pointer;
    background: var(--ap-white) !important;
    border: 1px solid var(--light-gray);
    border: 1px solid var(--ap-white);
    outline: 0;
    padding: 0.4em 0.6em;
    padding-right: 3rem;
    width: 100%;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
}

.ap-product-selector-form select:focus {
    outline:0;
    border:1px solid var(--ap-green) !important;
}

.ap-product-selector-form  select option[disabled] { 
    color: var(--medium-gray); 
 }

 .ap-product-selector-form  select option.ap-empty-option { 
    color: var(--medium-gray); 
 }

 .ap-selector-wrapper {
    position: relative;
 }
 .ap-selector-wrapper > span{
    position: absolute;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    top: 50% !important;
    transform: translateY(-50%);
 }

 /* Product selector form addon */
 .ap-product-addon-form {
    margin-top: 2rem;
 }

 /* Product selector result */

 .ap-product-selector-result-wrapper {
     margin-top: 2rem;
 }

 .ap-selected-product-result-title {
   margin-bottom: 1em;
}

 .ap-product-selector-result {
    position: relative;
     background: var(--ap-white);
     border-radius: 4px
 }

 .ap-selector-action-buttons {
    display: none;
    gap: 0.25em;
      position: absolute;
      top: 0.5em;
      right: 0.5em;
      margin: 0!important;
 }

 .ap-selector-action-buttons.ap-selector-show {
    display: flex;
 }

 .ap-selector-action-buttons svg path {
    fill: var(--ap-gray);
 }

 .ap-selector-action-buttons button:hover svg path{
   fill: var(--white);
 }

 .ap-selector-action-buttons > button{
	 padding: 0;
 }

 span.ap-selector-alert {
    opacity: 0;
    white-space: nowrap;
    background-color: rgba(200,200,200,0.25);
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 10px;
    font-size: 0.8rem!important;
    font-weight: bold;
    box-sizing: border-box;
    height: 30px;
    transition: opacity 200ms;
 }
 span.ap-selector-alert.ap-selector-show {
    opacity: 1;
 }

 .ap-selector-action-buttons button{
    cursor: pointer;
   border: none;
   background-color: rgba(200,200,200,0.25);
   border-radius: 4px;
   width: 30px;
   height: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: 200ms;
}

.ap-selector-action-buttons button:hover{
   background-color: var(--ap-green);
}
.ap-selector-action-buttons button:active{
   background-color: rgba(10,10,10,0.15);
}

 .ap-product-selector-result div {
     margin: 1em;
 }

 .ap-product-extra-name {
    margin-bottom: 0 !important;
    padding-bottom: 1em;
 }

 .ap-product-selector-result label{
    display: block; 
    font-weight: bold;
     font-size: 1rem;
 }

 .ap-product-selector-result span{
    font-size: 1rem;
 }

  /* Placeholders  */
.ap-product-selector-result span + p  {
   display: none;
 } 
.ap-product-selector-result span:empty + p  {
   display: block;
 } 

 .ap-product-select-placeholder,
 .ap-product-add-on-select-placeholder {
   display: block;
   margin: 0;
   color: var(--medium-gray);
   font-size: 1rem;
 }

 /* Product Result img */

 .ap-product-selector-result .ap-product-img {
   border-bottom: none;
   display: block;
   padding: 0;
   padding-top: 2rem;
}

.ap-product-selector-result .ap-product-img p {
   margin: 0;
}

 .ap-product-selector-result img{
   max-width: 100%;
   height: auto;
   width: auto;
   display: block;
   margin: 0 auto;
   box-sizing: border-box;
}

.ap-product-img-default img {
   opacity: 0.6;
}

 /* Addon Result */
 .ap-product-addon-result-title {
   padding: 1.5em 1em 0;
   margin:0 0 1.5em !important;
   border-top: 3px solid var(--white);
}
.ap-product-addon-result-title h4 {
    font-size: 1.3rem;
 }

 .ap-product-addons-result-wrapper {
    margin-bottom: 0 !important;
 }

 @media screen and (min-width: 600px) {
   .ap-product-addons-result-wrapper {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
   }
   .ap-product-addons-result-wrapper > div {
      flex: 0 0 50%;
   }
 }

 .ap-product-addon-result{
   display: flex;
 }
 .ap-product-addon-result .ap-product-add-on-img:empty{
   flex: 0;
 }
 .ap-product-addon-result .ap-product-add-on-img{
   flex: 0 0 50%;
 }

 .ap-product-addon-result h5 {
   margin: 0;
 }

 .ap-product-addon-result,
 .ap-product-addon-result div {
    margin: 0 !important;
    flex: 1;
 }

 .ap-product-addon-result div {
    padding-bottom: 1em;
 }

 .ap-product-addon-result label {
   padding-right: 0.4em;
 }

 .ap-product-addon-result > div {
    display: flex;
    flex-direction: column;
    
 }
 .ap-product-addon-result-content > *{
   margin-bottom: 0.5rem;
 }
 .ap-product-addon-result-content .ap-product-add-on-name:empty{
   margin-bottom: 0;
 }
 .ap-product-addon-result .ap-product-addon-result-number-wrapper {
   display: flex;
 }
 .ap-product-addon-result .ap-product-addon-result-number-wrapper span,
 .ap-product-addon-result .ap-product-addon-result-number-wrapper p {
   background-color: #bfc00f2e;
   border-radius:2px ;
   padding: 1px 7px 0px ;
   height: fit-content;
 }
 .ap-product-addon-result .ap-product-addon-result-number-wrapper span:empty{
   padding: 0 !important;
 }

 .ap-product-addon-result-number-wrapper label{
   font-weight: 400;
 }

 .ap-copyable-wrapper .ap-copyable:not(:empty){
   cursor: pointer;
   position: relative;
 }

 .ap-copyable-wrapper .ap-copyable:not(:empty):hover:after {
   content: attr(data-text);
   position: absolute;
   top: 0;
   width: max-content;
   left: 100%;
   background: #003b5c;
   transform: translateY(-3px) translate(0);
   margin-left: 1rem;
   color: #f4f2ec;
   padding: 3px 8px;
   font-size: 1rem;
 }
 .ap-copyable-wrapper .ap-copyable:not(:empty):hover:before {
   position: absolute;
   content: " ";
   width: 15px;
   height: 15px;
   top: 0;
   left: 100%;
   background: #003b5c;
   margin-left: 1rem;
   transform: rotate(45deg) translateY(6px);
 }

 /* Clear section */
 .ap-clear-selections { 
     cursor: pointer;
     font-size: 0.9rem;
     color: var(--medium-gray);
     display: table;
     border-radius: 5px;
 }

 .ap-clear-selections:hover { 
    color: var(--ap-gray);
 }


 .ap-clear-selections .clear {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
    top: 2px;
    margin-right: 0.3em;
 }

 .ap-clear-selections .clear span {
    width: 1px;
    height: 100%;
    background-color: var(--medium-gray);
    display: block;
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
 }
 .ap-clear-selections .clear span:first-child {
    transform: rotate(45deg);
 }
 .ap-clear-selections .clear span:last-child {
    transform: rotate(-45deg);
 }
 
 .ap-clear-selections:hover .clear span { 
    background-color: var(--ap-gray);
 }

 .ap-clear-ap-config-selection {
   right: 2rem !important;
 }

 .ap-clear-ap-config-selection:before,
 .ap-clear-ap-config-selection:after {
    content: '';
    height: 0.85em;
    width: 2px;
    background-color: var(--medium-gray);
    display: block;
    transform: rotate(45deg);
    position: absolute;
    left: 7px;
    top: 2px;
 }

 .ap-clear-ap-config-selection:after {
    transform: rotate(-45deg);
 }

.ap-clear-ap-config-selection:hover:before,
.ap-clear-ap-config-selection:hover:after {
   background-color: var(--ap-gray);
}


 .ap-open-ap-config-selection {
     top: calc(50% - 5px) !important;
     right: 1.25rem !important;
     pointer-events: none;
 }

 .ap-open-ap-config-selection:before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid  var(--medium-gray);
    border-right: 2px solid  var(--medium-gray);
    display: block;
    transform: rotate(136deg);
    position: absolute;
    top: 3px;
    right: -4px;
 }


 select:focus ~ .ap-open-ap-config-selection:before {
    border-color: var(--ap-green);
 }
