.gamplify-journey-frontend .swal2-popup {
    background: transparent !important;
    box-shadow: none !important;
}

.gamplify-journey-frontend .swal2-loader {
    border-top-color: var(--black) !important;
    border-right-color: var(--black) !important;
}

.gamplify-journey-frontend .tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gamplify-journey-tabs-container {
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.gamplify-journey-tabs-container>h2 {
    display: none;
}

.gamplify-journey-frontend .gamplify-journey-tabs-container::-webkit-scrollbar {
    height: 8px;
}

.gamplify-journey-frontend .gamplify-journey-tabs-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

.gamplify-journey-frontend .tab {
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    min-width: 120px;
}

.action-item-desc p {
    font-size: 11.2px !important;
}

.action-item-desc p a {
    font-size: 11.2px !important;
    /* text-decoration: underline; */
}

.action-item-desc li {
    font-size: 11.2px !important;
    list-style-type: disc;
}

.action-item-desc ul {
    margin-left: 15px;
}

.action-item-desc li a {
    font-size: 11.2px !important;
    text-decoration: underline;
}

.gamplify-journey-frontend .tab.active {
    font-weight: 600;
    color: #000;
    border: 1px solid var(--black);
    border-radius: 10px;
    background: var(--white);
}

.gamplify-journey-frontend .tab.completed:not(.tab.active.completed) {
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 10px;
    color: var(--white);
}

.gamplify-journey-frontend .tab.completed img:not(.tab.active.completed img) {
    filter: brightness(0) saturate(100%) invert(93%) sepia(83%) saturate(2%) hue-rotate(25deg) brightness(108%) contrast(101%);
}

.gamplify-journey-frontend .tab i {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.gamplify-journey-frontend .tab::after {
    /* content: attr(data-label);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  width: 150px;
  max-width: 250px;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
  border: 1px solid #e2e8f0;
  font-weight: normal;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.gamplify-journey-frontend .tab.slick-slide::after {
    /* top: -28px !important; */
}

.gamplify-journey-frontend .tab:hover::after {
    /* opacity: 1; */
}

.gamplify-journey-frontend .tab:first-child::after {
    /* left: 1%;
  transform: translateX(0); */
}

.gamplify-journey-frontend .tab:last-child::after {
    /* left: auto;
  right: 10%;
  transform: translateX(0); */
}

.gamplify-journey-frontend .tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.gamplify-journey-frontend .tab-content.active {
    display: block;
}

.gamplify-journey-frontend .tab.locked {
    display: none !important;
}

.gamplify-journey-frontend .tab-content.locked {
    display: none !important;
}

.gamplify-journey-frontend .gamplify_journey_title {
    margin-top: 20px;
}

.gamplify-journey-frontend .action-item {
    margin: 15px 0;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    align-items: center !important;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.2s, border-color 0.2s;
}

.gamplify-journey-frontend .action-item label {
    margin: 0 !important;
}

.gamplify-journey-frontend .action-item:hover {
    border-color: #ccc;
    background: #fafafa;
}

.gamplify-journey-frontend .action-item-left-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gamplify-journey-frontend .action-item-right-content {
    flex: 1;
    line-height: 20px;
}

.gamplify-journey-frontend .action-item-right-content label {
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 4px;
}

.gamplify-journey-frontend .action-item-right-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.gamplify-journey-frontend .action-item-right-content p span {
    font-weight: 600 !important;
}


/* Checked states */

.gamplify-journey-frontend .action-item-left-content input[type="checkbox"]:checked+label,
.gamplify-journey-frontend .action-item-right-content label:has(+ p input:checked) {
    text-decoration: line-through;
    color: #999;
}

.gamplify-journey-frontend .action-item input[type="checkbox"]:checked~.action-item-right-content {
    opacity: 0.6;
}

.gamplify-journey-frontend .action-item label.checked {
    text-decoration: line-through;
    color: #64748b;
}

.gamplify-journey-frontend .action-check {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gamplify-journey-frontend .action-check:checked {
    background: #000;
    border-color: #000;
}

.gamplify-journey-frontend .action-check:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gamplify-journey-frontend .status {
    float: right;
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #444;
}

.gamplify-journey-frontend .card {
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.gamplify-journey-frontend .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gamplify-journey-frontend .card-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 6px;
}

.gamplify-journey-frontend .card-body {
    flex: 1;
    margin-left: 12px;
}

.gamplify-journey-frontend .card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    font-family: var(--font-pop);
}

.gamplify-journey-frontend .card-desc {
    font-size: 13px;
    line-height: 17px;
    color: #6b7280;
    margin: 0;
}


/* Card status */

.gamplify-journey-frontend .card-status {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
}

.gamplify-journey-frontend .card-status.completed {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
}

.gamplify-journey-frontend .gamplify-journey-frontend-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    /*border: 2px solid;*/
    /* border-radius: 50%; */
    padding: 5px;
    margin: auto !important;
}

.gamplify-journey-frontend .card-header-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gamplify-journey-frontend .tabs {
    padding: 0 30px;
    position: relative;
}

.gamplify-journey-frontend .slick-arrow {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0;
    background: transparent;
    border-color: #000;
}

.gamplify-journey-frontend .slick-next.slick-arrow {
    right: 0;
    left: inherit;
    background-image: url(/wp-content/plugins/gamplify-application-journey-addon/images/right-arrow.png);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
}

.gamplify-journey-frontend .slick-prev.slick-arrow {
    left: 0;
    background-image: url(/wp-content/plugins/gamplify-application-journey-addon/images/right-arrow.png);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg);
}

.gamplify-journey-frontend .slick-track {
    display: flex;
    gap: 10px;
}

.gamplify-journey-frontend .slick-list {
    padding-top: 30px;
    padding-bottom: 30px;
}

.gamplify-journey-frontend .slick-list.draggable {
    /* padding: 0; */
}

@media (max-width: 768px) {
    .gamplify-journey-frontend .card-header {
        flex-direction: column;
        /* Stack items vertically */
        align-items: flex-start;
        /* Align left */
        gap: 10px;
    }
    .gamplify-journey-frontend .card-header-content {
        gap: 10px;
    }
    .gamplify-journey-frontend .card-body {
        margin-left: 0;
        /* Remove left margin so it fits under the icon */
        margin-top: 8px;
    }
    .gamplify-journey-frontend .card-icon img {
        width: 32px;
        height: 32px;
    }
    .gamplify-journey-frontend .card-title {
        font-size: 14px;
        /* Slightly smaller on mobile */
    }
    .gamplify-journey-frontend .card-desc {
        font-size: 13px;
    }
    .gamplify-journey-frontend .card-status {
        align-self: flex-end;
        /* Keep status aligned to the right */
        font-size: 12px;
        padding: 2px 6px;
    }
}


/* Extra small devices (phones under 480px) */

@media (max-width: 480px) {
    .gamplify-journey-frontend {
        padding: 10px;
        /* Reduce padding for small screens */
    }
    .gamplify-journey-frontend .card-title {
        font-size: 13px;
    }
    .gamplify-journey-frontend .card-desc {
        font-size: 12px;
        line-height: 15px;
    }
    .gamplify-journey-frontend .card-status {
        font-size: 11px;
        padding: 2px 5px;
    }
    .gamplify-journey-frontend .action-item-right-content p {
        line-height: 15px;
    }
}


/* Sidebar Shortcode Styling */

.gamplify-journey-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-grey);
    font-family: inherit;
}

.gj-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 14px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gj-sidebar-header-icon {
    font-size: 16px;
}

.gj-sidebar-stages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gj-sidebar-stage {
    display: flex;
    align-items: center;
}

.gj-sidebar-stage.gj-state-completed {
    gap: 12px;
    color: #4b5563;
    font-size: 14px;
}

.gj-stage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gj-state-completed .gj-stage-icon svg {
    stroke: var(--black);
}

.gj-sidebar-stage.gj-state-current {
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 8px;
    padding: 10px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gj-current-icon svg {
    stroke: var(--black);
}

.gj-stage-badge {
    background: var(--white);
    color: var(--black);
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid var(--black);
    border-radius: 50px;
    margin-left: auto;
}

.gj-sidebar-footer {
    display: flex;
}

.gj-sidebar-update-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--black);
    color: var(--white);
    background: var(--black);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.gj-sidebar-update-btn:hover {
    background: var(--white);
    color: var(--black);
    text-decoration: none;
}

.gamplify-journey-frontend .slick-initialized .slick-slide:not(body.single-post .slick-slide) {
    width: 160px !important;
}

.gamplify-journey-frontend .tab-content .action-item-right-content label {
    font-size: 14px;
}

.action-group-container .action-group-title {
    font-size: 12px;
    font-weight: 600;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--black);
    color: var(--black);
}

.action-group-container .action-group-progress {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-left: 10px;
}

.action-group-container .action-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid var(--border-grey);
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.action-group-container .action-group-header .action-group-header-right {
    display: flex;
}


/* Stage Update Popup */

.gj-stage-update-popup {
    border-radius: 16px !important;
    padding: 30px 24px !important;
    max-width: 420px !important;
}

.gj-stage-update-popup .swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 8px !important;
}

.gj-stage-popup-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gj-stage-popup-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.gj-stage-popup-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: border-color 0.2s, background 0.2s;
}

.gj-stage-popup-option:hover:not(.gj-locked-stage) {
    border-color: var(--black);
    background: var(--white);
    color: var(--black);
}

.gj-locked-stage {
    opacity: 0.5;
    cursor: not-allowed;
}

.gj-locked-stage input[type="radio"] {
    cursor: not-allowed;
}

.gj-stage-popup-option input[type="radio"] {
    accent-color: var(--black);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.gj-stage-popup-option:has(input:checked) {
    border-color: var(--black);
    background: var(--black);
    color: #fff;
}

.gj-stage-popup-badge {
    display: none;
    background: var(--black);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid #fff;
    border-radius: 50px;
    margin-left: auto;
}

.gj-stage-popup-option:has(input:checked) .gj-stage-popup-badge {
    display: block;
}

.gj-stage-popup-option:has(input:checked) input[type="radio"] {
    accent-color: #fff;
}

.gj-stage-confirm-btn {
    background: var(--black) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.gj-stage-cancel-btn {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #374151 !important;
}


/* ── Checklist confirmation popup ─────────────────────────── */

.gj-confirm-popup {
    font-family: inherit;
    border-radius: 14px !important;
    padding: 28px 24px !important;
    max-width: 360px !important;
    width: 92vw !important;
}

.gj-confirm-popup .swal2-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #000 !important;
}

.gj-confirm-popup .swal2-html-container {
    font-size: 14px !important;
    color: #555 !important;
    margin: 8px 0 0 !important;
}

.gj-confirm-popup .swal2-actions {
    gap: 10px !important;
    margin-top: 20px !important;
}

.gj-confirm-popup .swal2-confirm,
.gj-confirm-popup .swal2-cancel {
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    min-width: 100px !important;
}