/**
 * Buttons Widget Frontend Styles
 */

/* Wrapper */
.zonkey-buttons-wrapper {
    display: flex;
}

/* Layout - Inline */
.zonkey-buttons-wrapper.buttons-layout-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Layout - Stacked */
.zonkey-buttons-wrapper.buttons-layout-stacked {
    flex-direction: column;
}

/* Alignment */
.zonkey-buttons-wrapper.buttons-align-left {
    justify-content: flex-start;
    align-items: flex-start;
}

.zonkey-buttons-wrapper.buttons-align-center {
    justify-content: center;
    align-items: center;
}

.zonkey-buttons-wrapper.buttons-align-right {
    justify-content: flex-end;
    align-items: flex-end;
}

/* Full Width */
.zonkey-buttons-wrapper.buttons-full-width {
    width: 100%;
}

.zonkey-buttons-wrapper.buttons-full-width .btn {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
}

/* Inline full width - buttons share space */
.zonkey-buttons-wrapper.buttons-full-width.buttons-layout-inline .btn {
    flex: 1 1 0;
}

/* Stacked full width - each button full width */
.zonkey-buttons-wrapper.buttons-full-width.buttons-layout-stacked .btn {
    width: 100%;
}

/* Header widget specific adjustments */
.header-widget .zonkey-buttons-wrapper {
    gap: 0.5rem;
}

.header-widget .zonkey-buttons-wrapper .btn {
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 480px) {
    .zonkey-buttons-wrapper.buttons-layout-inline {
        flex-direction: column;
    }

    .zonkey-buttons-wrapper.buttons-layout-inline .btn {
        width: 100%;
        text-align: center;
    }
}
