/* CSS for WooCommerce Occasions Reminder */
.occasions-btn {
    background: #0071a1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#occasions-popup-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.occasions-popup-inner {
    background: #fff;
    padding: 32px 24px 24px 24px;
    border-radius: 12px;
    min-width: 340px;
    min-height: 200px;
    position: relative;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    font-family: inherit;
    max-width: 500px;
}
.occasions-popup-inner:focus {
    outline: 2px solid #0071a1;
}
.occasions-popup-close {
    cursor: pointer;
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 15px;
    color: #000 !important;
    background: none !important;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.occasions-popup-close svg {
    width: 20px;
    height: 20px;
    display: block;
}
.occasions-popup-close:focus {
    outline: 2px solid #0071a1;
}
.occasions-popup-close:hover,
.occasions-popup-close:focus {
    color: #000 !important;
    background: none !important;
}
.occasions-cards-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.occasions-card {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.occasions-card-day {
    font-size: 2em;
    font-weight: bold;
}
.occasions-card-month {
    font-size: 1.2em;
    margin-bottom: 8px;
}
.occasions-add-card {
    background: #e0f7fa;
    border: 2px dashed #0071a1;
    color: #0071a1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, border 0.2s;
}
.occasions-add-card:hover, .occasions-add-card:focus {
    background: #b2ebf2;
    border-color: #0288d1;
    outline: none;
}
.occasions-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.occasions-popup-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
}
.occasions-progress-outer {
    display: flex;
    justify-content: center;
    margin: 8px 0 8px 0;
}
.occasions-progress-svg {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 5px;
    left: 5px;
    transform: rotate(-90deg);
}
.occasions-progress-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 3.2;
}
.occasions-progress-bar {
    fill: none;
    stroke: #35705a;
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
}
.occasions-progress-circle {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7f7f7;
    margin-bottom: 4px;
    font-size: 1.1em;
    font-weight: 600;
    color: #35705a;
}
.occasions-progress-circle span {
    position: relative;
    z-index: 2;
}
.occasions-discount-msg {
    color: #222;
    font-weight: 500;
    margin-bottom: 18px;
    text-align: center;
    font-size: 1em;
}
.occasions-reminder-form {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.occasions-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: #fafafa;
    margin-bottom: 0;
    box-sizing: border-box;
}
.occasions-type-row {
    display: flex;
    gap: 8px;
}
.occasions-type-btn {
    flex: 1;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
}
.occasions-type-btn.active, .occasions-type-btn:focus {
    background: #f3f7f4;
    border: 2px solid #35705a;
    color: #35705a;
    outline: none;
}
.occasions-date-row {
    display: flex;
    gap: 8px;
}
.occasions-date-row .occasions-input {
    flex: 1;
    margin-bottom: 0;
}
.occasions-submit-btn {
    width: 100%;
    background: #edece9;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.occasions-submit-btn:enabled {
    background: #35705a;
    color: #fff;
}
.occasions-submit-btn:disabled, .occasions-submit-btn.disabled {
    background: #edece9;
    color: #bbb;
    cursor: not-allowed;
}
.occasions-success {
    background: #e6f4ea;
    color: #35705a;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1em;
}
.occasions-gift-btn {
    display: inline-block;
    margin-top: 10px;
    background: #ff9800;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.occasions-gift-btn:hover, .occasions-gift-btn:focus {
    background: #e65100;
    outline: none;
}
.occasions-see-all {
    color: #0071a1;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1em;
}
.occasions-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #e53935;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 2;
    padding: 0 4px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.occasions-delete-btn:hover, .occasions-delete-btn:focus {
    background: #ffcdd2;
    color: #b71c1c;
    outline: none;
}
.occasions-float-group {
    position: relative;
    margin-bottom: 0;
    width: 100%;
}
.occasions-float-group input.occasions-input,
.occasions-float-group select.occasions-input {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 14px 8px 14px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}
.occasions-float-group label {
    position: absolute;
    left: 14px;
    top: 16px;
    color: #888;
    font-size: 1em;
    pointer-events: none;
    background: transparent;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    z-index: 2;
}
.occasions-float-group input.occasions-input:focus + label,
.occasions-float-group input.occasions-input:not(:placeholder-shown) + label,
.occasions-float-group select.occasions-input:focus + label,
.occasions-float-group select.occasions-input.filled + label {
    top: 4px;
    left: 12px;
    font-size: 0.85em;
    color: #35705a;
    background: #fff;
    padding: 0 4px;
}
/* For select, add .filled class via JS if value is set */
.occasions-other-row {
    width: 100%;
    margin-bottom: 8px;
}

/* Mobile full screen popup styles */
@media (max-width: 600px) {
  #occasions-popup-container {
    align-items: stretch;
    justify-content: stretch;
  }
  .occasions-popup-inner {
    width: 100vw !important;
    min-width: 0 !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 16px 8px 8px 8px !important;
    box-sizing: border-box;
    overflow-y: auto !important;
  }
  .occasions-popup-close {
    top: 16px;
    right: 16px;
    z-index: 10;
  }
}

/* --- OCCASIONS SLIDER STYLES (MATCH PRODUCT SLIDER) --- */
.occasions-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}
.occasions-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 18px;
    margin-bottom: 12px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.occasions-slider-track::-webkit-scrollbar {
    display: none;
}
.occasions-slider-item {
    flex: 0 0 calc((100% / 3) - 15px);
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 2px;
    min-width: 180px;
    max-width: 240px;
    box-sizing: border-box;
}
.occasions-slider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.occasions-slider-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: .2rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    padding: 0;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
.occasions-slider-arrow-left {
    /* Removed left: -24px; */
}
.occasions-slider-arrow-right {
    /* Removed right: -24px; */
}
.occasions-slider-arrow:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
}
.occasions-slider-arrow:active:not(:disabled) {
    /* Removed transform: scale(0.95); to disable pop-up animation */
}
.occasions-slider-arrow:focus:not(:disabled) {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}
.occasions-slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}
.occasions-slider-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    background: none;
    border: none;
    pointer-events: none;
}
.occasions-slider-arrow svg path {
    stroke: #333 !important;
    fill: none !important;
    stroke-width: 2;
    transition: stroke 0.2s;
}
.occasions-slider-arrow:hover:not(:disabled) svg path {
    stroke: #000 !important;
}
.occasions-slider-arrow:disabled svg path {
    stroke: #999 !important;
}
.occasions-slider-progress {
    flex-grow: 1;
    height: 2px;
    background: #e5e5e5;
    border-radius: 1px;
    margin: 8px 0 0 0;
    position: relative;
    overflow: hidden;
}
.occasions-slider-progress-bar {
    height: 100%;
    width: 0;
    background: #007cba;
    border-radius: 1px;
    transition: width 0.2s ease-out;
}
@media (max-width: 1200px) {
    .occasions-slider-item {
        flex-basis: calc((100% / 3) - 15px);
    }
}
@media (max-width: 768px) {
    .occasions-slider-item {
        flex-basis: calc((100% / 2) - 15px);
        min-width: 120px;
        max-width: 180px;
    }
    .occasions-slider-arrow-left { left: 0; }
    .occasions-slider-arrow-right { right: 0; }
}
@media (max-width: 480px) {
    .occasions-slider-track {
        gap: 12px;
    }
    .occasions-slider-item {
        min-width: 100px;
        max-width: 120px;
    }
}
/* --- END OCCASIONS SLIDER STYLES --- */

/* --- OCCASIONS SLIDER CONTROLS (MATCH PRODUCT SLIDER) --- */
.occasions-slider-controls {
    max-width: 1200px;
    margin: 8px auto 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.occasions-slider-arrows {
    display: flex;
    gap: 8px;
}
/* --- END OCCASIONS SLIDER CONTROLS --- */

/* Loader styles for popup */
.occasions-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 100%;
}
.occasions-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
}
.occasions-spinner svg {
    display: block;
    width: 100%;
    height: 100%;
}
.occasions-spinner circle {
    stroke: #000 !important;
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
} 