/*
Theme Name: Brand Select
Theme URI: https://demo.theme-sky.com/ecomall/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: ecomall
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: ecomall-child
*/

/* Tracking Progress
 * (Works with code in functions.php) */
/* Container */

.ram-tracking {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.ram-tracking-progress-wrapper {
	border: solid #c4c4c4 1px;
	margin-bottom: 15px;
	padding: 9px;
	background:#ffffff;
	box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

/* Tracking header */
.tracking-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 9px;
}

/* Tracking number */
.tracking-header-number {
	justify-content: start;
}

.ram-tracking-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ram-tracking-number{
	margin:0;
	font-size:18px;
	font-weight:600;
	color:#1f2937;
}


/* Status badge */
.ram-status-badge {
	background:#858688;
	color:white;
	padding:1px 14px;
	border-radius:20px;
	font-size: 9px;
	font-weight:600;
	letter-spacing:.3px;
}

.tracking-header-status {
	justify-content: end;
}

.ram-status-badge.delivered{
	background:#27553a;
}

.ram-status-badge.out-for-delivery{
	background:#858688;
}

.ram-status-badge.in-transit{
	background:#f59e0b;
}

.ram-status-badge.preparing{
	background:#6b7280;
}

.ram-status {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Horizontal Status Steps */
.ram-status-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #fff;
	overflow-x: auto;
}

/* Connect steps with vertical line */
.ram-status:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 50%;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 1;
}

/* Status colors */
.ram-status.done { background: #858688; color: #fff; }
.ram-status.current { background: #252729; color: #fff; }
.ram-status.pending { background: #ddd; color: #555; }

/* CSS Icons */
.ram-status.done:nth-child(1)::before,
.ram-status.current:nth-child(1)::before,
.ram-status.pending:nth-child(1)::before { content: "📦 "; margin-right:6px; }
.ram-status.done:nth-child(2)::before,
.ram-status.current:nth-child(2)::before,
.ram-status.pending:nth-child(2)::before { content: "🚚 "; margin-right:6px; }
.ram-status.done:nth-child(3)::before,
.ram-status.current:nth-child(3)::before,
.ram-status.pending:nth-child(3)::before { content: "📍 "; margin-right:6px; }
.ram-status.done:nth-child(4)::before,
.ram-status.current:nth-child(4)::before,
.ram-status.pending:nth-child(4)::before { content: "✅ "; margin-right:6px; }

/* Timeline of events */
.ram-details{
	margin-top:25px;
}

.ram-toggle{
	background:#6A6A6A;
	border:none;
	padding:10px 16px;
	border-radius:8px;
	font-weight:600;
	cursor:pointer;
	font-size:14px;
}

.ram-toggle i{
	margin-right:6px;
}

.ram-events-container {
	display:none;
	margin-top:20px;
}

.ram-events {
	overflow-y: auto;
	background-color: #fff;
	list-style:none;
	padding:0;
	margin:0;
}

.ram-events li {
	padding:14px 0;
	border-bottom:1px solid #eee;
}

.ram-event.latest .ram-event-icon {
	background:#858688;
	color:white;
	border-color:#858688;
}

.event-time {
	font-weight:600;
	color:#374151;
	margin-bottom:4px;
}

.event-time i {
	margin-right:6px;
	color:#858688;
}

.ram-event-time{
	font-weight:600;
	font-size:14px;
	color:#111827;
	margin-bottom:4px;
}

.ram-event-text{
	font-size:14px;
	color:#6b7280;
}

.ram-event-icon{
	position:absolute;
	left:-2px;
	top:3px;
	width:24px;
	height:24px;
	background:#fff;
	border:2px solid #858688;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:11px;
	color:#858688;
}

.ram-event-content{
	padding-left:15px;
}

.ram-timeline {
	position:relative;
	padding-left:35px;
}

.ram-timeline:before{
	content:"";
	position:absolute;
	left:10px;
	top:0;
	bottom:0;
	width:2px;
	background:#e5e7eb;
}

.event-text {
	color:#6b7280;
	font-size:14px;
}

/* Progress wrapper */
.ram-progress-wrapper {
    margin-bottom: 30px;
}

/* Progress bar background */
.ram-progress-bar {
    position: relative;
    height: 6px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
}

/* Animated fill */
.ram-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#c0ab37,#1b1d1f);
    border-radius: 6px;
    animation: ramFill 1.4s ease forwards;
}

@keyframes ramFill {
    from { width:0; }
}

/* Status buttons */
.ram-status-group {
	  padding: 9px;
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.ram-status {
    flex:1;
    text-align:center;
    padding:10px 8px;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
    cursor:default;
    position:relative;
    transition:all .25s ease;
}

/* Colors */

.ram-status.done {
    background:#28a745;
    color:white;
}

.ram-status.current {
    background:#1b1d1f;
    color:white;
}

.ram-status.pending {
    background:#ddd;
    color:#555;
}

/* Tooltip */
.ram-status[data-tooltip]:hover::after {
    content:attr(data-tooltip);
    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%);
    background:#333;
    color:white;
    padding:6px 10px;
    font-size:12px;
    border-radius:6px;
    white-space:nowrap;
    opacity:1;
}

.ram-status[data-tooltip]::after {
    opacity:0;
    transition:opacity .25s ease;
    pointer-events:none;
}
.ram-status.current {
    animation:ramPulse 2s infinite;
}

@keyframes ramPulse{
    0%{box-shadow:0 0 0 0 rgba(235, 215, 42, 0.6);}
    70%{box-shadow:0 0 0 10px rgba(0,123,255,0);}
    100%{box-shadow:0 0 0 0 rgba(0,123,255,0);}
}

.ram-status:hover{
    transform:translateY(-2px);
}

.wc-action-button-ram_tracking::after {
    content: "\f230";
    font-family: Dashicons;
}


.tracking-header-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ram-share-wrapper {
    position: relative;
    display: inline-block;
}

.ram-share-btn {
    cursor: pointer;
    white-space: nowrap;
	background:#272c29;
	color:white;
	padding:7px 14px;
	border-radius:20px;
	font-size: 10px;
	font-weight:600;
	letter-spacing:.3px;
}

.ram-share-btn:hover {
    background: #e0e0e0;
}

.ram-share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 170px;
    z-index: 999;
    overflow: hidden;
}

.ram-share-dropdown.open {
    display: block;
}

.ram-share-dropdown button,
.ram-share-dropdown a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
}

.ram-share-dropdown button:hover,
.ram-share-dropdown a:hover {
    background: #f5f5f5;
}