/* ============================================================
   Vendor Reviews — matches Angular reviews.component.scss
   Scoped under .vp-page-wrap to avoid leaking into other areas
   ============================================================ */

/* ---- Toast notifications — identical to vendor-profile-manager ---- */
#vp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.vp-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}
.vp-toast.vp-toast-show {
    opacity: 1;
    transform: translateX(0);
}
.vp-toast-success { background: #28a745; }
.vp-toast-error   { background: #dc3545; }
.vp-toast-icon::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 15px;
}
.vp-toast-success .vp-toast-icon::before { content: '\f00c'; }
.vp-toast-error   .vp-toast-icon::before { content: '\f071'; }

/* Force FA icons to render correctly regardless of theme em/i resets */
.vp-page-wrap em.fas, .vp-page-wrap em.far, .vp-page-wrap em.fab,
.vsr-rating-wrap em.fas, .vsr-rating-wrap em.far, .vsr-rating-wrap em.fab,
.vp-page-wrap i.fas, .vp-page-wrap i.far, .vp-page-wrap i.fab,
.vsr-rating-wrap i.fas, .vsr-rating-wrap i.far, .vsr-rating-wrap i.fab {
    font-style: normal !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

/* btn-yellow for rating wrap (not covered by vendor-profile-manager scope) */
.vsr-rating-wrap .btn.btn-yellow {
    background: #ffd700 !important;
    color: #000 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 8px 28px;
    border: none;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.1) !important;
    cursor: pointer;
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}
.vsr-rating-wrap .btn.btn-yellow:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Review request jumbotron */
.vp-page-wrap .review_request_jumboo {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
}
.vp-page-wrap .review_request_jumboo h2 {
    flex: 1;
    margin-bottom: 0;
}
.vp-page-wrap .request_review_button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.vp-page-wrap .request_review_button a {
    margin: 0 !important;
}

/* Total review count */
.vp-page-wrap .total_review {
    padding-top: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

/* Review list */
.vp-page-wrap .review_list {
    padding-top: 30px;
}
.vp-page-wrap .review_item {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #fafafa;
}

/* Review header */
.vp-page-wrap .review_header {
    display: flex;
}
.vp-page-wrap .name_info {
    flex: 1;
}
.vp-page-wrap .review_user_name {
    font-size: 22px;
    font-weight: bold;
}
.vp-page-wrap .date_info {
    font-size: 13px;
    color: #6c757d;
}
.vp-page-wrap .rating_info {
    display: flex;
    justify-content: center;
    align-items: center;
}
.vp-page-wrap .rating_stars {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.vp-page-wrap .rating_star {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.vp-page-wrap .rating_star i,
.vp-page-wrap .rating_star em {
    font-size: 16px !important;
    line-height: 1 !important;
    width: 16px;
    height: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Rating summary — custom progress bars matching Angular */
.vp-page-wrap .rating_summary {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}
.vp-page-wrap .rating_indicator {
    flex-basis: 20%;
    padding: 10px;
    padding-right: 25px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}
.vp-page-wrap .rating_indicator_label {
    font-size: 13px;
    margin-bottom: 4px;
}
.vp-page-wrap .rating_indicator_progress {
    width: 100%;
}
.vp-page-wrap .progress_track {
    width: 100%;
    height: 5px;
    background-color: #ccc;
}
.vp-page-wrap .progress_value {
    background-color: green;
    height: 5px;
}
.vp-page-wrap .rating_value_text {
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
}

/* Review note */
.vp-page-wrap .review_note {
    padding-top: 10px;
    font-size: 16px;
}

/* Review images */
.vp-page-wrap .review_images {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
}
.vp-page-wrap .review_image > img {
    width: 150px;
    height: 150px;
    margin-right: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    object-fit: cover;
}

/* Reply container */
.vp-page-wrap .reply_container {
    padding-left: 30px;
    padding-top: 20px;
}
.vp-page-wrap .reply_header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.vp-page-wrap .replies {
    background-color: #dee2e6;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.vp-page-wrap .reply_item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}
.vp-page-wrap .reply_item:last-child {
    border-bottom: none;
}
.vp-page-wrap .reply_content {
    display: flex;
}
.vp-page-wrap .reply_content_left {
    flex: 1;
}
.vp-page-wrap .reply_user_name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.vp-page-wrap .reply_message {
    font-size: 16px;
    white-space: pre-wrap;
}
.vp-page-wrap .reply_action_bar {
    display: flex;
    padding-top: 20px;
}
.vp-page-wrap .reply_action_bar_left {
    flex: 1;
    padding-top: 10px;
    display: flex;
    align-items: flex-end;
}
.vp-page-wrap .reply_action_bar_right {
    display: flex;
    align-items: flex-end;
}
.vp-page-wrap .time_stamp {
    cursor: pointer;
    font-size: 12px;
    color: #6c757d;
}
.vp-page-wrap .reply_edit {
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
}
.vp-page-wrap .reply_edit:hover {
    color: #000;
    text-decoration: underline;
}
.vp-page-wrap .reply_delete {
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}
.vp-page-wrap .reply_delete:hover {
    color: red;
    text-decoration: underline;
}

/* Reply form */
.vp-page-wrap .review_reply {
    margin-top: 10px;
}
.vp-page-wrap .review_reply .btn-yellow {
    margin: 0;
    width: fit-content;
    font-size: 13px;
}

/* No reviews */
.vp-page-wrap .no_reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-style: italic;
    font-weight: bold;
}

/* Pagination */
.vp-page-wrap .custom_pagination {
    display: flex !important;
    justify-content: center !important;
    margin-top: 16px;
}
.vp-page-wrap .custom_pagination .pagination {
    display: flex;
    justify-content: center !important;
    flex-wrap: wrap;
}

/* ============================================================
   Lightbox — matches Angular lightBox / mySlides / gallerBox
   ============================================================ */
.vp-page-wrap .lightBox .modal-header {
    padding: 0;
    border: 0;
}
.vp-page-wrap .lightBox .close {
    z-index: 99;
    background: #ffd700;
    opacity: 1;
    color: #040404;
    height: 30px;
    width: 30px;
    line-height: 0;
    padding: 5px;
    border-radius: 50%;
    top: 4px;
    right: 6px;
    text-align: center;
}
.vp-page-wrap .lightBox .close span {
    padding-bottom: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-page-wrap .mySlides {
    border-radius: 3px;
    min-height: 500px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    width: 100%;
}
.vp-page-wrap .mySlides img {
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    max-height: 500px;
    max-width: 100%;
    height: inherit;
    display: block;
    position: absolute;
}
.vp-page-wrap .gallerBox .close {
    font-size: 35px;
    color: #fff;
    right: 13px;
    top: -12px;
}
.vp-page-wrap .prev,
.vp-page-wrap .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
.vp-page-wrap .next {
    right: 15px;
    border-radius: 3px 0 0 3px;
}
.vp-page-wrap .prev:hover,
.vp-page-wrap .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.vp-page-wrap .numbertext {
    font-size: 13px;
    color: #333;
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 2;
}

/* Responsive */
@media (max-width: 480px) {
    .vp-page-wrap .review_request_jumboo h2 {
        font-size: 18px;
    }
    .vp-page-wrap .review_request_jumboo .btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* ============================================================
   Review Request view — rendered inside .vp-page-wrap
   Matches Angular review-request.component.scss exactly
   ============================================================ */

.vp-page-wrap .request_review_form,
.vp-page-wrap .request_review_form_preview {
    border: 1px solid #ccc;
    padding: 20px;
    margin: auto;
    margin-top: 20px;
}
#vsr-rr-message {
    min-height: 80px;
    resize: vertical;
    overflow: auto;
}

.vp-page-wrap .send_request_button {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
}
.vp-page-wrap .optional {
    color: #607d8b;
}
.vp-page-wrap .preview_buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-page-wrap .blue_link {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
}
.vp-page-wrap .blue_link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.vp-page-wrap .userDetails_preview_label {
    font-size: 14px;
    font-weight: bold;
    margin-top: 30px;
}
.vp-page-wrap .request_review_log {
    padding-top: 30px;
}
.vp-page-wrap .request_review_log h1 {
    text-decoration: underline;
}
.vp-page-wrap .total_request {
    padding-top: 30px;
    font-size: 18px;
    font-weight: bold;
}
.vp-page-wrap .review_request_list {
    margin-top: 30px;
    border-top: 1px solid #ccc;
}
.vp-page-wrap .request_log_item {
    padding: 20px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}
.vp-page-wrap .log_item_header {
    display: flex;
}
.vp-page-wrap .log_item_header_left {
    flex: 1;
}
.vp-page-wrap .log_item_header_right {
    padding-right: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.vp-page-wrap .request_log_item .username {
    font-size: 16px;
    font-weight: normal;
}
.vp-page-wrap .request_log_item .useremail {
    font-size: 12px;
    font-weight: bold;
}
.vp-page-wrap .request_log_item .message {
    padding-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: justify;
}

@media (max-width: 480px) {
    .vp-page-wrap .request_review_form h2,
    .vp-page-wrap .request_review_form_preview h2 {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 20px;
    }
    .vp-page-wrap .request_review_log h1 {
        font-size: 24px;
    }
    .vp-page-wrap .total_request {
        padding-top: 0;
    }
    .vp-page-wrap .review_request_list {
        margin-top: 10px;
    }
    .vp-page-wrap .request_log_item .message {
        font-size: 15px;
    }
    .vp-page-wrap .userDetails_preview_label {
        margin-top: 10px;
    }
}

/* ============================================================
   Preview card — RPK catering card visual pattern
   Scoped to .vsr-preview-card so nothing else is affected
   ============================================================ */

.vsr-preview-card {
    border: 1px solid #e6dacd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    margin: 20px auto;
    padding: 0;
}

/* Header strip */
.vsr-preview-card__header {
    background: #f9f5f0;
    border-bottom: 1px solid #e6dacd;
    padding: 10px 20px;
}

.vsr-preview-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b6a4e;
}

/* Sections */
.vsr-preview-card__section {
    padding: 16px 20px;
    border-bottom: 1px solid #e6dacd;
}

.vsr-preview-card__section:last-of-type {
    border-bottom: none;
}

.vsr-preview-card__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b6a4e;
    margin-bottom: 8px;
}

/* User details */
.vsr-preview-card__user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.vsr-preview-card__user-email,
.vsr-preview-card__user-city {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Email body */
.vsr-preview-card__dear {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.vsr-preview-card__message-text {
    font-size: 14px;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.vsr-preview-card__body-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.vsr-preview-card__review-link {
    margin-top: 6px;
}

.vsr-preview-card__review-link a {
    color: #007bff;
    text-decoration: underline;
    font-size: 14px;
}

/* Actions row */
.vsr-preview-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f9f5f0;
    border-top: 1px solid #e6dacd;
}

.vsr-preview-card__edit-btn {
    font-size: 13px;
    font-weight: 500;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.vsr-preview-card__edit-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Send button — matches RPK add-to-cart button style */
.vsr-preview-card__send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #f5c500;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
    line-height: 1;
}

.vsr-preview-card__send-btn:hover {
    background: #e0b400;
}

.vsr-preview-card__send-btn:active {
    transform: scale(.97);
}

.vsr-preview-card__send-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ============================================================
   Vendor Rating form — [vendor_rating] shortcode
   Matches Angular vendor-ratings.component
   ============================================================ */

.vsr-rating-wrap .vsr-rating-container {
    min-height: 100vh;
}

/* The outer row fills the viewport height; right column stays fixed */
.vsr-rating-wrap .vsr-rating-container > .row {
    min-height: 100vh;
}

/* Left column: scrollable, full height */
.vsr-rating-wrap .vsr-rating-container > .row > .col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Close button */
.vsr-rating-wrap .posAbsClose {
    position: absolute;
    cursor: pointer;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Left scrollable area — sits above the sticky footer nav */
.vsr-rating-wrap .overflowStyle {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}
.vsr-rating-wrap .w160 {
    width: 160px;
}
.vsr-rating-wrap .brdr10 {
    border-radius: 10px;
}
.vsr-rating-wrap .show_pointer {
    cursor: pointer;
}

/* hr after progress bar */
.vsr-rating-wrap hr {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    border: none !important;
    height: 1px !important;
    background-color: #e9ecef !important;
    opacity: 1 !important;
}

.vsr-rating-wrap .error-msg {
    color: red;
    font-size: 12px;
}

/* Tooltip */
.vsr-rating-wrap .ttooltip {
    display: inline-block;
    position: relative;
}
.vsr-rating-wrap .ttooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #000;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    font-size: 12px;
    position: absolute;
    z-index: 10;
    bottom: 95%;
    left: 50%;
    margin-left: -72px;
}
.vsr-rating-wrap .ttooltip:hover .tooltiptext {
    visibility: visible;
}

/* Badge */
.vsr-rating-wrap .badge {
    font-size: 15px;
    color: #fff;
}

/* Stars */
.vsr-rating-wrap .vsr-star {
    cursor: pointer;
    font-size: 1.2em;
}
.vsr-rating-wrap .starsRow {
    flex-wrap: wrap;
    align-items: center;
}

/* Recommend toggle — pill buttons matching Angular switchBtnStyle */
.vsr-rating-wrap .vsr-switch-btn {
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #ccc;
}
.vsr-rating-wrap .vsr-switch-btn .btn {
    border: none;
    background: #fff;
    color: #333;
    padding: 6px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: 0;
    text-transform: uppercase;
}
.vsr-rating-wrap .vsr-switch-btn .btn:focus {
    box-shadow: none;
    outline: none;
}
.vsr-rating-wrap .vsr-switch-btn .switchBtnActive {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #000;
}

/* Image upload */
.vsr-rating-wrap .uploadImageSection {
    border: 2px dashed #d7cfcf;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.vsr-rating-wrap .vendorUpPics {
    object-fit: contain;
    height: 150px;
    width: 100%;
}

/* Right panel — full viewport height, sticky, background image fills it */
.vsr-rating-wrap .col-lg-6.px-0 {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #33242d;
}
.vsr-rating-wrap .fullWidthImg {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(51,36,45,0.3), rgba(3,3,3,0.3)),
                url('../login-bg1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.vsr-rating-wrap .col-lg-6.px-0 .h-100 {
    position: relative;
    z-index: 1;
    height: 100vh !important;
}
.vsr-rating-wrap .review_wedding_text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
}

/* Footer nav — pinned to the bottom of the left column */
.vsr-rating-wrap .border-top {
    flex-shrink: 0;
    background: #fff;
    z-index: 5;
    border-top: 1px solid #dee2e6 !important;
}

@media (max-width: 991px) {
    /* Right panel hidden via d-none d-lg-block — left column takes full width */
    .vsr-rating-wrap .vsr-rating-container > .row > .col-lg-6:first-child {
        height: auto;
        overflow: visible;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .vsr-rating-wrap .overflowStyle {
        overflow-y: visible;
        max-height: none;
        flex: none;
    }
    .vsr-rating-wrap .border-top {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .vsr-rating-wrap .starsRow {
        justify-content: flex-end;
    }
    .vsr-rating-wrap .starsRow .mr-2 {
        margin-right: 0 !important;
    }
    .vsr-rating-wrap .badge {
        margin-top: 5px;
    }
}
