/* UrCustomBoxes theme additions: AJAX search results dropdown */

.wpb-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-top: 2px solid #373882;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.15);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.wpb-search-results.is-open {
  display: block;
}

.wpb-sr-heading {
  display: block;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.wpb-sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #f3f3f3;
  transition: background 0.2s;
}

.wpb-sr-group:last-child .wpb-sr-item:last-child {
  border-bottom: none;
}

.wpb-sr-item:hover {
  background: rgb(55 56 130 / 0.05);
  color: #373882;
}

.wpb-sr-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgb(55 56 130 / 0.08);
}

.wpb-sr-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpb-sr-count {
  background: rgb(55 56 130 / 0.08);
  color: #373882;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  flex-shrink: 0;
}

.wpb-sr-price {
  color: #373882;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wpb-sr-price del {
  color: #999;
  font-weight: 400;
  margin-right: 4px;
}

.wpb-sr-loading,
.wpb-sr-empty {
  padding: 14px;
  font-size: 14px;
  color: #777;
}

/* Custom logo output via the_custom_logo() */
.header-sec .custom-logo-link img,
.site-footer .footer-logo img {
  height: auto;
}

@media (max-width: 991px) {
  .mobile-search-section .wpb-search-results {
    position: static;
    margin-top: 8px;
    border-radius: 8px;
    max-height: 300px;
  }
}

/* ------------------------------------------------------------------ */
/* Forms: honeypot + loading state                                     */
/* ------------------------------------------------------------------ */

.wpb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form button.is-loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.toast-error {
  border-left: 4px solid #d63638;
}

/* ------------------------------------------------------------------ */
/* Thank-you page                                                      */
/* ------------------------------------------------------------------ */

.thankyou-sec {
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 15% 15%, rgb(55 56 130 / 0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgb(55 56 130 / 0.08), transparent 45%),
    #fff;
}

.thankyou-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececf5;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(31 32 84 / 0.12);
  padding: 56px 40px 48px;
  text-align: center;
}

.thankyou-check {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgb(46 164 79 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-check svg {
  width: 60px;
  height: 60px;
  stroke: #2ea44f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thankyou-check .ty-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: ty-draw 0.7s ease-out forwards;
}

.thankyou-check .ty-tick {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: ty-draw 0.45s 0.55s ease-out forwards;
}

@keyframes ty-draw {
  to { stroke-dashoffset: 0; }
}

.thankyou-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #1f2054;
  margin: 0 0 12px;
}

.thankyou-text {
  color: #666;
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.thankyou-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 36px;
  text-align: left;
}

.ty-step {
  background: #f8f8fc;
  border: 1px solid #ececf5;
  border-radius: 14px;
  padding: 20px;
}

.ty-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #373882;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.ty-step h3 {
  font-size: 16px;
  color: #1f2054;
  margin: 0 0 6px;
}

.ty-step p {
  font-size: 13.5px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

.thankyou-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.ty-btn-outline {
  background: transparent !important;
  color: #373882 !important;
  border: 2px solid #373882 !important;
}

.ty-btn-outline:hover {
  background: #373882 !important;
  color: #fff !important;
}

.thankyou-help {
  margin: 28px 0 0;
  color: #777;
  font-size: 15px;
}

.thankyou-help a {
  color: #373882;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .thankyou-card { padding: 40px 22px 36px; }
  .thankyou-steps { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 404 page                                                            */
/* ------------------------------------------------------------------ */

.error-sec {
  padding: 70px 0 90px;
  background:
    radial-gradient(circle at 85% 10%, rgb(55 56 130 / 0.07), transparent 45%),
    #fff;
}

.error-card {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: clamp(90px, 16vw, 150px);
  font-weight: 800;
  color: #373882;
  line-height: 1;
  margin-bottom: 18px;
}

.error-box {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
  color: #373882;
  animation: error-bob 2.4s ease-in-out infinite;
}

.error-box svg {
  width: 100%;
  height: 100%;
}

@keyframes error-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

.error-card h1 {
  font-size: clamp(24px, 3.6vw, 34px);
  color: #1f2054;
  margin: 0 0 12px;
}

.error-card > p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.error-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 24px;
}

.error-search input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}

.error-search input[type="text"]:focus {
  border-color: #373882;
  box-shadow: 0 0 0 3px rgb(55 56 130 / 0.12);
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-popular h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  color: #1f2054;
  margin: 0 0 30px;
}

@media (max-width: 575px) {
  .error-search { flex-direction: column; }
}

/* ------------------------------------------------------------------ */
/* Search results page                                                 */
/* ------------------------------------------------------------------ */

.search-hero {
  padding: 60px 0 46px;
  background: linear-gradient(135deg, #1f2054 0%, #373882 100%);
  color: #fff;
  text-align: center;
}

.search-hero .cat-crumb,
.search-hero .cat-crumb a {
  color: rgb(255 255 255 / 0.75);
}

.search-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 10px 0 8px;
  color: #fff;
}

.search-hero h1 span {
  color: #ffd166;
}

.search-hero > .container > p {
  color: rgb(255 255 255 / 0.8);
  margin: 0 0 26px;
}

.search-hero-form {
  margin-bottom: 0;
}

.search-hero-form input[type="text"] {
  border: none;
}

.search-results-sec {
  padding: 60px 0 80px;
}

.search-group {
  margin-bottom: 56px;
}

.search-group h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: #1f2054;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(55 56 130 / 0.15);
}

.search-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.search-page-list li {
  background: #f8f8fc;
  border: 1px solid #ececf5;
  border-radius: 12px;
  padding: 18px 22px;
}

.search-page-list a {
  font-size: 17px;
  font-weight: 600;
  color: #373882;
  text-decoration: none;
}

.search-page-list a:hover {
  text-decoration: underline;
}

.search-page-list p {
  margin: 6px 0 0;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

.search-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.search-empty {
  max-width: 560px;
  margin: 20px auto;
  text-align: center;
}

.search-empty h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: #1f2054;
  margin: 0 0 12px;
}

.search-empty p {
  color: #666;
  line-height: 1.7;
  margin: 0 0 26px;
}

.search-results-sec .pagination,
.search-results-sec .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-results-sec .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #555;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.search-results-sec .nav-links .page-numbers.current,
.search-results-sec .nav-links .page-numbers:hover {
  background: #373882;
  border-color: #373882;
  color: #fff;
}

@media (max-width: 991px) {
  .search-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .search-blog-grid { grid-template-columns: 1fr; }
}

/* Footer payment methods: show the image at its natural size, centred, instead of
   stretching the small 426px graphic across the whole container. */
.site-footer .payment-wrap {
  max-width: 100%;
}

.site-footer .payment-card {
  display: inline-flex;
  max-width: 100%;
}

.site-footer .payment-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Long description (home + product "Description" tab): cap the height and add a
   right-hand scrollbar, matching the reference site. */
.content-section .article-scroll {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Firefox only: in Chrome these standard properties would override the always-visible
   ::-webkit-scrollbar styling below with an auto-hiding overlay scrollbar. */
@supports not selector(::-webkit-scrollbar) {
  .content-section .article-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--cadmium-green) rgba(222, 222, 222, 0.5);
  }
}

.content-section .article-scroll::-webkit-scrollbar {
  width: 8px;
}

.content-section .article-scroll::-webkit-scrollbar-track {
  background: rgba(222, 222, 222, 0.5);
  border-radius: 20px;
}

.content-section .article-scroll::-webkit-scrollbar-thumb {
  background: var(--cadmium-green);
  border-radius: 20px;
}

.content-section .article-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
