/* Generic Components */

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--weyel-color-white);
    color: var(--weyel-color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--weyel-shadow-mega);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: var(--weyel-color-blue);
    color: var(--weyel-color-white);
    box-shadow: 0 15px 40px rgba(7, 104, 177, 0.4);
    transform: translateY(-5px);
}

#scroll-to-top svg:not(.scroll-progress-circle svg) {
    position: relative;
    z-index: 2;
    transition: transform var(--weyel-transition-base);
}

#scroll-to-top:hover svg:not(.scroll-progress-circle svg) {
    transform: translateY(-3px);
}

.scroll-progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-progress-circle svg {
    display: block;
    width: 100%;
    height: 100%;
}

.scroll-progress-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 4;
}

.scroll-progress-bar {
    fill: none;
    stroke: var(--weyel-color-green);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* ==========================================================================
   Gutenberg Button Block
   ========================================================================== */

/* Button Container (Flex Layout) */
.wp-block-buttons {
    display: flex;
    gap: var(--weyel-space-3);
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: var(--weyel-space-5);
}

/* Horizontal Alignments */
.wp-block-buttons.is-content-justification-center {
    justify-content: center;
}

.wp-block-buttons.is-content-justification-right {
    justify-content: flex-end;
}

.wp-block-buttons.is-content-justification-space-between {
    justify-content: space-between;
}

/* Vertical Stacking for small screens */
@media screen and (max-width: 575px) {
    .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Single Button Wrapper */
.wp-block-button {
    margin: 0;
}

/* Button Link Styling */
.wp-block-button__link {
    display: inline-block;
    padding: var(--weyel-space-3) var(--weyel-space-6);
    font-size: var(--weyel-font-size-md-plus);
    font-weight: 600;
    font-family: var(--weyel-font-family-base);
    text-decoration: none;
    border-radius: var(--weyel-radius-md);
    transition: all var(--weyel-transition-base);
    cursor: pointer;
    border: none;
    background-color: var(--weyel-color-blue);
    color: var(--weyel-color-white);
    text-align: center;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background-color: var(--weyel-color-green);
    color: var(--weyel-color-white);
    transform: translateY(-2px);
    box-shadow: var(--weyel-shadow-medium);
}

/* Button Alignment Modifiers within the Link */
.wp-block-button__link.has-text-align-left { text-align: left; }
.wp-block-button__link.has-text-align-center { text-align: center; }
.wp-block-button__link.has-text-align-right { text-align: right; }

/* Gutenberg Color Palette Overrides (if needed) */
.has-blue-background-color { background-color: var(--weyel-color-blue) !important; }
.has-green-background-color { background-color: var(--weyel-color-green) !important; }
.has-red-background-color { background-color: var(--weyel-color-red) !important; }
.has-white-color { color: var(--weyel-color-white) !important; }

.wp-block-custom-icon-text{margin: 20px 0px;} 
