@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .text-dark {
    @apply text-gray-800;
  }
  .textbox {
    @apply w-full p-2 px-3 border placeholder-gray-400 rounded-md mt-2 border-gray-300 disabled:text-gray-500 disabled:opacity-40 focus:border-[#ffe359] focus:outline-none;
  }
  .textbox-label {
    @apply text-dark text-sm;
  }
  .active-step {
    @apply bg-[#FCF0B4];
  }
  .done-step {
    @apply border-0 text-white;
  }
  .pending-step {
    @apply opacity-30;
  }
}


/* Custom Styles */

.merchant-frame{
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 */
  position: relative;
}
.merchant-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  width: 100%;
  height: 100%;
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 20 14.3% 4.1%;
    --card: 0 0% 100%;
    --card-foreground: 20 14.3% 4.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 20 14.3% 4.1%;
    --primary: 47.9 95.8% 53.1%;
    --primary-foreground: 0 0% 100%;
    --secondary: 60 4.8% 95.9%;
    --secondary-foreground: 20, 93%, 10%;
    --muted: 60 4.8% 95.9%;
    --muted-foreground: 25 5.3% 44.7%;
    --accent: 60 4.8% 95.9%;
    --accent-foreground: 24 9.8% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 60 9.1% 97.8%;
    --border: 20 5.9% 90%;
    --input: 20 5.9% 90%;
    --ring:  47.9 95.8% 53.1%;
    --radius: 0.75rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
  }
}


/* @Override Styles*/

#autocomplete-address-search .widget-container{
  border: 1px solid #e1e1e1 !important;
  border-radius: 8px !important;
}

#autocomplete-address-search input{
  border: none !important;
  padding: 10px !important;
  font-size: 16px !important;
  color: #333 !important;
}

input[type=text], input[type=number], input[type=email], input[type=url] {
    outline: none !important;
  }

  select, input[type=password] {
    outline: none !important;
  }

  [type=search] {
    outline: none !important;
  }

  body a {
    outline: none !important;
  }

  a:hover, a:active {
  outline: 0 !important;
}


.preview-img {
    max-width: 100%;
    max-height: 200px; /* Adjust this value as per your requirement */
    width: auto; 
    height: auto;
    object-fit: contain !important; /* Ensures the image maintains its aspect ratio */
    border-radius: 8px; /* Adjusts the roundness of the preview image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow to the preview */
}