/* Final POS Common Styles
 * Shared styles for the Final POS plugin
 */

/* Variables */
:root {
  /* Colors */
  --finalpos-base-blue: #3d4c66;
  --finalpos-base-blue-dark: #243249;
  --finalpos-bg-light-grey: #f8fafc;
  --finalpos-border-color: #d9d1e0;
  --finalpos-blue: #2797e8;
  --finalpos-white: #fff;
  --finalpos-button-hover: #243249;
  --finalpos-error: #ff525f;
  --finalpos-success: #10b981;
  --finalpos-sync-success-bg: #e6f4ff;
  --finalpos-sync-success-text: #2797e8;
  --finalpos-error-bg: #f8d7da;
  --finalpos-error-border: #f5c6cb;
  --finalpos-error-text: #721c24;
  --finalpos-success-bg: #d4edda;
  --finalpos-success-border: #c3e6cb;
  --finalpos-success-text: #155724;

  /* Typography */
  --finalpos-font-family: "Poppins", sans-serif;
}


/* Typography Classes */
.finalpos-title-large {
  font-family: var(--finalpos-font-family);
  font-weight: 600;
  font-size: 20px;
  color: var(--finalpos-base-blue);
  margin-bottom: 15px;
}

.finalpos-title-small {
  font-family: var(--finalpos-font-family);
  font-weight: 600;
  font-size: 16px;
  color: var(--finalpos-base-blue);
  margin-bottom: 10px;
}

.finalpos-text {
  font-family: var(--finalpos-font-family);
  color: var(--finalpos-base-blue);
  font-size: 14px;
  font-weight: 300;
}

/* Common Element Styles */
.finalpos-wrap {
  min-height: 100%;
  margin-left: -20px; /* to balance the default wp too-large margin*/
  padding: 44px;
  gap: 32px;
  display: flex;
  flex-direction: column;
  background-color: var(--finalpos-white);
  font-family: var(--finalpos-font-family);
  color: var(--finalpos-base-blue);
}



/* Button Styles */
.finalpos-button {
  display: flex;
  padding: 12px 64px;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  background-color: var(--finalpos-blue);
  color: var(--finalpos-white);
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 16px;
}

.finalpos-button:hover {
  background-color: var(--finalpos-button-hover);
  color: var(--finalpos-white);
}

.finalpos-card-layout {
  display: flex;
  gap: 30px;
}

.finalpos-card {
  display: flex;
  padding: 32px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--finalpos-border-color);
  background-color: var(--finalpos-bg-light-grey);
  border-radius: 5px;
  width: min(516px, 100%);
}

.finalpos-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--finalpos-base-blue);
  margin: 0;
}

/* banners? */

/* Success banner */
.finalpos-success-banner {
  background-color: var(--finalpos-bg-light-grey);
  border-left: 4px solid var(--finalpos-blue);
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 0 4px 4px 0;
}

.finalpos-success-banner h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--finalpos-base-blue);
}

.finalpos-woo-banner h2 {
  color: var(--finalpos-base-blue);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-family: var(--finalpos-font-family);
}

.finalpos-woo-banner p {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 16px;
  color: var(--finalpos-base-blue);
  font-family: var(--finalpos-font-family);
}


/* Simple Message Styles */
.finalpos-error-message {
  color: var(--finalpos-error);
  font-size: 14px;
  margin: 8px 0 0;
  text-align: center;
  width: 100%;
  font-weight: normal;
}

.finalpos-success-message {
  color: var(--finalpos-success);
  font-size: 14px;
  margin: 8px 0 0;
  text-align: center;
  width: 100%;
  font-weight: normal;
}

/* Message Styles */
.finalpos-error {
  background: var(--finalpos-error-bg);
  border: 1px solid var(--finalpos-error-border);
  color: var(--finalpos-error-text);
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
}

.finalpos-success {
  background: var(--finalpos-success-bg);
  border: 1px solid var(--finalpos-success-border);
  color: var(--finalpos-success-text);
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
}


