/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


/*
 *
 * @layer components {
 *  .btn-primary {
 *    @apply py-2 px-4 bg-blue-200;
 *  }
 * }
 *
 */


@font-face {
  font-family: 'LXGW WenKai TC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF; /* CJK Unified Ideographs */
}


html, body {
  font-family: 'Figtree', 'LXGW WenKai TC', sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", "LXGW WenKai TC", sans-serif;
}

/* Floating Order Summary Bar */
.floating-summary {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  cursor: pointer;
  margin-top: auto;
  overflow: hidden;
}

.floating-summary.floating-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.floating-summary.floating-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.floating-bar {
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.floating-bar .order-total-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.floating-bar .order-total-amount {
  font-size: 1.25rem;
  font-weight: bold;
}

.floating-expanded {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  max-width: 1200px;
  margin: 0 auto;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
  overflow: hidden;
}

.floating-expanded.expanded {
  max-height: 300px;
  opacity: 1;
  padding: 1rem;
}

/* PayPal button styling */
.floating-bar .paypal-buttons {
  max-width: 120px;
  height: 36px;
}

/* Main PayPal button - limit width and center */
[data-order-target="container"]:not(.flex-shrink-0) .paypal-buttons {
  max-width: 300px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-bar {
    padding: 0.75rem 1rem;
  }
  
  .floating-bar .flex {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .floating-bar .paypal-buttons {
    max-width: 100%;
  }
}

input[type='text'], input[type='number'], input[type='email'], textarea {
  padding: 0.5rem;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
  background: white;
}

input[type='text']:focus, input[type='email']:focus, input[type='number']:focus, textarea:focus {
  box-shadow: none;
  border: 1px solid #f2077e;
  outline: none;
}

/* Form Validation Styles */
.validation-error {
  border: 2px solid #ef4444 !important;
  border-radius: 0.375rem;
  background-color: #fef2f2;
}

.validation-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Pulse animation for validation errors */
@keyframes validationPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Enhanced focus styles for validation */
input:focus.validation-error, 
select:focus.validation-error, 
textarea:focus.validation-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error state for card containers */
.card.validation-error {
  border: 2px solid #ef4444;
  background-color: #fef2f2;
  animation: validationPulse 1.5s ease-in-out;
}

/* Custom Payment Button Styles */
.custom-payment-btn {
  position: relative;
  overflow: hidden;
}

.custom-payment-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.text-3xl {
  font-size: 1.75rem;
}

.text-red, .text-red-600 {
  color: #ff0000;
}

.border-red, .border-red-500 {
  border-color: #ff0000;
  border-width: 1px;
}

nav a.nav-link {
  font-weight: thin;
  padding: 0 0.25rem;
  font-size: 1.35rem;
}

nav a.nav-link.active {
  color: #f2077e;
  font-weight: bold;
  border-bottom: 3px solid #f2077e;
}

#primary-nav {

  .logo-col {
    width: 50%;
  }

  .locale-sw-col {
    width: 50%;
    justify-content: flex-end;
    display: flex;
  }
}

.header-sublinks a {
  color: rgb(75 85 99);
  padding-bottom: 0.125rem;
}

.header-sublinks a.active {
  color: #f2077e;
  font-weight: bold;
  border-bottom: 2px solid #f2077e;
}

.text-primary {
  color: #f2077e;
}

.border-primary {
  border-color: #f2077e;
}

.bg-primary {
  background-color: #f2077e;
}

#pitch-icons {
/*background: #f1f4f6;*/
background: #faf7f9;
padding: 3rem;
}

#pitch-icons .title {
font-size: 1.5rem;
font-weight: bold;
color: black;
margin-bottom: 0.75rem;
}

.card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
  font-weight: bold;
}

#footer {
background: #f1f4f6;
padding: 3rem;
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f2077e;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #f2077e;
}

input:focus + .slider {
  box-shadow: 0 0 1px #f2077e;
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.card .product {
  background-color: #fafafa;
}

#wifi_rental, #esim {
  .card div {
    background: #faf7f9;
  }
}

turbo-frame#page {
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.countries.grid {
  .country {
    border: 2px solid white;

    i.bi {
      color: oklch(0.446 0.03 256.802);
    }

    i.bi::before {
      content: "\f28a";
    }
  }

  .peer:checked + .country {
    border: 2px solid #f2077e;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);


    i.bi {
      color: oklch(0.627 0.194 149.214);
    }

    i.bi::before {
      content: "\f26a";
    }
  }
}

.flatpickr-day.selected {
  background: #f2077e !important;
  border-color: #f2077e !important;
}

input.flatpickr-input {
  display: none;
}

.wbc-checkbox {
  border: 2px solid #ddd;
  /*padding: 0.5rem 1rem;*/

  i.bi {
    color: oklch(0.446 0.03 256.802);
  }

  i.bi::before {
    content: "\f28a";
  }
}

.peer:checked + .wbc-checkbox {
  border: 2px solid #f2077e;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  font-weight: bold;


  i.bi {
    color: oklch(0.627 0.194 149.214);
  }

  i.bi::before {
    content: "\f26a";
  }
}

.fulfillment-wrapper {

  .fulfillment_type +.wbc-checkbox {
    border-radius: 10px 10px 0 0;
    border: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    margin-top: -1px;
  }

  .fulfillment_type:checked + .wbc-checkbox {
    border: 2px solid #ccc;
    border-bottom: none;
    box-shadow: none;
    margin-top: 0;
    background-color: oklch(0.967 0.003 264.542);
  }

  .pickup-options, .delivery-options {
    border: 2px solid #ccc;
    border-radius: 0px 10px 10px 10px;
    padding: 2rem;
    margin-top: -2px;
    background-color: oklch(0.967 0.003 264.542);
  }
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-box {
  border-left: 2px solid #efefef;
}


@media (width < 48rem) {
  #primary-nav {
  .mobile-menu-btn-col {
    width: 30%;

    button {
      width: 36px;
      height: 36px;
    }
  }

  .logo-col {
    width: 40%;

    a {
      display: flex;
      width: 100%;
      text-align: center;

      img {
        height: 30px;
        width: auto;
        margin: auto;

      }
    }
  }

  .locale-sw-col {
    width: 30%;
    justify-content: space-between;

    .locale-sw-wrapper {
      width: 100%;
    }

    a {
      flex: 1;
      font-size: 80%;
      span {
        margin: 0 0.25rem;
      }
    }
  }
  }


  .switch {
    width: 28px;
    height: 16px;
  }

  .slider:before {
    height: 11px;
    width: 11px;
    left: 3px;
    bottom: 2.5px;
  }

  .slider.round {
    border-radius: 17px;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(10px);
    -ms-transform: translateX(10px);
    transform: translateX(10px);
  }

  .fulfillment-wrapper {

    .pickup-options, .delivery-options {
      padding: 0.5rem;
    }
  }

  .contact-box {
    border-left: none;
  }
}

/* Fix navigation overlap issue for all desktop breakpoints */
@media (min-width: 48rem) {
  /* Ensure navigation takes proper space and doesn't overlap */
  #primary-nav {
    position: relative;
    background: white;
    margin-bottom: 0;
    padding-bottom: 1rem; /* Add space after nav */
  }
  
  /* Ensure desktop nav links don't float */
  #primary-nav .hidden.md\\:flex {
    position: relative;
    margin-top: 1rem;
    padding: 1rem 0;
  }
  
  /* Ensure hero section starts properly after navigation */
  #hero-carousel {
    position: relative;
    clear: both;
  }
}

/* Container full width at tablet breakpoint to prevent side margins */
@media (min-width: 768px) and (max-width: 1023px) {
  main.container.tablet-full-width {
    max-width: none !important;
    width: 100% !important;
  }
}

/* Ultra-narrow screens (below 360px) */
@media (max-width: 360px) {
  #hero-carousel h3 {
    font-size: 1.25rem !important; /* Reduce from text-3xl/text-4xl */
    margin: 0.25rem 0 !important; /* Reduce margins */
  }
  
  #hero-carousel h1 {
    font-size: 1.5rem !important; /* Reduce from text-4xl/text-5xl */
  }
  
  #hero-carousel h1 div {
    margin-bottom: 0.25rem !important; /* Reduce margin between lines */
  }
  
  #hero-carousel h1 span {
    font-size: 1.125rem !important; /* Reduce "and" text size */
  }
  
  /* Reduce feature list padding and text */
  #hero-carousel .flex .text-lg {
    font-size: 0.875rem !important; /* Reduce feature text size */
    margin-top: 0.5rem !important; /* Reduce spacing */
    padding-right: 0.5rem !important; /* Reduce padding */
    margin-right: 0.5rem !important; /* Reduce margin */
  }
  
  /* Remove excessive padding from hero container */
  #hero-carousel .slide {
    padding: 0.5rem !important; /* Reduce from p-3 */
  }
  
  /* Reduce button spacing */
  #hero-carousel a {
    margin-top: 0.75rem !important; /* Reduce button spacing */
    padding: 0.25rem 0.5rem !important; /* Reduce button padding */
    font-size: 0.875rem !important; /* Reduce button text size */
  }
}
