/* Google Preferred Sources official control placement styles. */
.gpswp-preferred-source-button {
    box-sizing: border-box;
    margin: 20px 0;
    max-width: 100%;
}

.gpswp-official-google-layout {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gpswp-official-google-layout.gpswp-align-left {
    justify-content: flex-start;
    text-align: left;
}

.gpswp-official-google-layout.gpswp-align-center {
    justify-content: center;
    text-align: center;
}

.gpswp-official-google-layout.gpswp-align-right {
    justify-content: flex-end;
    text-align: right;
}

.gpswp-official-google-layout.gpswp-text-align-top {
    align-items: flex-start;
}

.gpswp-official-google-layout.gpswp-text-align-middle {
    align-items: center;
}

.gpswp-official-google-layout.gpswp-text-align-bottom {
    align-items: flex-end;
}

/* Google's marker and iframe use 100% width. The definite flex basis prevents
 * the control from collapsing inside shrink-to-fit theme containers. */
.gpswp-official-google-slot {
    display: block;
    flex: 1 1 100%;
    width: 100% !important;
    min-height: 60px;
}

.gpswp-button-text {
    color: inherit;
    font: inherit;
    line-height: 1.4;
}

.gpswp-margin-none {
    margin: 0;
}

.gpswp-margin-small {
    margin: 10px 0;
}

.gpswp-margin-large {
    margin: 30px 0;
}

@media (max-width: 480px) {
    .gpswp-official-google-layout {
        gap: 8px;
    }

    .gpswp-official-google-layout .gpswp-button-text {
        flex: 0 0 100%;
    }
}
