import styled, { css } from 'styled-components'; import { getMediaQuery, applyDarkMode } from '../../utils'; import THLogo from './assets/THLogo'; const BODY_TEXT = css` font-family: 'Roboto'; font-weight: 400; font-size: 16px; line-height: 1.5; color: #1a1a1a; `; export const Container = styled.div<{ isApp?: boolean; $isOnChannelPage?: boolean; }>` background-color: #e7edf6; padding: 20px; border-top: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'none' : '1px dashed'}; border-bottom: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'none' : '1px dashed'}; border-color: #cccccc; ${getMediaQuery('xs', 'md')} { border-top: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'none' : '1px dashed'}; border-bottom: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'none' : '1px dashed'}; border-color: #cccccc; padding: 20px; } ${getMediaQuery('xs', 'sm')} { margin-inline: -20px; } ${({ isApp }) => applyDarkMode( ` background-color: #121212 !important; border-color: #595959 !important; `, isApp )}; `; export const ContentWrapper = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; ${getMediaQuery('xs', 'sm')} { flex-direction: column; gap: 16px; } `; export const LeftSection = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; align-items: flex-start; flex: 1 1 auto; min-width: 0; gap: 8px; flex-direction: column; svg { width: 100%; max-width: 195px; height: auto; align-self: flex-start; } ${getMediaQuery('xs', 'sm')} { width: 100%; } `; export const TextContainer = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; flex-direction: column; gap: 12px; ${getMediaQuery('xs', 'sm')} { gap: 24px; } `; export const Description = styled.div<{ isApp?: boolean }>` font-family: 'Times Digital W04 Regular'; font-weight: 400; font-style: normal; line-height: 150%; font-size: 16px; letter-spacing: 0em; color: #1a1a1a; ${({ isApp }) => applyDarkMode( ` color: #E6E6E6 !important; `, isApp )}; `; export const RightSection = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; flex-direction: column; align-items: flex-end; gap: 24px; flex: 0 0 auto; ${getMediaQuery('xs', 'sm')} { gap: 24px; width: 100%; align-items: flex-start; } `; export const ContactInfo = styled.div` display: flex; flex-direction: column; gap: 4px; `; export const PhoneLabel = styled.a<{ isApp?: boolean }>` text-decoration: none; display: flex; align-items: baseline; gap: 8px; font-family: 'Times Digital W04 Regular'; font-weight: 400; line-height: 1.5; font-size: 18px; letter-spacing: 0em; color: #1a1a1a; cursor: pointer; white-space: nowrap; ${({ isApp }) => applyDarkMode( ` color: #BFBFBF !important; `, isApp )}; &:hover { text-decoration: underline; } `; export const PhoneNumber = styled.span<{ isApp?: boolean }>` font-family: 'Times Modern'; font-weight: 700; line-height: 1.125; font-size: 32px; letter-spacing: 0em; color: #1a1a1a; ${({ isApp }) => applyDarkMode( ` color: #E6E6E6!important; `, isApp )}; `; export const WorkingHoursContainer = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; flex-wrap: wrap; gap: 8px; ${({ $isOnChannelPage }) => !$isOnChannelPage && css` ${getMediaQuery('md', 'xl')} { flex-direction: column; gap: 4px; } `}; `; export const WorkingHoursText = styled.div<{ isApp?: boolean }>` font-family: 'Times Digital W04 Regular'; font-weight: 400; line-height: 1.5; font-size: 18px; letter-spacing: 0em; color: #1a1a1a; ${({ isApp }) => applyDarkMode( ` color: #BFBFBF !important; `, isApp )}; `; export const ButtonsContainer = styled.div<{ $isOnChannelPage?: boolean }>` display: flex; flex-direction: column; gap: 16px; ${getMediaQuery('xs', 'sm')} { width: 100%; } ${getMediaQuery('sm')} { flex-direction: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'row' : 'column'}; } ${getMediaQuery('md')} { flex-direction: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'row' : 'column'}; } ${getMediaQuery('lg')} { flex-direction: ${({ $isOnChannelPage }) => $isOnChannelPage ? 'row' : 'column'}; max-width: ${({ $isOnChannelPage }) => $isOnChannelPage ? '285px' : '100%'}; } ${getMediaQuery('xl')} { max-width: ${({ $isOnChannelPage }) => $isOnChannelPage ? '195px' : '100%'}; } `; const BaseButton = styled.a` text-decoration: none; border-radius: 0px; width: 110px; min-width: 80px; height: 40px; box-sizing: border-box; font-family: 'Roboto'; font-weight: 500; line-height: 1.5; font-size: 14px; letter-spacing: 0em; display: flex; align-items: center; justify-content: center; padding: 12px 16px; cursor: pointer; transition: all 0.2s ease; `; export const PrimaryButton = styled(BaseButton)<{ disabled?: boolean; isApp?: boolean; }>` border: none; background-color: #005c8a; color: #ffffff; cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')}; opacity: ${({ disabled }) => (disabled ? 0.6 : 1)}; ${getMediaQuery('xs', 'sm')} { width: 100%; } div[data-lp-event] { cursor: pointer; font-family: 'Roboto'; font-weight: 500; line-height: 1.5; font-size: 16px; letter-spacing: 0em; } &:hover { background-color: #00527a; } ${({ isApp }) => applyDarkMode( ` background-color: white !important; color: black !important; &:hover { background-color: white !important; } `, isApp )}; `; export const StyledTHLogo = styled(THLogo)<{ isApp?: boolean }>` .th-logo-primary { fill: #1d1d1d; } .th-logo-accent { fill: #2d79ad; } ${({ isApp }) => applyDarkMode( ` .th-logo-primary { fill: #E6E6E6; } .th-logo-accent { fill: #5C93BE; } `, isApp )}; `; export const LearnMoreButton = styled.button<{ isApp?: boolean; $mobile?: boolean; $expanded?: boolean; }>` display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-family: 'Roboto'; font-weight: 700; font-size: 16px; line-height: 1.5; color: #1a1a1a; svg { width: 20px; height: 20px; transition: transform 0.2s ease; margin-top: 3px; transform: ${({ $expanded }) => $expanded ? 'rotate(180deg)' : 'rotate(0deg)'}; path { fill: #1a1a1a; } } ${({ $mobile }) => $mobile ? css` display: none; align-self: center; ${getMediaQuery('xs', 'sm')} { display: inline-flex; } ` : css` ${getMediaQuery('xs', 'sm')} { display: none; } `}; &:hover { text-decoration: none; } ${({ isApp }) => applyDarkMode( ` color: #E6E6E6 !important; svg path { fill: #E6E6E6 !important; } `, isApp )}; `; export const LearnMoreLabel = styled.span` display: inline-block; text-align: left; `; export const ExpandableSection = styled.div<{ isApp?: boolean }>` margin-top: 24px; display: flex; flex-direction: column; gap: 24px; `; export const ExpandableIntro = styled.p<{ isApp?: boolean }>` ${BODY_TEXT} margin: 0; max-width: 720px; ${({ isApp }) => applyDarkMode( ` color: #BFBFBF !important; `, isApp )}; `; export const ColumnsGrid = styled.div<{ $columnCount?: 2 | 3 | 4 }>` display: grid; grid-template-columns: 1fr; gap: 24px; ${getMediaQuery('sm')} { grid-template-columns: repeat(2, 1fr); } ${getMediaQuery('md')} { grid-template-columns: ${({ $columnCount = 4 }) => `repeat(${$columnCount}, 1fr)`}; } `; export const ColumnItem = styled.div` display: flex; flex-direction: column; gap: 8px; `; export const ColumnTitle = styled.h4<{ isApp?: boolean }>` font-family: 'Times Modern'; font-weight: 700; font-size: 18px; line-height: 1.25; color: #1a1a1a; margin: 0; a, span { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; } ${({ isApp }) => applyDarkMode( ` color: #E6E6E6 !important; `, isApp )}; `; export const ColumnDescription = styled.p<{ isApp?: boolean }>` ${BODY_TEXT} margin: 0; white-space: pre-line; ${({ isApp }) => applyDarkMode( ` color: #BFBFBF !important; `, isApp )}; `; export const ColumnPhoneLink = styled.a<{ isApp?: boolean }>` ${BODY_TEXT} text-decoration: none; cursor: pointer; &:hover, &:focus, &:active { text-decoration: none; color: #1a1a1a; } ${({ isApp }) => applyDarkMode( ` color: #E6E6E6 !important; `, isApp )}; `; export const ColumnPhoneNumber = styled.span<{ isApp?: boolean }>` ${BODY_TEXT} ${({ isApp }) => applyDarkMode( ` color: #E6E6E6 !important; `, isApp )}; `; export const ArticleBlockContainer = styled.div` padding-inline: 10px; margin-block-end: 25px; ${getMediaQuery('md')} { max-width: 80.8%; padding-inline: 0; margin-inline: auto; } ${getMediaQuery('lg')} { max-width: 56.2%; padding-inline: 0; margin-inline: auto; } `;