/* Default (desktop) */
.scl-button {
    display: inline-block;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    border: none;
    border-radius: 18px;
    word-break: break-word;
    padding: var(--wp--preset--spacing--40) 1.5rem;
    background-color: #d3d7db; /* light grey background */
    color: #333333; /* dark grey text */
    transition: all 0.2s ease-in-out;
    width: calc(25% - var(--wp--style--block-gap, .5em)*.75);
    height: 100%;
    box-shadow: var(--wp--preset--shadow--sharp);
    text-decoration: none !important;

}

.scl-button:hover,
.scl-button:active {
  filter: brightness(0.95);
  transform: scale(0.98);
}

.scl-button a {
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium) !important;
    font-weight: 500;
    line-height: 1em;
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    
}

/* override button_width-25*/
.button_width-25,
.wp-block-button__width-25 {
  width: auto !important;
  max-width: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scl-button-container {
    display: flex;
    flex-direction: column;   /* stack buttons vertically */
    align-items: center;      /* center them horizontally */
    gap: 0.75rem;             /* space between buttons */
    width: 100%;
  }

  .scl-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .scl-button {
    display: block;
    width: 90%;               /* fills most of the screen */
    max-width: 320px;         /* prevents it from getting too wide */
    margin: 0 auto;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    text-align: center;
  }

  .scl-button a {
    display: block;           /* make sure link fills button */
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .scl-button {
    width: 95%;              /* almost full width */
    max-width: none;         /* remove any max width restriction */
    font-size: 0.95rem;      /* slightly smaller text */
    padding: 0.8rem 0.9rem;  /* compact padding */
    border-radius: 10px;
  }

  .scl-button a {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .scl-button-container {
    gap: 0.6rem;             /* slightly tighter vertical spacing */
  }
}



@media (max-width: 314px) {
  .scl-button {
    width: 98%;               /* fill nearly the whole screen */
    font-size: 0.85rem;       /* slightly smaller text */
    padding: 0.7rem 0.8rem;   /* compact but still tappable */
    border-radius: 8px;       /* proportionally smaller corners */
  }

  .scl-button a {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .scl-button-container {
    gap: 0.5rem;              /* tighter vertical spacing */
  }
}

