.puta-comments { margin-top: 24px; }
.puta-comment-form { margin-bottom: 30px; }
.puta-comment-form textarea { width: 100%; min-height: 100px; border: 1px solid #ddd; border-radius: 12px; padding: 14px; resize: vertical; outline: none; font-size: 14px; }
.puta-comment-form__bottom { display: flex; justify-content: flex-end; }
.puta-comment { display: flex; gap: 12px; margin-bottom: 24px; }
.puta-comment__avatar img { border-radius: 999px; width: 40px; height: 40px; margin-right: 12px; border: 1px solid #ebebeb; }
.puta-comment__content { flex: 1; }
.puta-comment__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.puta-comment__name { font-size: 14px; }
.puta-comment__time { font-size: 12px; color: #777; }
.puta-comment__text { font-size: 14px; line-height: 1.6; }
.puta-comment__actions { display: flex; gap: 12px; margin: 8px 0 16px; }
.puta-comment__actions button { border: 0; background: transparent; padding: 0; font-size: 13px; cursor: pointer; color: #666; }
.puta-comment__actions button:hover { color: #111; }
.puta-comment-reply-form { margin-top: 12px; }
.puta-comment-reply-form textarea { width: 100%; min-height: 80px; border-radius: 10px; border: 1px solid #ddd; padding: 12px; }
.puta-comment-reply-form__bottom { display: flex; justify-content: flex-end; gap: 10px; }
.puta-comment-reply-form button { border: 0; height: 38px; padding: 0 16px; border-radius: 8px; cursor: pointer; }

/* topic form */
.puta-topic-form {  padding: 20px; border: 1px solid #eee; border-radius: 16px; max-height: 0; overflow: hidden; transition: .5s; padding: 0; border-color: transparent; }
.puta-topic-form.active { max-height: 400px; padding: 20px; border-color: #eee; margin-bottom: 30px;}
.puta-topic-form__group { margin-bottom: 16px; }
.puta-topic-form input,
.puta-topic-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 12px; padding: 14px; outline: none; }
.puta-topic-form textarea { min-height: 110px; resize: vertical; }
.puta-topic-form button { height: 36px; border: 0; background: var(--primary-color); color: #fff; border-radius: 10px; padding: 0 20px; cursor: pointer; }

/* custom comment css */
.topic-wrap { padding: 18px; border: 1px solid #ebebeb; border-radius: 15px; }
.return-back a:hover { color: var(--primary-color); }
.single .puta-topic-card__meta { align-items: flex-start; margin-top: 0; }
.count-info::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); border-left: 2px solid #ebebeb; height: 80%; width: 2px; right: -2px; }
.save-topic-btn { border: 1px solid #ebebeb; border-radius: 6px; padding: 7px 18px; cursor: pointer; }
.save-topic-btn.active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.save-topic-btn:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* custom css comment */
.puta-comments-list { padding: 18px; border: 1px solid #ebebeb; border-radius: 15px; max-height: 762px; overflow-y: scroll; }
.puta-comments-list::-webkit-scrollbar { border-radius: 0; width: 5px; }
.puta-comments-list::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, 0.15); }
.puta-comments-list::-webkit-scrollbar-track { border-radius: 0; background-color: rgba(0, 0, 0, 0); }

/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.puta-comment-form { margin-bottom: 0; flex: 1; position: relative; }
.puta-comment-form__box { border-radius: 12px; padding: 0; }
.puta-comment-form textarea { width: 100%; background: transparent; border: 0; outline: none; resize: none; color: #e4e6eb; min-height: 80px; font-size: 14px; font-size: 15px; border: 1px solid #ebebeb; color: #000; }
.puta-comment-form textarea::placeholder { color: #b0b3b8; }
.puta-comment-form button { height: 28px; border: 0; padding: 6px 16px 8px; border-radius: 5px; background: var(--primary-color); color: #fff; cursor: pointer; font-size: 14px; position: absolute; top: 50%; transform: translateY(-50%); right: 12px; border: 1px solid var(--primary-color); transition: .3s; }
.puta-comment-form button:hover { background-color: #fff; color: var(--primary-color); }

/*
|--------------------------------------------------------------------------
| SUGGEST PLACE
|--------------------------------------------------------------------------
*/

.puta-place-suggest { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #ddd; border-radius: 8px; max-height: 220px; overflow-y: auto; z-index: 999; flex-wrap: wrap; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); }
.puta-place-suggest::-webkit-scrollbar { border-radius: 0; width: 5px; }
.puta-place-suggest::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, 0.15); }
.puta-place-suggest::-webkit-scrollbar-track { border-radius: 0; background-color: rgba(0, 0, 0, 0); }
.puta-place-item { display: flex; align-items: center; gap: 10px; width: 50%; padding: 10px 12px; cursor: pointer; }
.puta-place-item:hover { background: #f5f5f5; }
.puta-place-item img { width: 55px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.puta-place-name { font-size: 15px; font-weight: 600; }
.puta-place-address { font-size: 14px; color: #a3a3a3; }
.puta-place-card { display: flex; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: inherit; background: #fff; max-width: 440px; }
.puta-place-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; transition: .5s; overflow: hidden; flex-shrink: 0;}
.puta-place-card img:hover { transform: scale(1.1); }
.puta-place-card__content .title { font-weight: 600; margin-bottom: 4px; transition: 0.3s; }
.puta-place-card__content .title:hover { color: var(--primary-color); }
.puta-place-card__content .address { color: #666; font-size: 13px; margin-top: 8px; }
.puta-place-card__content button { cursor: pointer; margin-top: 8px; border: 1px solid #ebebeb; padding: 3px 12px; border-radius: 5px; font-size: 12px; transition: 0.3s; }
.puta-place-card__content button:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.puta-more-places-btn { margin-top: 8px; background: transparent; border: none; color: #2271b1; font-weight: 600; cursor: pointer; }
.puta-more-places-btn:hover { text-decoration: underline; }
/*
|--------------------------------------------------------------------------
| COMMENT
|--------------------------------------------------------------------------
*/

.puta-comment { --border-color: #c6c6c6; position: relative; display: flex; gap: 0; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #ebebeb; }
.puta-comment__avatar { flex-shrink: 0; position: relative; z-index: 1; }
.puta-comment__avatar img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.comment-option:hover { color: var(--primary-color); cursor: pointer; }

/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

.puta-comment__content { flex: 1; min-width: 0; }
.puta-comment__box {  }
.puta-comment__name { font-size: 14px; }
.puta-comment__text { font-size: 15px; line-height: 1.45; word-break: break-word; }
.puta-comment-form .puta-comment-form__box textarea { height: 36px; min-height: 36px; padding: 10px 72px 10px 12px; }


/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/

.puta-comment__actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.puta-comment__actions button,
.puta-comment__time { border: 0; background: transparent; color: #b0b3b8; font-size: 13px; cursor: pointer; padding: 0; }
.puta-comment__actions button:hover { text-decoration: underline; }
.puta-comment-like.liked { color: #df4a0f; }

/*
|--------------------------------------------------------------------------
| CHILDREN
|--------------------------------------------------------------------------
*/

.puta-comment-children { margin-top: 10px; }
.puta-comment-children .puta-comment:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.puta-comment-reply-form { margin-bottom: 0; position: relative; flex: 1; }
.puta-comment-reply-form .puta-comment__avatar { margin-top: 10px; }
.puta-comment-reply-wrap .wrap { width: 100%; display: flex; align-items: flex-start; }
.puta-comment-reply-form__bottom { position: absolute; top: 50%; transform: translateY(-50%); right: 6px; }
.puta-comment-cancel { background-color: #b0b0b0 !important; }
.puta-comment-form .puta-comment-reply-form__bottom button { font-size: 13px; padding: 6px 12px; height: 26px; position: relative; border: none; }
.puta-comment-children::before { content: ""; position: absolute; left: -35px; top: 40px; bottom: 52px; width: 2px; background: var(--border-color); border-radius: 999px; }
.puta-comment-children>.puta-comment::before { content: ""; position: absolute; left: -35px; top: -6px; width: 36px; height: 25px; border-left: 2px solid var(--border-color); border-bottom: 2px solid var(--border-color); border-bottom-left-radius: 14px; z-index: 1; }
.puta-comment-children>.puta-comment:last-child::after { content: ""; position: absolute; left: -35px; top: 10px; bottom: 0; width: 2px; background: #fff; }
.puta-comment.level-1.has-reply-box { position: relative; }
.puta-comment__content { position: relative; }
.puta-comment-reply-wrap { margin-top: 12px; }
.puta-comment-reply-wrap.border::before { content: ""; position: absolute; left: -35px; top: 32px; bottom: 52px; width: 2px; margin-top: 12px; background: var(--border-color); }
.puta-comment-reply-wrap.border::after { content: ""; position: absolute; left: -35px; bottom: 40px; width: 32px; height: 20px; border-left: 2px solid var(--border-color); border-bottom: 2px solid var(--border-color); border-bottom-left-radius: 14px; }

/*
|--------------------------------------------------------------------------
| LEVEL
|--------------------------------------------------------------------------
*/

.puta-comment.level-2,
.puta-comment.level-3 { margin-top: 10px; }
.puta-comment.level-3 { position: relative; }
.puta-comment.level-3 .puta-comment-reply-wrap { transform: translateX(-52px); width: calc(100% + 52px); }
/*
|--------------------------------------------------------------------------
| REPLY FORM
|--------------------------------------------------------------------------
*/

.puta-comment-reply-form { margin-top: 0; }
.puta-comment-reply-form textarea { border-radius: 13px; padding: 12px 140px 12px 12px; min-height: 54px; overflow: hidden; box-sizing: border-box; }
.puta-comment-reply-form__bottom { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
/*
|--------------------------------------------------------------------------
| TOGGLE COMMENT
|--------------------------------------------------------------------------
*/

.puta-comment-toggle { background: none; border: none; color: #65676b; cursor: pointer; padding: 0; }
.puta-comment-toggle:hover { text-decoration: underline; }
.puta-comment-children.hidden { display: none; }
/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) { 
/* 	.puta-comment-children>.puta-comment::before { left: -59px; width: 60px; }
	.puta-comment-children>.puta-comment:last-child::after {left: -59px;} */
	.puta-comment__actions {margin: 8px 0 8px;}
	.puta-place-card__content .title, .puta-place-card__content .address {display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 1;}
	.puta-place-card img { width: 54px; height: 50px; }
	.puta-comments-list {padding: 12px;}
	.puta-comment__avatar img { width: 36px; height: 36px; margin-right: 12px; }
}


@media screen and (max-width: 576px) {
	.puta-place-card__content .title {font-size: 15px;}
	.puta-comment__text { font-size: 14px; }
	.puta-comment-reply-form textarea {padding: 12px;}
	.puta-comment-reply-form textarea { padding: 12px 12px 24px 12px; }
	.puta-comment-reply-form__bottom { bottom: -16px; right: -2px; margin-top: 0; top: unset; }
	.puta-comment-form .puta-comment-reply-form__bottom button { font-size: 12px; padding: 4px 10px; height: 24px; position: relative; border: none; }
	.puta-comment-reply-wrap.border::after {bottom: 52px;}
	.puta-comment-reply-wrap.border::before, .puta-comment-children::before {bottom: 64px;}
	.puta-place-item {width: 100%;}
	.puta-place-item img { width: 48px; height: 42px; }
	.puta-place-name {font-size :14px;}
	.puta-place-address {font-size: 13px;}
}
















