.rndsand8_create_review {

    display: flex;
    background: #fff;
    padding: 11px;
    border-radius: 11px;
    height:fit-content;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: center;
    width: 100%;
    margin: 0 auto;
    z-index: 999;
    overflow-y: scroll;
    animation: bounce .5s linear both;
    transition: 0.5s;
}

.rndsand8_create_review_header {

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: fit-content;
    margin-bottom: 15px;
}

.rndsand8_create_review_title {

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    width: fit-content;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
}

.rndsand8_create_review_form {

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.rndsand8_create_review_title img {

    width: 151px;
    margin-top: 51px;
}

.rndsand8_create_review_form_text {

    color: #ccc;
    font-size: 16px;
    margin-bottom: 22px;
}

.rndsand8_create_review_form_submit {

    display: none;
    height: 50px;
    width: 222px;
    align-self: flex-start;
    text-align: center;
    font-size: 19px;
    padding: 12px;
    background-color: #3fb5ff;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: capitalize;
    &:hover {
        background-color: #078fe4;
    }
}

.input_field_error {

    border: 2px solid red !important;
}

.rndsand8_create_review_stars {

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.stars-row {
    
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
}

.stars-row:not(:checked) > input {

	display: none;
}

.stars-row:not(:checked) > label {

	float: right;
	width: 42px;
	padding: 0;
	cursor: pointer;
	font-size: 32px;
	line-height: 32px;
	color: lightgrey;
	text-shadow: 1px 1px #bbb;
}

.stars-row:not(:checked) > label:before {

	content: '★';
}

.stars-row > input:checked ~ label {

	color: gold;
	text-shadow: 1px 1px #c60;
}

.stars-row:not(:checked) > label:hover,
.stars-row:not(:checked) > label:hover ~ label {

	color: gold;
}

.stars-row > input:checked + label:hover,
.stars-row > input:checked + label:hover ~ label,
.stars-row > input:checked ~ label:hover,
.stars-row > input:checked ~ label:hover ~ label,
.stars-row > label:hover ~ input:checked ~ label {

	color: gold;
	text-shadow: 1px 1px goldenrod;
}

.rate-area > label:active {

	position: relative;
}

.rndsand8_create_review_message {

    display: none;
    width: 100%;
    margin-bottom: 15px;
}

.rndsand8_create_review_message_value {

    font-size: 17px;
    min-height: 85px;
}

*::placeholder {

    font-family: inherit;
    font-size: 14px;
    color: var(--text-muted) !important; 
}

.rndsand8_create_review_error {

    color: darkred;
    font-size: 13px;
    margin-bottom: 15px;
}

#rndsand8_create_review_success {

    font-size: 19px;
    font-weight: bold;
    position: relative;
    bottom: 15px;
    align-self: flex-start;
}

:root {
    --brand-blue: oklch(60% 0.2 250);
    --brand-blue-hover: oklch(50% 0.2 250);
    --bg-page: oklch(98% 0.01 240);
    --text-main: oklch(25% 0.05 240);
    --text-muted: oklch(55% 0.05 240);
    --glass-card: rgba(255, 255, 255, 0.95);
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Status Colors */
    --st-done-bg: #dcfce7; --st-done-text: #166534;
    --st-wait-bg: #fff7ed; --st-wait-text: #9a3412;
    --st-info-bg: #eff6ff; --st-info-text: #1e40af;
    --st-warn-bg: #fef9c3; --st-warn-text: #854d0e;
    --st-err-bg: #fee2e2; --st-err-text: #991b1b;
    
    --radius-xl: 24px;
    --radius-md: 12px;
    --shadow-lux: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.main-page-wrapper {

    font-family: 'Inter', sans-serif;
    background-color: var(--wd-main-bgcolor);
    color: var(--text-main);
    min-height: 100vh;
}

.wd-my-account-sidebar {

    border-inline-end: none !important;
}

.layout-container {
    
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-btn:hover { background: white; color: var(--brand-blue); border-color: var(--border-color); }
.nav-btn.active { background: var(--brand-blue); color: white; box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.4); }
.nav-btn.logout { color: #ef4444; margin-top: 20px; }
.nav-btn.logout:hover { background: #fee2e2; border-color: transparent; }

.woocommerce-my-account-wrapper {

    background-color: var(--bg-page);
    background: transparent;
    font-family: 'Inter', sans-serif !important;
}

.entry-content h1 {

    text-align: center;
    font-size: 30px;
    line-height: 44px;
    margin-top: 20px;
}

.title-subtitle {

    text-align: center;
    color: #333 !important;
    font-weight: 600;
    opacity: 1 !important;
    margin-top: 0px;
    margin-bottom: 55px;
}

.entry-title {

    display: none;
}

.content-area { display: flex; flex-direction: column; gap: 40px; }

.content-header {

    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.content-header h1 { 
    
    font-size: 28px; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    margin-right: auto; 
    margin-top: 0 !important;
}

.controls-wrapper { display: flex; gap: 10px; }

.search-input {

    padding: 10px 16px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    background: white !important;
    font-size: 13px !important;
    outline: none !important;
    width: 200px !important;
    transition: 0.2s !important;
}

.search-input:focus { 
    
    border-color: var(--brand-blue) !important; 
    width: 240px !important; 
}

.sort-select {

    padding: 10px 16px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color);
    background: white; 
    font-weight: 600; 
    color: var(--text-main); 
    cursor: pointer; 
    outline: none;
    background-image: var(--wd-form-chevron) !important;
    background-position: right 10px top 50% !important;
    background-size: auto 18px !important;
    background-repeat: no-repeat !important;
}

.order-card {

    background: var(--glass-card);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lux);
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%;
}
.order-card:hover { transform: translateY(-3px); }

.order-head {
    background: rgba(248, 250, 252, 0.6);
    padding: 18px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-meta { display: flex; flex-direction: column; gap: 2px; }
.order-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.order-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.order-actions { display: flex; align-items: center; gap: 12px; }

.order-sum { 
    
    font-weight: 700 !important; 
    font-size: 15px !important; 
    margin-right: 5px !important; 
}

/* Кнопка поддержки (Чат) */
.btn-support-chat {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.btn-support-chat:hover { background: white; color: var(--brand-blue); border-color: var(--brand-blue); }

.btn-invoice {
    color: var(--text-muted); font-size: 18px; text-decoration: none; transition: 0.2s;
    display: flex; align-items: center;
}

.status-badge { 
    
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 11px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase; 
    letter-spacing: 0.5px !important; 
}

.st-done { background: var(--st-done-bg); color: var(--st-done-text); }
.st-wait { background: var(--st-wait-bg); color: var(--st-wait-text); }
.st-info { background: var(--st-info-bg); color: var(--st-info-text); }
.st-warn { background: var(--st-warn-bg); color: var(--st-warn-text); }
.st-err { background: var(--st-err-bg); color: var(--st-err-text); }

.btn-pay {

    background: var(--brand-blue) !important; 
    color: white !important; 
    text-decoration: none !important; 
    padding: 8px 18px !important; 
    border-radius: 10px !important; 
    font-size: 12px !important; 
    font-weight: 700 !important; 
    transition: 0.2s !important;
}
.btn-pay:hover { 
    
    opacity: 0.9 !important; 
    transform: translateY(-1px) !important; 
}

/* Order Body */
.order-body { padding: 0 30px; }

.item-row {

    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 48px 2fr 3fr 1fr; 
    gap: 25px;
    align-items: start;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-content: center;
    align-items: center;
    align-items: flex-start;
}

.item-row:last-child { border-bottom: none; }

.item-icon {

    width: 48px; height: 48px;
    min-width: 48px;
    background: white; border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.item-details {

    width: 215px;
}

.item-details h4 { 
    
    font-size: 15px !important; 
    font-weight: 700 !important; margin-bottom: 8px !important; 
    color: var(--text-main) !important; 
    min-width: 240px !important;
    width: 240px;
}

.half_opacity {

    opacity: 0.5;
}

.key-container { 

    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    min-width: 357px !important;
}

.key-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
    min-height: 44px;
}

.key-content { flex: 1; overflow: hidden; }

.key-val {

    font-family: 'Monaco', monospace; font-size: 13px; 
    font-weight: 600 !important; 
    color: var(--text-main); word-break: break-all;
    transition: 0.3s;
    cursor: text;
}

/* Класс для скрытия */
.key-val.blurred { filter: blur(6px); user-select: none; opacity: 0.5; }

.key-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon-action {
    background: transparent; border: none; cursor: pointer; font-size: 16px; 
    color: var(--text-muted); transition: 0.2s; padding: 4px; border-radius: 4px;
}
.btn-icon-action:hover { background: rgba(0,0,0,0.05); color: var(--text-main); }

.btn-copy {

    background: white; 
    border: 1px solid #cbd5e1;
    padding: 6px 12px; 
    border-radius: 8px;
    font-size: 10px; 
    font-weight: 800;
    cursor: pointer; 
    transition: 0.2s; 
    color: var(--text-main);
    text-transform: uppercase;
    width: 103px;
}

.btn-copy:hover { 
    
    border-color: var(--brand-blue); 
    color: var(--brand-blue); 
}

.key-placeholder { 
    
    font-size: 13px !important; 
    color: var(--text-muted) !important; 
    font-style: italic !important; 
}

.actions-group { 
    
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;   
    align-items: flex-start;  
}

.link-action {

    font-size: 12px; font-weight: 700; color: var(--brand-blue); text-decoration: none; display: flex; align-items: center; gap: 5px;
}

.link-action:hover { text-decoration: underline; }

/* Review Widget */
.review-widget { margin-top: 5px; }
.stars-row { display: flex; gap: 4px; cursor: pointer; margin-bottom: 6px; }

.star { 
    
    font-size: 26px; 
    color: #e2e8f0; 
    transition: 0.2s; 
}

.star:hover, .star.active { color: #fbbf24; }

.star_hover {

    color: #fbbf24;
}

.review-form, .edit-review-form {

    max-height: 0; overflow: hidden; transition: 0.4s ease;
    opacity: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.review-form.open, .edit-review-form.open { max-height: 400px; opacity: 1; margin-top: 15px; }

.review-textarea, .edit-review-textarea {
    
    width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border-color);
    font-family: inherit; font-size: 14px; resize: vertical; min-height: 100px;
    outline: none; background: white;
    margin-bottom: 11px;
}
.review-textarea:focus, .edit-review-textarea:focus { 
    
    border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}

.review-btns, .edit-review-btns { display: flex; gap: 10px; align-items: center; }

.btn-submit-review, .btn-submit-edit-review {

    background: var(--brand-blue); color: white; border: none; padding: 10px 20px;
    border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: 0.2s;
}

.btn-submit-review:hover, .btn-submit-edit-review:hover { opacity: 0.9; }

.btn-open-edit-review-form {

    background: var(--brand-blue); color: white; border: none; padding: 5px 10px;
    border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer;
    transition: 0.2s;
    text-transform: none;
    min-height: 0;
    margin-top: 3px;
}

.btn-open-edit-review-form:hover {

    opacity: 0.9;
}

.btn-cancel-review, .btn-cancel-edit-review {
    
    background: transparent; color: var(--text-muted); 
    border: none; padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-cancel-review:hover, .btn-cancel-edit-review:hover { color: var(--text-main); }

.review_submit_result_message {

    display: none; 
    font-size: 12px; 
    font-weight: 700; 
    margin-top: 5px; 
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.review-success { 
    
    color: #166534; 
}

.review-error { 
    
    color: var(--st-err-text) !important;
}

.posted {

    display: block;
}

@media (max-width: 900px) {
    .layout-container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .item-row { grid-template-columns: 1fr; gap: 15px; }
    .item-icon { display: none; }
    .actions-group { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
    .order-head { flex-direction: column; align-items: flex-start; }
    .order-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .controls-wrapper { width: 100%; }
    .search-input { width: 100%; }
}

.error_text {

    color:var(--st-err-text) !important;
}