/*** CSS myCard.ftlh ***/
.my-card-page__header {
    margin-bottom: 2.3rem;
}

.my-card {
    width: 294px;
    height: 466px;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(41, 41, 41, 0.16);
}

.my-card__member-info {
    position: absolute;
    top: 50px;
    left: 17px;
    font-size: 15px;
}

.my-card__member-info h3 {
    font-size: 1.4em;
    line-height: 1.3;
}

.my-card__member-info p {
    margin-top: 0.3em;
    font-size: 1.4em;
    line-height: 1.3;
}

.my-card__qr-code {
    position: absolute;
    top: 175px;
    right: 10px;
    left: 17px;
    display: flex;
}

.my-card__qr-image {
    width: 140px;
    height: 140px;
    margin-top: 15px;
    background-color: white;
}

.my-card__footer {
    position: absolute;
    bottom: 0;
}

.my-card__footer-image {
    width: 100%;
    background-color: white;
}

.my-card__preview-image {
    width: 294px;
    height: 466px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(41, 41, 41, 0.16);
}

.my-card__info-text {
    margin-top: 1.5rem;
}

.my-card__button .wm-btn--internal {
    padding-right: 1.5rem;
}

.my-card__button .wm-btn--internal span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.my-card__button .wm-btn--internal::after,
.my-card__button .wm-btn--internal .wm-a11y-helper {
    display: none;
}

.wallet-button--loading {
    opacity: 0.5;
}

/*** CSS shareButton.ftlh ***/
.share-social-link {
    text-decoration: none !important;
    background-image: unset !important;
    align-items: center;
}
.share-social-link-text {
    padding-left: 15px;
    padding-right: 120px;
}

/*** CSS bannerJoinClubWien.ftlh bannerHome.ftlh ***/
.banner-container {
    padding:50px;
}
.banner-container h2{
    margin-bottom:0.25rem;
}
.banner-container p{
    margin-bottom: 2rem;
}
.banner-container .banner-buttons {
    display: flex;
    align-items:center;
}
.banner-container .banner-buttons .banner-link {
    background-image: unset;
}


/**+ CSS benefitFavoriteButton.ftlh ***/
.benefit-card-favorite-container {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 3;
}
.benefit-favorite-container {
    display: flex;
    align-items: center;
    gap: 10px;
    outline: none;
    position: relative;
    width: fit-content;
    z-index: 3;
}
.benefit-favorite-container.benefit-favorite-button {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    width:100%;
}
.benefit-favorite-container:focus {
    outline: 3px solid #4b4b82;
    outline-offset: 2px;
}
.benefit-favorite-container:focus:not(:focus-visible) {
    outline: 0;
}
.benefit-favorite-container:link,
.benefit-favorite-container:visited,
.benefit-favorite-container:hover,
.benefit-favorite-container:active {
    text-decoration: none;
    color: inherit;
}
.benefit-favorite-image {
    height: 24px;
    width: 24px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.benefit-favorite-feed {
    opacity: 1;
    transition: opacity 0.5s ease;
    visibility: visible;
    padding-right: 3rem;
    position: relative;
}
.benefit-favorite-feed:hover {
    background-position: 100%;
    cursor: pointer;
}
.benefit-favorite-feed-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.benefit-card-info {
    padding-right: 28px;
}

/*** CSS cardEyecatcher.ftlh ***/
/* Two grid columns, so the distance between the badge text and the
   Stadt Wien icon is the "gap" and does not depend on margins or on
   white space in the markup. */
.card-eyecatcher {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.25rem;
}

.card-eyecatcher__icon {
    height: 1em;
    width: auto;
}

/*** CSS timeAndLocationInfoEvent.ftlh ***/
/* Opening hours of an event keep the line breaks of the editor */
.event-info__time {
    white-space: pre-wrap;
}

/*** CSS benefitScanBase.ftlh / benefitScan.ftlh / benefitScanLog.ftlh / benefitScanResult.ftlh ***/
/* When the page starts with a highlighted section (log page), it follows the
   header directly without the default header margin, as in the old version */
wm-header:has(+ .benefit-scan > wm-section[highlight]:first-child) {
    --wm-theme-header-margin-block-end: 0;
    --wm-theme-header-margin-block-end-l: 0;
}

.benefit-scan > wm-section[highlight]:first-child {
    margin-top: 0 !important;
}

/* Page name in the second header row, as in the old pattern library */
.benefit-scan__page-name {
    font-weight: bold;
    margin: 0;
    padding-block: 0.5rem;
    width: 100%;
}

/* The scan mask is placed on top of the camera picture, so the partner sees
   where the QR code of the Vorteilsclub card has to be held. */
.benefit-scan__video {
    position: relative;
}

.benefit-scan__video video {
    display: block;
    height: 48vh;
    background: transparent;
}

.benefit-scan__mask {
    height: 50%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 1;
}


.benefit-scan__result {
    text-align: center;
}

.benefit-scan__result-image {
    height: 170px;
    width: 170px;
}
