/* Food For Thought â€“ Base (tokens & reset)
   Theme inspiration: staging3.ace-365.com
*/
:root{
  --cream:#fef2d7;
  --navy:#01324B ;
  --ink:#1f2937;
  --muted:#475569;
  --border:#e5e7eb;
  --bg:#ffffff;
  --ok:#0f766e;
  --warn:#d97706;
  --danger:#b91c1c;
  --link:#1e40af;
  --radius:12px;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(17,24,39,.06);
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px;
  --font: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* optional: tweak here if you ever want to change the palette site-wide */
  --btn-bg: #01324B ;
  --btn-border: #01324B ;
  --btn-text: #ffffff;
  --btn-bg-hover: #01324B ;   
  --btn-border-hover: #01324B	;
  
  /* Font */
  --fft-font-body: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --fft-font-heading: "Forum", Georgia, "Times New Roman", serif;
}

/* Scope styles to our plugin UI as much as possible */
.fft-order-container, .fft-wallet-history, .fft-login-form, .fft-student-select, .fft-logout-bar,
.fft-cart-list, .fft-order-msg, .fft-topup, .fft-topup-callback, .fft-scheduled, .fft-dashboard {
  font-family: var(--fft-font-body);
  color: var(--ink);
}
/* Links */
.fft-order-container a, .fft-wallet-history a, .fft-student-select a, .fft-dashboard a {
  color: var(--link);
  text-decoration: none;
}
/*.fft-order-container a:hover, .fft-wallet-history a:hover, .fft-student-select a:hover, .fft-dashboard a:hover {
  text-decoration: underline;
}
*/
/* Headings */
.fft-order-container h1,.fft-order-container h2,
.fft-wallet-history h1,.fft-wallet-history h2,
.fft-dashboard h1,.fft-dashboard h2{
  font-weight:700; letter-spacing:.2px; margin: var(--space-5) 0 var(--space-3);
}
/* Card */
.fft-card{
  background: var(--bg);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}
/* Buttons â€“ generic apply to all fft- buttons */
button[class*="fft-"], .fft-btn{
  appearance:none; border:1px solid #01324B; background:#01324B; color:#fff;
  padding:10px 16px; border-radius:10px; font-weight:600; cursor:pointer;
  transition: transform .06s ease, filter .2s ease, background .2s ease;
}
/*
button[class*="fft-"]:hover, .fft-btn:hover{ filter:brightness(1.05); }
button[class*="fft-"]:active, .fft-btn:active{ transform: translateY(1px); }
*/
/* Special: warning cancel button */
.fft-cancel-preorder-btn{
  background:#01324B  !important; color:#FFF !important; border-color:#01324B !important;
}
/* Alerts */
.fft-alert{padding:10px 12px;border-radius:10px;border:1px solid var(--border);}
.fft-alert.success{background:#ecfdf5;border-color:#d1fae5;color:#065f46;}
.fft-alert.error{background:#fef2f2;border-color:#fee2e2;color:#991b1b;}
.fft-alert.warn{background:#fffbeb;border-color:#fde68a;color:#92400e;}
/* Logout chip */
.fft-logout-bar a{
  background: var(--cream); color:#111827; border:1px solid #e7d2a7;
  padding:8px 12px; border-radius:10px; font-weight:600; box-shadow: var(--shadow);
}
.fft-logout-button{

}

/* Center our app sections and add breathing room */
.fft-wallet-history, .fft-order-container, .fft-student-select, .fft-login-form,
.fft-dashboard, .fft-topup, .fft-topup-callback {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 8px 24px;
}



/* Subtle card background for plugin sections */
.fft-wallet-history, .fft-student-select, .fft-login-form,
.fft-dashboard, .fft-topup, .fft-topup-callback {
  background:#fff; border-radius:12px; box-shadow: var(--shadow);
}


/* Body copy */
html, body, p, label {
  font-family: var(--fft-font-body);
  font-weight: 400;
}

/* Headings / titles */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--fft-font-heading) !important; /* override theme caps */
  font-weight: 400;  /* Forum looks best at 400 */
  letter-spacing: .2px;
}

/* Make the usual suspects all look like our .btn */
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
.wp-block-button__link,
.update-limit-btn,
.fft-btn {
  display:inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding:10px 16px;
  margin:0 8px 8px 0;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  border:1px solid var(--btn-border);
  line-height:1.2;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;   
  text-transform: none !important;  
  letter-spacing: normal;   
  /* helps rendering on some browsers when scaling */
    transform-origin: center center;
    will-change: transform;
}


/* Hover / focus / active */
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a.button:hover,
.wp-block-button__link:hover,
.fft-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color:#fff;
  text-decoration:none;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(14, 42, 71, .12);
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
a.button:focus,
.wp-block-button__link:focus,
.fft-btn:focus {
  outline: 2px solid rgba(14,42,71,.25);
  outline-offset: 2px;
}

/* Disabled state */
.btn[disabled],
button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled],
input[type="reset"][disabled],
a.button[aria-disabled="true"],
.wp-block-button__link[aria-disabled="true"],
.fft-btn[disabled] {
  opacity:.6;
  cursor:not-allowed;
  pointer-events:none;
}

/* Optional size helpers */
.btn-sm{ padding:8px 12px; border-radius:8px; }
.btn-lg{ padding:12px 18px; border-radius:12px; }


.fft-dashboard a.fft-btn,
.fft-dashboard .fft-btn,
.fft-dashboard a.button,
.fft-dashboard .wp-block-button__link {
  text-decoration: none !important;
  border-bottom: 0 !important; /* some themes fake underlines with borders */
}

.fft-btn, .fft-btn.a{
  text-decoration: none !important;
}


/* ---- Staff Login: container + button overrides ---- */
.fft-staff-login-box,
.fft-login-form {                /* keep both scoped */
  max-width: 420px;
  margin: 12vh auto 8vh;
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;            /* center the button & text inside */
}

/* Make the SSO link render like a button and remove underlines */
.fft-sso-login-button,
.fft-sso-login-button:link,
.fft-sso-login-button:visited {
  display: inline-flex;          /* vertical centering + icon room */
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 20px;
  margin: 0 auto;
  border-radius: 10px;

  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text) !important;

  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;   /* kill any theme underline */
  box-shadow: var(--shadow);
}

/* Hover / focus states */
.fft-sso-login-button:hover,
.fft-sso-login-button:focus {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: #fff !important;
  text-decoration: none !important;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(14, 42, 71, .12);
  outline: 0;                   /* rely on color/raise; add if needed */
}

/* Small screens: breathe a bit */
@media (max-width: 480px) {
  .fft-staff-login-box { margin: 8vh auto; padding: var(--space-5); }
  .fft-sso-login-button { width: 100%; }
}

.fft-btn{
  text-align: center !important;
}



/* Fix for Headings sizing down */
h1, h2 {
  font-weight: 400;              /* Forum looks best at 400 */
  letter-spacing: .2px;
}

/* Fluid sizes that don’t collapse on tablets/phones */
h1 {
  font-size: clamp(48px, 24px + 3vw, 72px) !important;
  line-height: 1.15;
}

h2 {
  font-size: clamp(32px, 20px + 2vw, 44px) !important;
  line-height: 1.2;
}

/* Belt-and-suspenders: re-assert sizes inside Astra’s 921px breakpoint */
@media (max-width: 921px) {
  h1,
  .entry-content :where(h1) {
    font-size: clamp(48px, 24px + 3vw, 72px) !important;
  }
  h2,
  .entry-content :where(h2) {
    font-size: clamp(32px, 20px + 2vw, 44px) !important;
  }
}
/*
.fft-logout-button{
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text) !important;

/*  padding: 6px 12px;    */  /* smaller than regular buttons */
/*  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: var(--shadow);

}
*/
/*
.back-to-dashboard,
.back-to-dashboard:link,
.back-to-dashboard:visited {
  display: inline-block !important;  
  width: auto !important;  
  max-width: max-content; 
  align-items: center;
  padding: 8px 12px;                  
  margin: 0 0 12px 0;                 
  border-radius: 10px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text) !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: background .15s ease, border-color .15s ease,
              transform .06s ease, box-shadow .15s ease;
}



.back-to-dashboard:hover,
.back-to-dashboard:focus {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 42, 71, .12);
  outline: 0;
}

*/
/* Compact dark-blue logout button */
/*
.fft-logout-bar a.fft-logout-button,
a.fft-logout-button,
.fft-logout-button:link,
.fft-logout-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text) !important;

  padding: 6px 12px;      /* smaller than regular buttons *//*
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}

.fft-logout-button:hover,
.fft-logout-button:focus {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 42, 71, .12);
  outline: 0;
}
*/