@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #fff;
  --foreground: #171717;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}
body {
  color: var(--foreground);
  background: var(--background);
}

#page-wrapper {
  overflow-y: auto;
  height: 100vh;
}
.submenu{
  background-color: rgba(225,225,225,.8);
}
.main-title span{
  font-weight: normal;
}
/* .home-page-carousels div div{
  height: 49vh;
} */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-ratio{
  aspect-ratio: 1 / 1;
}
.ws-6{
  word-spacing: 6px;
}
.clip-custom-shape{
  clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
}
.clip-custom-title{
  clip-path: polygon(0% 0%, calc(100% - 5px) 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 0%);
}
div[dir="rtl"] .clip-custom-title{
  clip-path: polygon(100% 0%, calc(0% + 5px) 0%, 0% 0%, 0% calc(100% - 15px), 15px 100%, 100% 100%, 100% 0%);
}
.nextjs-toast{
  display: none;
}
.feedback_description img{
  margin: 4px auto 0;
}
.rgb_color_format{
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: rgb(255, 34, 254);
  background: linear-gradient(90deg, rgba(255, 34, 254, 1) 0%, rgba(254, 51, 106, 1) 11%, rgba(255, 101, 58, 1) 29%, rgba(255, 254, 65, 1) 45%, rgba(66, 254, 106, 1) 63%, rgba(26, 255, 255, 1) 82%, rgba(72, 59, 255, 1) 100%);
  transform-origin: center;
  animation: glowing 5s linear infinite;
}
.anchor_gray_color a,
.post_below_content a{
  color: #43474f;
}
.custom-pagenation .swiper-pagination {
  text-align: left;
  padding-left: 32px;
  bottom: 32px !important;
}
.custom-pagenation .swiper-pagination .swiper-pagination-bullet{
    background: #CBD5E1;
    opacity: 1;
    height: 10px;
    width: 10px;
} .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
  background: #04196C;
}

html.dark .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
  background-color: #3a60f8;
}

.swiper-button-prev, .swiper-button-next{
  display: none !important;
}

.stretched-link::before{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  content: "";
}
@keyframes glowing{
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pagination ul{
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  justify-content: center;
  -webkit-justify-content: center;
   gap: 6px;
}

html[dir='rtl'] {
  /* Adjust layouts for RTL */
  text-align: right;
}

html[dir='rtl'] button,
html[dir='rtl'] input {
  direction: rtl;
}
.slider-seprator .swiper-slide:not(:last-child):after {
    content: "";
    position: absolute;
    height: 56px;
    width: 1px;
    background: #F1F5F9;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
}

html.dark .slider-seprator .swiper-slide:not(:last-child):after{
    background: #2e3242;
}

html[dir='rtl'] .slider-seprator .swiper-slide:not(:last-child):after {
    right: auto;
    left: -28px;
}

.prodcut-detail-slide .swiper-button-next,
.prodcut-detail-slide .swiper-button-prev {
    display: none;
}

.prodcut-detail-slide{
  padding-bottom: 30px !important;
}

.prodcut-detail-slide .swiper-pagination {
    position: absolute;
    bottom: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodcut-detail-slide .swiper-pagination-bullet-active{
  background: #04196C !important;
  zoom: 1 !important;
}

.prodcut-detail-slide .swiper-pagination-bullet{
  background: #CBD5E1;
  opacity: 1 !important;
}

.prodcut-detail-slide .swiper-pagination-bullet:last-child{
  zoom: .6;
}

.prodcut-detail-slide .swiper-pagination-bullet:nth-last-child(2) {
  zoom: 0.8;
}

.prodcut-detail-slide .swiper-pagination-bullet:first-child{
  zoom: .6;
}

.prodcut-detail-slide .swiper-pagination-bullet:first-of-type(2n){
  zoom: 0.8;
}

.reviewbox-wrap::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 80px;
  transform: translateX(0) rotate(45deg);
  width: 16px;
  height: 16px;
  background-color: white;
}

html[dir='rtl'] .reviewbox-wrap::before {
  left: auto;
  right: 80px;
}

.react-select__indicators .react-select__indicator-separator {
    display: none;
}

.PhoneInputInput:focus{
  outline: none;
}

.inputIcon:focus{
  border: 1px solid #04196c;
}

html[dir='rtl'] .support-slider .swiper-backface-hidden .swiper-slide:first-child{
  margin-right: 0 !important;
}

html.dark input[type="date"]{
  appearance: white;
}

.reactjs-tiptap-editor>div {
  outline: 1px #0f111a;
}

html.dark .reactjs-tiptap-editor>div {
  outline: 1px #0f111a;
}

html.dark .richtext-flex-col {
  background: #0f111a;
}

html.dark .css-11ocqij-control{
  background-color: transparent;
  border-color: #2e3242;
}

html.dark .css-efiexo-control{
  background-color: transparent;
  border-color: #2e3242;
}

.css-1u9des2-indicatorSeparator{
  background-color: #F1F5F9 !important;
  margin-right: 8px;
}

html.dark .css-1u9des2-indicatorSeparator{
  background-color: #2e3242 !important;
}

html.dark .css-1p3m7a8-multiValue {
    background-color: #1c1f2b;
    color: white;
}

html.dark .css-9jq23d,
html.dark .css-19bb58m,
html.dark .css-1dimb5e-singleValue{
 color: #cbd5e1 !important;
}

html.dark .css-62cp33-indicatorContainer{
  color: #94a3b8 !important;
}

html.dark .css-tj5bde-Svg{
  fill: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

html.dark .css-62cp33-indicatorContainer:hover {
  color: #c4c4c7;
}

.dark .reviewbox-wrap::before{
  background: #0f111a;
}

.dark .prodcut-detail-slide .swiper-pagination-bullet-active{
    background: #3a60f8 !important;
}

.dark body{
  background: #0f111a;
}

.dark .dark-text-spin{
  color: #cbd5e1 !important;
}

.dark .country-number-drop .form-control {
    background: #0f111a;
    color: #cbd5e1 !important;
}

.dark .country-number-drop .flag-dropdown{
  border: none;
  border-radius: 0;
  background: #0f111a;
}

.dark .country-number-drop .selected-flag{
  background: #0f111a !important;
  border: 1px solid #2e3242;
  border-radius: 0;
  color: #cbd5e1;
}

.dark .country-number-drop .country-list .search{
  background-color: #1c1f2b !important;
}

.dark .country-number-drop .country-list{
  background-color: #0f111a !important;
}

.dark .country-number-drop .country-list .country.highlight,
.dark .country-number-drop .country-list .country:hover {
  background-color: #000000;
}

.dark .country-number-drop .country-list .search-box{
  border: 1px solid #2e3242 !important;
  background: #000000 !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dark .react-select--is-disabled .react-select__control--is-disabled {
    background-color: #1c1f2b;
    border-color: #2e3242;
}

html[dir='rtl'] .react-tel-input .country-list {
    left: 0;
}

html[dir='rtl'] .react-tel-input .country-list .flag{
    margin-right: 0;
    margin-left: 7px;
}

html[dir='rtl'] .react-tel-input .country-list .search-box {
    margin-right: 6px;
    margin-left: 0;
}

html[dir='rtl'] .react-tel-input .country-list .search-emoji {
    margin-right: 6px;
}

.country-number-drop .flag-dropdown{
  z-index: 0 !important;
}

.dark .darkbg-change-input input,
.dark .darkbg-change-input textarea{
  background-color: #1c1f2b !important;
}

.dark .css-1cfo1cf{
  color: #cbd5e1 !important;
}

.dark .css-hi4zkl-menu{
  border: 1px solid #2e3242;
}

html[dir='rtl'] .login-wrapper{
  background-image: url('/login-bg-rtl.webp') !important;
}

body {
  overflow-y: auto;
}

.sellerUserBtn .rtl\:rotate-180{
  display: none;
}

.custom-select{
  appearance: none;
background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px;
  box-shadow: none !important;
}

.custom-select:focus{
  border-color: #04196c;
}

@media screen and (max-width: 1280px) {
  .relative.custom-pagenation .custom-swiper-pagination {
      bottom: -20px !important;
      
  }
}
@media screen and (max-width: 1024px) {
  .slider-seprator .swiper-slide:not(:last-child):after {
    right: -20px;
  }
  html[dir='rtl'] .slider-seprator .swiper-slide:not(:last-child):after {
    right:auto;
    left: -20px;
  }
}
@media screen and (max-width: 640px) {
  .slider-seprator .swiper-slide:not(:last-child):after {
   display: none;
  }

  .Toastify__toast{
    --toastify-toast-width: 80% !important;
    margin-top: 10px !important;
    right: 10px !important;
    font-size: 14px !important;
  }
}
@media screen and (max-width: 400px) {  
  .recaptcha div {
    width: 100% !important;
  }
  .recaptcha div iframe {
    width: 100%;
  }
}

.toggle-checkbox {
  @apply appearance-none w-10 h-5 bg-gray-300 rounded-full relative transition-colors duration-300;
}
.toggle-checkbox:checked {
  @apply bg-primary500 dark:bg-primary400;
}
.toggle-checkbox::before {
  content: '';
  @apply w-5 h-5 bg-white rounded-full absolute top-0 left-0 transition-transform duration-300;
}
.toggle-checkbox:checked::before {
  transform: translateX(100%);
}

.dark .toggle-checkbox {
  @apply appearance-none w-10 h-5 bg-cardfooter rounded-full relative transition-colors duration-300 cursor-pointer;
}


/* chat section */
.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  border-radius: 9999px;
}

html[dir='rtl'] .css-62cp33-indicatorContainer{
      padding: 5px 0 5px 10px;
}

html[dir='rtl'] .react-tel-input .selected-flag .arrow{
  left: 14px;
}

html[dir='rtl'] .react-tel-input .selected-flag .flag{
  left: 7px;
}

.chatbg{
  position: relative;
}
 
.chatbg::before{
  content: '';
  width: 100%;
  height: 100%;
  background-image: url('/chat-bg-light.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  opacity: .05;
}
 
.chatbg>div {
    position: relative;
}

.swiper-button-disabled:hover svg path{
  fill: #64748B !important;
}

.stretched-link{
  text-transform: capitalize;
}