:root {
    --field-border: 1px solid #eeeeee;
    --danger-color: #e61f1f;
    --accent-color: #2962ff;
    --sidebar-color: #f1f1f1;
    --secondary-text: #aaaaaa;
    --radius-sm: 0.25em;
    --radius-md: 0.5em;
  }
  
  .black-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
  }
  
  #paymentScreen {
    z-index: 99999;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
  }
  
  #paymentScreen.show {
    display: flex;
  }
  
  #paymentScreen .close-btn {
    position: absolute;
    right: 1rem;
    top: 0;
    padding: 1rem 1.2rem;
    box-shadow: -1px 2px 8px 0px rgb(120 120 120);
    border-radius: 0 0 1rem 1rem;
    transition: background-color 0.25s ease-in-out;
    background: #ef5350;
    color: white;
    border: 1px dashed white;
    border-top: 0;
    cursor: pointer;
  }
  
  #paymentScreen .popup {
    position: relative;
    width: 50em;
    height: 38em;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 3rem;
    gap: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow-float);
    transition: all 1s ease;
    scale: 0;
  }
  
  #paymentScreen .popup.show {
    scale: 1;
  }
  
  /*-------------------Header---------------------*/
  
  .card-header {
    background: none;
    padding: 0;
    border: none;
  }
  #paymentScreen .paymentIcon {
    width: 5rem;
    margin: auto;
  }
  #paymentScreen .paymentIcon img {
    width: 100%;
    /* box-shadow: var(--box-shadow-float); */
    border-radius: 50%;
  }
  .card-header .title {
    font-size: 1.2em;
  }
  .card-header .title span {
    font-weight: 300;
  }
  
  /*-------------------Sidebar---------------------*/
  
  .sidebar {
    padding-top: 5em;
  }
  
  /*-------------------Main---------------------*/
  
  #paymentItems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .paymentItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
  }
  
  .card-data {
    padding: 2rem 0;
    overflow: auto;
    padding-right: 1rem;
  }
  
  .card-data > div {
    margin-bottom: 1.5em;
  }
  
  .card-data > div:last-child {
    margin-bottom: 0;
  }
  
  .card-item-title {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    width: 20rem;
  }
  .card-item-title strong {
    font-size: 0.85em;
  }
  .card-item-title span {
    color: gray;
    font-weight: 700;
    font-size: 0.85em;
  }
  .card-item-value {
    display: flex;
    gap: 1rem;
  }
  
  /*----------Card Data Scroller----------*/
  
  #paymentScreen .card-data::-webkit-scrollbar {
    width: 1rem;
  }
  
  /* Track */
  
  #paymentScreen .card-data::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5rem;
  }
  
  /* Handle */
  
  #paymentScreen .card-data::-webkit-scrollbar-thumb {
    background: rgb(200, 199, 199);
    border-radius: 5rem;
  }
  
  /* Handle on hover */
  
  #paymentScreen .card-data::-webkit-scrollbar-thumb:hover {
    background: rgb(200, 199, 199);
  }
  
  
  /*----------Input----------*/
  
  .input-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 4rem;
    border: var(--field-border);
    border-radius: var(--radius-md);
    gap: 1rem;
    padding: 0 1rem;
    transition: all 0.3s ease;
  }
  .input-container input,
  .input-container i {
    line-height: 1;
  }
  .input-container label {
    position: absolute;
    top: -1.85rem;
    left: 0;
    font-size: 1.2rem;
    color: var(--accent-color);
  }
  .input-container input {
    flex: 1 1;
    height: 100%;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85em;
  }
  .input-container select {
    flex: 1 1;
    height: 100%;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85em;
  }
  .input-container:has(input:focus) {
    border: 1px solid var(--accent-color);
    outline: none;
  }
  .input-container:has(select:focus) {
    border: 1px solid var(--accent-color);
  }
  .input-container select:focus {
    outline: none;
  }
  .input-container input::placeholder {
    color: rgb(202, 202, 202);
  }
  .input-container i {
    font-size: 1.2rem;
  }
  
  .input-container:has(input.error), .input-container:has(select.error) {
    border: 1px solid var(--danger-color) !important;
  }
  
  .payment-cheque-el {
      display: none;
  }
  .payment-cheque-el.show {
      display: flex;
  }
  #paymentScreen .input-container:has(input[name=paid]) {
    border: 2px solid var(--color-success);
  }
  
  /*----------Action Btn----------*/
  
  .action-left {
  }
  
  .action button {
    padding: 0.8em 1.1em;
    width: 100%;
    font-weight: 600;
    font-size: 1em;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease-in-out;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }
  .action button i {
    top: 0.1rem;
    position: relative;
  }
  .action button:hover {
    background: #2979ff;
    color: white;
  }
  
  .purchase-section {
    position: relative;
    overflow: visible;
    padding: 0 1em 1em 1em;
    background: var(--sidebar-color);
    border-top-left-radius: 0.8em;
    border-top-right-radius: 0.8em;
  }
  .purchase-section:before {
    content: "";
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    left: -0.8em;
    bottom: -0.8em;
    background: #ffffff;
  }
  .purchase-section:after {
    content: "";
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    right: -0.8em;
    bottom: -0.8em;
    background: #ffffff;
  }
  
  .card-mockup {
    position: relative;
    margin: -5em 1em 0.5em 1em;
    padding: 1em 1.2em;
    height: auto;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 0.5em 1em 0.125em rgba(0, 0, 0, 0.1);
  }
  .card-mockup:after {
    content: "";
    position: absolute;
    width: 25%;
    top: -0.2em;
    left: 37.5%;
    height: 0.2em;
    background: var(--accent-color);
    border-top-left-radius: 0.2em;
    border-top-right-radius: 0.2em;
  }
  .card-mockup:before {
    content: "";
    position: absolute;
    top: 0;
    width: 25%;
    left: 37.5%;
    height: 0.5em;
    background: #2962ff36;
    border-bottom-left-radius: 0.2em;
    border-bottom-right-radius: 0.2em;
    box-shadow: 0 2px 15px 5px #2962ff4d;
  }
  
  .purchase-props {
    margin: 0;
    padding: 0;
    font-size: 0.8em;
    width: 100%;
  }
  .purchase-props li {
    width: 100%;
    line-height: 2.5;
  }
  .purchase-props li span {
    color: var(--secondary-text);
    font-weight: 600;
  }
  
  .separation-line {
    border-top: 1px dashed #aaa;
    margin: 0 0.8em;
  }
  
  .total-section {
    position: relative;
    overflow: hidden;
  
    padding: 1em;
    background: var(--sidebar-color);
    border-bottom-left-radius: 0.8em;
    border-bottom-right-radius: 0.8em;
  }
  .total-section:before {
    content: "";
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    left: -0.8em;
    top: -0.8em;
    background: #ffffff;
  }
  .total-section:after {
    content: "";
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    right: -0.8em;
    top: -0.8em;
    background: #ffffff;
  }
  .total-label {
    font-size: 0.8em;
    padding-bottom: 0.5em;
  }
  .total-section strong {
    /* font-size: 1.5em; */
    font-weight: 800;
  }
  .total-section small {
    font-weight: 600;
  }
  
  /*-----------Extra-------------*/
  
  .flex {
    display: flex;
  }
  .flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .flex-fill {
    display: flex;
    flex: 1 1;
  }
  .flex-vertical {
    display: flex;
    flex-direction: column;
  }
  .flex-vertical-center {
    display: flex;
    align-items: center;
  }
  .flex-between {
    display: flex;
    justify-content: space-between;
  }
  .flex-gap-1 {
    gap: 1rem;
  }
  .flex-gap-2 {
    gap: 2rem;
  }
  .p-sm {
    padding: 0.5em;
  }
  .pl-sm {
    padding-left: 0.5em;
  }
  .pr-sm {
    padding-right: 0.5em;
  }
  .pb-sm {
    padding-bottom: 0.5em;
  }
  .p-md {
    padding: 1em;
  }
  .pb-md {
    padding-bottom: 1em;
  }
  .p-lg {
    padding: 2em;
  }
  .m-md {
    margin: 1em;
  }
  .size-md {
    font-size: 0.85em;
  }
  .size-lg {
    font-size: 1.5em;
  }
  .size-xl {
    font-size: 2em;
  }
  .half-width {
    width: 50%;
  }
  .pointer {
    cursor: pointer;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
  }
  
  .f-main-color {
    color: #2962ff;
  }
  .f-secondary-color {
    color: var(--secondary-text);
  }
  .b-main-color {
    background: var(--accent-color);
  }
  .numbers::-webkit-outer-spin-button,
  .numbers::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  