/* Support page */

.btm-sts-get-plan-button {
	display: inline-block;
	background-color: #d56a00;
	color: #ffffff !important;
	padding: 6px 16px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}
.btm-sts-get-plan-button:hover {
	background-color: #bd5c00;
}

.btm-account-support {
	padding: 20px;
	font-size: 17px;
	line-height: 1.7;
}

.btm-account-support h3 {
	margin-top: 0;
}


/* Submit page */

.btm-sts-ticket-submit-form-wrap {
    
    padding: 24px 28px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
	background: #f9f9f942;

}
	
@media (min-width: 1024px) {
    .btm-sts-ticket-submit-page-wrap {
        padding-left: 30px;
		padding-right: 30px;
		padding-top: 15px;
    }
}	
	
#btm_sts_subject,
#btm_sts_category,
#btm_sts_message {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
	

.btm-sts-button-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 10px;
}

.btm-sts-inline-file-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btm-sts-upload-note {
    font-size: 14px;
    color: #555;
}	
	
.btm-sts-add-file-button {
    display: inline-block;
    background-color: #1771A1;
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}
.btm-sts-add-file-button:hover {
    background-color: #125c84;
}
.btm-sts-add-file-button:disabled {
    background-color: #ccc;
    cursor: default;
}

#btm-sts-file-list,
#btm-sts-reply-file-list	{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
	
	

.btm-sts-file-card {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btm-sts-file-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
    display: inline-block;
}

.btm-sts-file-card button {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #c00;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Tickets list*/

.btm-sts-submit-ticket-button {
	display: inline-block;
	background-color: #0b6ee0;
	color: #fff !important;
	padding: 6px 16px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.btm-sts-submit-ticket-button:hover {
	background-color: #095ec0;
}

.btm-sts-ticket-list {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
}

.btm-sts-ticket-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 10px;
	border-bottom: 1px solid #ddd;
}

.btm-sts-ticket-list .btm-sts-ticket-link:first-child .btm-sts-ticket-item {
	border-top: 1px solid #ddd;
}

.btm-sts-ticket-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.btm-sts-ticket-link:hover .btm-sts-ticket-title {
	color: black;
}

.btm-sts-ticket-left {
	flex-grow: 1;
}

.btm-sts-ticket-title {
	font-size: 16px;
	margin-bottom: 4px;
}

.btm-sts-ticket-title.bold {
	font-weight: 700;
}

.btm-sts-ticket-meta {
	font-size: 14px;
	color: #555;
}

.btm-sts-waiting-admin {
	color: #575a63;
	font-weight: 500;
}

.btm-sts-waiting-user {
	color: #cd5100;
	font-weight: 500;
}

.btm-sts-ticket-right {
	margin-left: 20px;
	min-width: 80px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.btm-sts-ticket-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
}

.btm-sts-ticket-status.status-new {
	background-color: #0073aa;
}

.btm-sts-ticket-status.status-open {
	background-color: #e57d1d;
}

.btm-sts-ticket-status.status-closed {
	background-color: #7f8c8d;
}

.btm-sts-ticket-pagination {
	margin-top: 30px;
	text-align: center;
}

.btm-sts-ticket-pagination a,
.btm-sts-page-current {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 4px;
	border-radius: 4px;
	background-color: #e5e5e5;
	color: #333;
	text-decoration: none;
	font-weight: 500;
}

.btm-sts-page-current {
	background-color: #4e4e4e;
	color: #fff;
}

/* Ticket view page*/

.btm-sts-back-link-wrapper {
	margin-bottom: 10px;
	padding-left: 5px;
}

.btm-sts-back-link {
	display: inline-block;
	font-size: 14px;
	text-decoration: none;
	color: #3e3e3e;
}

.btm-sts-back-link:hover {
	text-decoration: none;
	color: #0b7ac1;
}


#btm-sts-close-confirm {
	background: #fdf6f6;
	border: 1px solid #e0cfcf;
	padding: 15px;
	border-radius: 4px;
}

#btm-sts-reply-form-wrapper {
	padding: 0px 5px;
}

.btm-sts-ticket-view {
	padding: 10px 20px;
}

.btm-sts-ticket-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;


	margin-bottom: 10px;

}

.btm-sts-ticket-header-wrapper {

	background: #f7f7f7;
	padding: 15px 20px;
	margin-bottom: 10px;
	border-radius: 8px;
}

.btm-sts-ticket-header-left h2 {
	margin: 0 0 4px;
	font-size: 21px;
}

.btm-sts-ticket-header-right {
	padding-top: 8px;
}

.btm-sts-ticket-category {
	font-size: 13px;
	color: #666;
}

.btm-sts-ticket-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}
/*
    .btm-sts-ticket-status.status-new { background-color: #0073aa; }
    .btm-sts-ticket-status.status-open { background-color: #f39c12; }
    .btm-sts-ticket-status.status-closed { background-color: #7f8c8d; }
*/
.btm-sts-ticket-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btm-sts-ticket-action-reply {
    background-color: #0d8ce2;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
	min-width: 120px;
}

.btm-sts-ticket-action-reply:hover {
    background-color: #0b78c3;
}
		
.btm-sts-ticket-action-reply.btm-sts-reply-opened {
    background-color: #f2f2f2;
	border: 1px solid #ccc;
    color: #444;
    cursor: default;
}

.btm-sts-ticket-action-reply.btm-sts-reply-opened:hover {
    background-color: #e6e6e6;
}			
		

.btm-sts-ticket-action-close {
    background-color: #f2f2f2;
    color: #444;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btm-sts-ticket-action-close:hover {
    background-color: #e6e6e6;
}
		
.btm-sts-ticket-confirm-yes,
.btm-sts-ticket-confirm-no {
    padding: 8px 12px;
    font-size: 14px;
	min-height: 0;
    line-height: normal;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #fff;
}

.btm-sts-ticket-confirm-yes {
    background-color: #d63638;
}

.btm-sts-ticket-confirm-yes:hover {
    background-color: #b8282a;
}

.btm-sts-ticket-confirm-no {
    background-color: #999;
}

.btm-sts-ticket-confirm-no:hover {
    background-color: #7a7a7a;
}

.btm-sts-reply-actions-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
	padding-bottom: 20px;
    flex-wrap: wrap; /* чтобы не ломалось на узких экранах */
    align-items: center;
}

.btm-sts-add-file-button-light {
    background: #f3f3f3;
    color: #333;
    border: 1px solid #ccc;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
	min-width: 100px;
}

.btm-sts-add-file-button-light:hover {
    background-color: #e0e0e0;
}
		
.btm-sts-add-file-button-light:disabled {
    background-color: #e9e9e9;
    color: #aaa;
    border-color: #ddd;
    cursor: default;
    opacity: 0.7;
}


    
.btm-sts-submit-ticket-reply-button {
	display: inline-block;
	background-color: #0b6ee0;
	color: #fff !important;
	padding: 8px 14px;
	border: 1px solid #0b6ee0;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	min-height: 0px;
}

.btm-sts-submit-ticket-reply-button:hover {
	background-color: #095ec0;
}		

.btm-sts-ticket-thread {
	margin-bottom: 30px;
	margin-top: 30px;
}

.btm-sts-ticket-msg {

	padding: 25px 12px;
	border-bottom: 1px solid #00000012;
}

.btm-sts-ticket-msg.first-msg {
	border-top: 1px solid #00000012;

}



.btm-sts-ticket-msg-meta-row {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
	flex-wrap: wrap; /* для узких экранов */
}

.btm-sts-reply-label {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #4a4a4a;
	background-color: #eee; /* fallback */
	white-space: nowrap;
}

.btm-sts-label-user {
	background-color: #e8f5e9;
}

.btm-sts-label-admin {
	background-color: #e3f2fd
}		

.btm-sts-ticket-msg-meta-date {
	font-size: 14px;
	color: #888;
}

.btm-sts-ticket-msg-body {
	font-size: 16px;
	white-space: pre-wrap;
	margin-top: 20px;
}

.btm-sts-attachment-tag {
	display: inline-block;
	background:#f4f4f4;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	margin: 15px 6px 0 0;
	text-decoration: none;
	color: #4f4f4f;
}

.btm-sts-attachment-tag:hover {
	background: #eeeeee;
	color: #333;
}