/*
 * What the phone's confirm sheets hold, inside the shared bottom sheet (web-app-bottom-sheets.css
 * draws the frame; this file never changes it):
 *
 * .wa-alert-sheet-*        the phone's DrawBottomSheetAlert body: an optional header (a coin pill),
 *                          the centred title, then each choice as a full-width text row between thin
 *                          lines (layout/WebAppAlertSheetBody.kt)
 * .wa-coin-unlock-sheet-*  the phone's MediaCoinUnlockConfirmSheet: balance pill, a warm card with a
 *                          lock and the cost, Unlock, Not now (coinUnlockConfirm/)
 */

/* ==================== alert sheet body (DrawBottomSheetAlert) ==================== */

.wa-sheet-scroll.wa-alert-sheet-scroll { padding: 0; }
/* the same body in a sheet kept in the page (aboutMe/WebAppProfilePickers.kt profileInPageSheet) */
.wa-profile-sheet-body.wa-profile-sheet-body--alert { padding: 0; align-items: stretch; }
/* and on the photo screen's "cancel this photo request?" (chat/askPalForPhotoDialog.kt): Material's 28 px corners */
.wa-photo-screen-discard-card.wa-photo-screen-discard-card--alert { padding: 0 0 var(--wa-bottom-inset); border-radius: 28px 28px 0 0; }
/* the phone's 12 dp padding under the column plus the 6 dp space after the last row */
.wa-alert-sheet-body { display: flex; flex-direction: column; padding-bottom: 18px; }
.wa-alert-sheet-header { display: flex; justify-content: center; padding: 12px 16px; }
.wa-alert-sheet-heading { padding: 24px 16px; text-align: center; }
/* titleMedium: 18 / 24, regular */
.wa-alert-sheet-title { margin: 0; font-size: calc(18px * var(--wa-text-scale, 1)); line-height: calc(24px * var(--wa-text-scale, 1)); font-weight: 400; color: var(--md-on-surface); text-align: center; }
.wa-alert-sheet-message { margin: 8px 0 0; font-size: calc(14px * var(--wa-text-scale, 1)); line-height: calc(20px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); }
/* DrawHorizontalDivider: a 0.5 dp outline-variant line, 4 dp in from each side */
.wa-alert-sheet-divider { flex: none; height: 0; margin: 0 4px; border-top: 0.5px solid var(--md-outline-variant); }
/* DrawTextButton: labelLarge (16 / 20, medium), 18 dp above and below, the positive one in primary container */
.wa-alert-sheet-row {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    padding: 18px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--md-on-surface);
    font: inherit;
    font-size: calc(16px * var(--wa-text-scale, 1));
    line-height: calc(20px * var(--wa-text-scale, 1));
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.wa-alert-sheet-row--positive { color: var(--md-primary-container); }
.wa-alert-sheet-row:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.wa-alert-sheet-row:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.wa-alert-sheet-row:disabled { opacity: 0.38; cursor: default; }

/* ==================== coin unlock sheet (MediaCoinUnlockConfirmSheet) ==================== */

/* the phone's sheet is a window over everything, so it also covers the full-screen photo viewers */
.wa-coin-unlock-sheet-backdrop { z-index: 1100; }
/* a sheet opened from it (the coins info sheet, "Get more coins") still goes on top */
.wa-coin-unlock-sheet-backdrop ~ .wa-sheet-backdrop { z-index: 1101; }
.wa-coin-unlock-sheet-body { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 20px; }
/* CompanionSurfaceCard(isWarm = true): 16 dp corners, the pal bubble's warm fill, a faint line, a 1 dp lift */
.wa-coin-unlock-sheet-card {
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--md-outline-variant) 40%, transparent);
    background: var(--wa-pal-bubble);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.wa-coin-unlock-sheet-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--md-secondary-container);
    color: #000000;
}
.wa-coin-unlock-sheet-lock svg { width: 24px; height: 24px; }
.wa-coin-unlock-sheet-cost { margin: 20px 0 0; font-size: calc(18px * var(--wa-text-scale, 1)); line-height: calc(24px * var(--wa-text-scale, 1)); text-align: center; color: var(--md-on-surface); }
.wa-coin-unlock-sheet-confirm { width: 100%; margin-top: 20px; }
/* Not now: DrawTextButton in on-surface-variant, 16 dp above and below */
.wa-coin-unlock-sheet-cancel {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--md-on-surface-variant);
    font: inherit;
    font-size: calc(16px * var(--wa-text-scale, 1));
    line-height: calc(20px * var(--wa-text-scale, 1));
    font-weight: 500;
    cursor: pointer;
}
.wa-coin-unlock-sheet-cancel:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ==================== the pal's feedback ask, second sheet ("Are you sure?") ==================== */

.wa-feedback-never-sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.wa-feedback-never-sheet-actions .wa-button { width: 100%; }
