
.error {
	color: #CC0000;
}

/* Chat Interface Styles */
.help-message {
	margin-bottom: 15px;
	max-width: 80%;
	clear: both;
}

.help-user-message {
	float: right;
}

.help-assistant-message {
	float: left;
}

.help-message-content {
	padding: 12px 16px;
	border-radius: 18px;
	word-wrap: break-word;
	font-size: 14px;
	line-height: 1.4;
}

.help-user-message .help-message-content {
	background-color: #007AFF;
	color: white;
	border-bottom-right-radius: 4px;
}

.help-assistant-message .help-message-content {
	background-color: #E5E5EA;
	color: #000;
	border-bottom-left-radius: 4px;
}

.help-message-time {
	font-size: 11px;
	color: #8E8E93;
	margin-top: 4px;
	text-align: center;
}

.help-typing-indicator {
	display: none;
	font-style: italic;
	color: #8E8E93;
	font-size: 12px;
}

/* Welcome message styling - full width and centered */
.help-welcome-message {
	margin-bottom: 15px;
	width: 100%;
	text-align: left;
}

.help-welcome-content {
	padding: 16px;
	background-color: #F0F0F0;
	border-radius: 12px;
	border: 1px solid #E0E0E0;
	font-size: 14px;
	line-height: 1.5;
}

#chat_messages {
	overflow-y: auto;
	max-height: calc(100vh - 280px);
	padding-bottom: 20px;
}

#chat_input_area {
	z-index: 2000 !important;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Adjust content padding for help page to account for fixed input */
#page_help .ui-content {
	padding-bottom: 140px !important;
}

#chat_question {
	border: 1px solid #ccc !important;
	border-radius: 20px !important;
	padding: 10px 15px !important;
	font-size: 14px !important;
	resize: none !important;
}

#chat_question:focus {
	border-color: #007AFF !important;
	outline: none !important;
}

#chat_send {
	min-width: 40px !important;
	height: 40px !important;
	border-radius: 20px !important;
}

.chat-quick-actions {
	margin: 10px 0;
	text-align: center;
}

.chat-quick-action {
	display: inline-block;
	margin: 5px;
	padding: 8px 12px;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 15px;
	font-size: 12px;
	color: #007AFF;
	text-decoration: none;
	cursor: pointer;
}

.chat-quick-action:hover {
	background-color: #e0e0e0;
}

/* Clear floats after messages */
#chat_messages::after {
	content: "";
	display: table;
	clear: both;
}

div#links {
	text-align: center;
}

div#links a {
	display: block;
	margin-bottom: 10px;
}

.ui-field-contain {
	border: none;
}

.wrap {
    white-space: normal !important;
}

/* Low balance warning styles */
#balance_container.low-balance-warning, 
#balance_container_extend.low-balance-warning,
div[data-role="page"] #balance_container.low-balance-warning,
div[data-role="page"] #balance_container_extend.low-balance-warning,
#page_park #balance_container.low-balance-warning,
#page_extend_or_new_2 #balance_container_extend.low-balance-warning {
    background-color: #22aadd !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin: 5px 0 !important;
    font-weight: bold !important;
}

#balance_container.low-balance-warning a, 
#balance_container_extend.low-balance-warning a,
div[data-role="page"] #balance_container.low-balance-warning a,
div[data-role="page"] #balance_container_extend.low-balance-warning a,
#page_park #balance_container.low-balance-warning a,
#page_extend_or_new_2 #balance_container_extend.low-balance-warning a {
    color: white !important;
    text-decoration: underline !important;
}

#balance_container.low-balance-warning p,
#balance_container_extend.low-balance-warning p,
div[data-role="page"] #balance_container.low-balance-warning p,
div[data-role="page"] #balance_container_extend.low-balance-warning p,
#page_park #balance_container.low-balance-warning p,
#page_extend_or_new_2 #balance_container_extend.low-balance-warning p {
    color: white !important;
    margin: 0 !important;
}

.low-balance-topup {
    display: none;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Success message styles for parking payment confirmation */
.payment-success {
    background-color: #28a745 !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin: 5px 0 !important;
    font-weight: bold !important;
}

.payment-success h3 {
    color: white !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.2em !important;
}

/* Error message styles for insufficient funds */
.payment-error {
    background-color: #dc3545 !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin: 5px 0 !important;
    font-weight: bold !important;
}

.payment-error a {
    color: white !important;
    text-decoration: underline !important;
}

/* Font Awesome Icons - Minimal styling to avoid conflicts */
i.fa {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Increase spacing between My Account menu groups */
#page_my_account ul[data-role="listview"][data-inset="true"] {
    margin-bottom: 2em;
}

/* iOS Safe Area Support for Bottom Navigation */
/* Increase height and padding for bottom navbar to prevent iOS home indicator overlap */
div[data-role="footer"][data-position="fixed"] {
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    min-height: calc(2.5em + env(safe-area-inset-bottom, 0)) !important;
}

div[data-role="footer"][data-position="fixed"] div[data-role="navbar"] {
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
}

div[data-role="footer"][data-position="fixed"] div[data-role="navbar"] ul li a {
    padding-bottom: calc(0.5em + env(safe-area-inset-bottom, 0)) !important;
    min-height: calc(2.5em + env(safe-area-inset-bottom, 0)) !important;
}

/* Fallback for older iOS versions without safe-area support */
@supports not (padding-bottom: env(safe-area-inset-bottom)) {
    div[data-role="footer"][data-position="fixed"] {
        min-height: 3.5em !important;
    }

    div[data-role="footer"][data-position="fixed"] div[data-role="navbar"] ul li a {
        padding-bottom: 1em !important;
        min-height: 3em !important;
    }
}