/*
Theme Name: SpiderHouse
Theme URI: https://SpiderHouse.dev
Author: SpiderHouse Development
Author URI: https://SpiderHouse.dev
Description: Minimal full site editing block theme scaffold for SpiderHouse.
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spiderhouse
Tags: full-site-editing, block-theme, accessibility-ready, editor-style
*/

:root {
  --spiderhouse-secondary: #f97316;
  --spiderhouse-ink: #13354E;
  --spiderhouse-paper: #fff;
  --spiderhouse-tertiary: #AED473;
}
html{
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--spiderhouse-ink);
  background: var(--spiderhouse-paper);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}


a {
  color: var(--spiderhouse-secondary);
  text-decoration: none;
}

a :link {
  color: var(--spiderhouse-secondary);
  text-decoration: none;
}

a:not(.wp-block-button__link):hover{
text-decoration: underline;
}

/* Shell width consistent with your site */
.sh-acct-shell {
  margin: 0 auto 6rem;
  padding: 0;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 26px;
  align-items: start;
}

/* Glass base */
.sh-glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: 0 18px 46px rgba(19, 53, 78, 0.10);
  border-radius: 22px;
}

/* Sidebar layout */
.sh-acct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 110px; /* adjust for your header */
}

/* Profile card */
.sh-acct-profile-card {
  padding: 16px 14px;
}

.sh-acct-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-acct-avatar {
  border-radius: 999px;
  width: 56px;
  height: 56px;
  box-shadow: 0 10px 24px rgba(19, 53, 78, 0.12);
}

.sh-acct-name {
  font-weight: 800;
  color: #13354e;
  line-height: 1.1;
}

.sh-acct-email {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(19, 53, 78, 0.70);
}

/* Nav card */
.sh-acct-nav-card {
  padding: 10px;
}

.woocommerce-account .sh-acct-nav-card .woocommerce-MyAccount-navigation{
  width:100%;
}
/* Remove default Woo nav styling */
.sh-acct-nav ul,
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-acct-nav li,
.woocommerce-MyAccount-navigation li {
  margin: 6px 0;
}

/* Nav links: look like the mock */
.sh-acct-nav a,
.woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px 12px;
  border-radius: 14px;

  color: #13354e;
  text-decoration: none;
  font-weight: 700;

  transition: background-color 160ms ease, transform 160ms ease;
}

/* Hover */
.sh-acct-nav a:hover,
.woocommerce-MyAccount-navigation a:hover {
  background: rgba(19, 53, 78, 0.06);
  transform: translateY(-1px);
}

/* Active item */
.sh-acct-nav .is-active > a,
.woocommerce-MyAccount-navigation .is-active > a {
  background: rgba(243, 116, 50, 0.12);
  border: 1px solid rgba(243, 116, 50, 0.22);
}

/* Logout separated */
.sh-acct-nav .woocommerce-MyAccount-navigation-link--customer-logout,
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(19, 53, 78, 0.10);
}

/* Content panel */
.sh-acct-content {
  padding: 22px;
}

/* Make the default “Hello” paragraphs not look like default Woo */
.sh-acct-content p {
  color: #13354e;
  line-height: 1.5;
}

.sh-incorrect-acct-profile{
  margin-top:0;
  font-size: .8rem;
}

.sh-acct-content a {
  color: #f37432;
  font-weight: 800;
  text-decoration: none;
}

.sh-acct-content a:hover {
  color: #aed473;
}

.sh-acct-content .order-again a {
  color: #fff !important;
  text-decoration: none;
}



/* Buttons inside account */
.sh-acct-content .woocommerce a.button,
.sh-acct-content .woocommerce button.button,
.sh-acct-content .woocommerce input.button,
.sh-acct-content .woocommerce-orders-table__cell a {
  border-radius: 4px;
  border: 0;
  background: #f37432;
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 14px 30px rgba(243, 116, 50, 0.18);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sh-acct-content .woocommerce a.button:hover,
.sh-acct-content .woocommerce button.button:hover,
.sh-acct-content .woocommerce input.button:hover,
.sh-acct-content .woocommerce-orders-table__cell a:hover {
  background: #aed473;
  box-shadow: 0 16px 34px rgba(174, 212, 115, 0.20);
  transform: translateY(-1px);
  text-decoration: none;
}

.sh-acct-content .woocommerce-orders-table__cell a{
  margin-top: 1em !important;
}

.sh-acct-content .woocommerce input.button {
  border-radius: 4px;
  border: 0;
  background: #f37432;
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 14px 30px rgba(243, 116, 50, 0.18);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}



/* License Registration Account Section */

.sh-acct-sub {
  margin: 0 0 12px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(19, 53, 78, 0.72);
}

/* ---------- Claim card ---------- */
.sh-claim-card {
  max-width: 420px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 46px rgba(19, 53, 78, 0.12);
}

/* Form layout */
.sh-claim-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Label */
.sh-claim-label {
  font-size: 18px;
  font-weight: 600;
  color: #13354e;
}
.woocommerce-page label.sh-claim-label{
  margin-bottom: 0;
}
/* Input */
.sh-claim-input {
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(19, 53, 78, 0.16);
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #13354e;

  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.sh-claim-input::placeholder {
  letter-spacing: 0.1em;
  color: rgba(19, 53, 78, 0.35);
}

/* Focus */
.sh-claim-input:focus {
  outline: none;
  border-color: rgba(243, 116, 50, 0.65);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(243, 116, 50, 0.18),
    0 12px 28px rgba(19, 53, 78, 0.18);
}

/* ---------- Submit button ---------- */

*{
  box-sizing: border-box !important;
}
.sh-claim-form .sh-cta-btn {
  margin-top: 6px;
  align-self: flex-start;

  height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  border: 0;

  background: #f37432;
  color: #ffffff;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;

  cursor: pointer;

  box-shadow:
    0 14px 30px rgba(243, 116, 50, 0.22);

  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sh-claim-form .sh-cta-btn:hover {
  background: #aed473;
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(174, 212, 115, 0.26);
}

.sh-claim-form .sh-cta-btn:active {
  transform: translateY(0);
  box-shadow:
    0 10px 20px rgba(174, 212, 115, 0.22);
}

/* Keyboard focus */
.sh-claim-form .sh-cta-btn:focus-visible {
  outline: 2px solid rgba(243, 116, 50, 0.65);
  outline-offset: 2px;
}
.sh-loginout-wrap, .sh-btn-secondary{
  width:350px;
  max-width:100% !important;

}

 .sh-btn-secondary{
  margin: auto  !important;
 }

.sh-login-wrap .wp-block-loginout {
  width:100%;
}

#sh-register-wrap .woocommerce-form.sh-auth-form{
  margin: 0;
  width: 100%;
  padding: 0;
  border: none;
}

.sh-loginout-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
 width:100%;
   box-sizing:border-box;
  border-radius: 10px;
  background: #f37432;
  color: #ffffff;
  font-weight: 500;
font-size: 18px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(243, 116, 50, 0.20);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sh-loginout-wrap a:hover {
  background: #aed473;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(174, 212, 115, 0.22);
}

.sh-loginout-wrap a:focus-visible {
  outline: 2px solid rgba(243, 116, 50, 0.75);
  outline-offset: 2px;
}

.sh-divider {
  margin: 16px 0;
  opacity: 0.22;
}

/* Normalize the paragraphs WP outputs */
.sh-login-card .wp-block-loginout p,
.sh-login-card .sh-auth-row,
.sh-login-card .sh-auth-note {
  margin: 0 0 14px 0;
}

/* Labels */
.sh-login-card .wp-block-loginout label,
.sh-login-card .sh-auth-label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #13354e;
}

/* Inputs */
#sh-register-wrap input.woocommerce-Input.sh-auth-input.input-text,
.sh-login-card .wp-block-loginout input[type="text"],
.sh-login-card .wp-block-loginout input[type="password"],
.sh-login-card .sh-auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(19, 53, 78, 0.18);
  background: rgba(255, 255, 255, 0.70);
  color: #13354e;
  font-size: 15px;
  outline: none;
  box-shadow: 0 8px 18px rgba(19, 53, 78, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

/* Placeholder (if WP adds any / browser autofill) */
.sh-login-card .wp-block-loginout input::placeholder,
.sh-login-card .sh-auth-input::placeholder {
  color: rgba(19, 53, 78, 0.55);
}

/* Focus */
.sh-login-card .wp-block-loginout input[type="text"]:focus,
.sh-login-card .wp-block-loginout input[type="password"]:focus,
.sh-login-card .sh-auth-input:focus {
  border-color: rgba(243, 116, 50, 0.55);
  box-shadow: 0 0 0 3px rgba(243, 116, 50, 0.18), 0 10px 22px rgba(19, 53, 78, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

/* Autofill (Chrome) */
.sh-login-card .wp-block-loginout input:-webkit-autofill,
.sh-login-card .sh-auth-input:-webkit-autofill {
  -webkit-text-fill-color: #13354e;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.82) inset, 0 8px 18px rgba(19, 53, 78, 0.06);
}

/* Remember me row */
.sh-login-card .wp-block-loginout .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.sh-login-card .wp-block-loginout .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: rgba(19, 53, 78, 0.9);
}

.sh-login-card .wp-block-loginout input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f37432;
}

/* Submit row */
.sh-login-card .wp-block-loginout .login-submit {
  margin-top: 8px;
  margin-bottom: 0;
}

#sh-register-wrap .woocommerce-button.sh-auth-submit{
  padding:0;

}

.sh-login-card .sh-auth-submit-row {
  margin-top: 8px;
  margin-bottom: 0;
}

.sh-login-card .wp-block-loginout input[type="submit"],
.sh-login-card .wp-block-loginout #wp-submit.button.button-primary,
.sh-login-card .sh-auth-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f37432;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(243, 116, 50, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.sh-login-card .wp-block-loginout input[type="submit"]:hover,
.sh-login-card .sh-auth-submit:hover {
  background: #aed473;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(174, 212, 115, 0.22);
}

/* Keyboard focus ring on button */
.sh-login-card .wp-block-loginout input[type="submit"]:focus-visible,
.sh-login-card .sh-auth-submit:focus-visible {
  outline: 2px solid rgba(243, 116, 50, 0.65);
  outline-offset: 2px;
}

/* Tighten separator + help text spacing */
.sh-login-card .sh-divider {
  margin: 18px 0;
  opacity: 0.18;
}

/* Make the Contact Support button match (avoid the “inline style beats CSS” issue) */
.sh-login-card .sh-btn-secondary .wp-block-button__link {
  width: 100%;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(243, 116, 50, 0.18);
}

.sh-login-card .sh-btn-secondary .wp-block-button__link:hover {
  background: #aed473 !important;
  box-shadow: 0 16px 34px rgba(174, 212, 115, 0.20);
}


.sh-login-card .sh-auth-toggle-link {
  color: #f37432;
  font-weight: 700;
}

.sh-login-card .sh-auth-toggle-link:hover {
  color: #aed473;
}


/* key retrieval page */
body.page-id-315 .wc-block-components-notice-banner{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1rem;
}

body.page-id-315 .signup-template-part-container{
  margin-top:3rem !important;
}

/* Contact Form */

/* Scope everything to your form wrapper */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 {
	max-width: 596px;
}

/* CF7 wraps everything in <p> tags. Kill those margins. */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 p {
	margin: 0;
}

/* Hide labels + the forced <br> line breaks so the text sits inside inputs */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-label,
.wp-block-contact-form-7-contact-form-selector .shd-cf7 br {
	display: none !important;
}

/* Spacing between fields */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-field {
	margin: 0 0 22px;
}

/* Inputs + textarea look */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-input,
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-textarea {
	width: 100%;
	box-sizing: border-box;

	background: #f4f4f4;
	color: #224259;

	border: 0;
	border-left: 3px solid var(--spiderhouse-secondary, #f97316);
	border-radius: 6px;

	padding: 18px 18px 18px 40px;

	outline: none;
	box-shadow: none;

	font-size: 28px;
	line-height: 1.2;
}

/* Field heights */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-input {
	height: 50px;
}

.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-textarea {
	min-height: 240px;
	padding-top: 22px;
	resize: vertical;
}

/* Placeholder styling (the text you see in your screenshot) */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-input::placeholder,
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-textarea::placeholder {
	color: #224259;
	opacity: 1;
}

/* Focus ring should be subtle */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-input:focus,
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-textarea:focus {
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 1);
}

/* Submit area: border “frame” around the button like the Figma */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-actions {
	margin-top: 26px;
}


/* Button */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-submit {
	-webkit-appearance: none;
	appearance: none;

	background: var(--spiderhouse-secondary, #f97316);
	color: #fff;

	border: 0;
	border-radius: 4px;

	padding: 14px 28px;

	font-size: 28px;
	font-weight: 700;

	cursor: pointer;
}

.wp-block-contact-form-7-contact-form-selector .shd-cf7 .shd-submit:hover {
	filter: brightness(0.95);
}

/* Remove CF7 spinner layout weirdness */
.wp-block-contact-form-7-contact-form-selector .shd-cf7 .wpcf7-spinner {
	margin-left: 10px;
}




/* ── Documentation layout ──────────────────────────────────── */
/* Any ancestor with overflow:hidden kills position:sticky — clear them all */
.wp-site-blocks,
.wp-block-post-content,
.wp-block-group.docs-layout {
    overflow: visible !important;
}

.docs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
    gap: 2rem;
    width:1340px;
    max-width: 90vw;
    margin: 0 auto;
    padding: 2rem 0;
   
}

.docs-sidebar {
    position: sticky;
    top: 4vw;
    align-self: start;
    height: auto;
    min-height: calc(90vh - 100px);
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(19, 53, 78, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 2rem 1rem;
}

.docs-sidebar-list,
.docs-sidebar-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Row: link + toggle button side by side */
.docs-sidebar-row {
    display: flex;
    align-items: center;
}

.docs-sidebar-row .docs-sidebar-link {
    flex: 1;
}

/* Top-level link */
.docs-sidebar-link {
    display: block;
    padding: .45rem .75rem;
    color: #555;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color .15s, background .15s, border-left-color .15s;
}

.docs-sidebar-link:hover,
.docs-sidebar-link.is-active {
    color: #007cba;
    border-left-color: #007cba;
    background: #f0f7ff;
}

/* Collapse / expand toggle button */
.docs-sidebar-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-right: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color .15s;
}

.docs-sidebar-toggle:hover {
    color: #007cba;
}

/* Chevron icon via CSS border trick */
.docs-sidebar-toggle-icon {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-top: -3px; /* optical centre */
}

.docs-sidebar-toggle[aria-expanded="false"] .docs-sidebar-toggle-icon {
    transform: rotate(-45deg);
    margin-top: 0;
    margin-right: -2px;
}

/* Nested child list */
.docs-sidebar-children {
    padding-left: 1rem;
    overflow: hidden;
}

.docs-sidebar-children[hidden] {
    display: none;
}

/* Sublinks — slightly smaller, indented feel */
.docs-sidebar-sublink {
    font-size: .88rem;
    padding: .35rem .75rem;
    color: #666;
    border-left-color: transparent;
}

.docs-sidebar-sublink:hover,
.docs-sidebar-sublink.is-active {
    color: #F37432;
    border-left-color: #F37432;
    background: #fff4ee;
}


.docs-content h1 {
    margin-top: 0;
}

/* Frontend subsection */
.docs-subsection {
    scroll-margin-top: 80px;
    margin-bottom: 2rem;
}


@media (max-width:1340px){

.is-layout-constrained > .alignwide{
 max-width:90vw;
}
}
@media (max-width: 781px) {
   .wp-block-columns.stack-in-reverse{
    
   flex-wrap: wrap-reverse !important;
   }
  }

@media (max-width: 700px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
        max-height: none;
    }
}



/* ── Navigation: hamburger breakpoint override) ──────── */

/*  undo core's desktop rules — keep hamburger visible, keep nav items hidden */
@media (min-width: 600px) and (max-width: 781px) {
    .wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
        display: none !important;
    }
    .wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex !important;
    }
        .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){
      display:none !important;
    }
 
}

/* 900 px+: show full nav, hide hamburger */
@media (min-width: 782px) {
    .wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
        display: block !important;
    }
}

